summaryrefslogtreecommitdiff
path: root/src/plugins/script/script-action.c
AgeCommit message (Collapse)Author
2024-04-25script: remove check of NULL pointers before calling free() (issue #865)Sébastien Helleu
2024-02-21script: always display list of scripts when searching scripts with `/script ↵Sébastien Helleu
search` (closes #2077)
2024-01-01core: update copyright datesSébastien Helleu
2023-09-16script: replace hook_process_hashtable by hook_url to download scripts and ↵Sébastien Helleu
list of scripts (closes #1723)
2023-08-27script: fix crash when a `/script` command triggers another `/script` ↵Sébastien Helleu
command (issue #923)
2023-08-13script: allow commands `/script autoload|noautoload|toggleautoload` with ↵Sébastien Helleu
scripts not present in the repository (closes #1980)
2023-08-13script: replace "iset" example by "go" in commentsSébastien Helleu
2023-07-04script: fix buffer used by command `/script list -i|-il|-o|-ol`Sébastien Helleu
The command is now executed on the buffer where it is received instead of the current buffer (in most cases this is the same buffer, but could be different sometimes).
2023-07-04script: fix cursor position after `/script list -i` or `/script list -il`Sébastien Helleu
2023-05-22script: remove trailing "J" (line feed char) in source of scripts displayedSébastien Helleu
Regression was indirectly caused by commit d18f68e497c4244404ff8f4f50de82717b178e09 in core that allows to display all control chars in buffers. But the fix is in script plugin: when the script is downloaded and read line by line, trailing "\r" and "\n" are removed, and therefore not displayed.
2023-01-28core, plugins: make commands, hook command_run, completions and aliases case ↵Sébastien Helleu
sensitive (issue #1872)
2023-01-01core: update copyright datesSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-01-02core: update copyright datesSébastien Helleu
2020-10-15script: allow command /script list when option ↵Sébastien Helleu
script.scripts.download_enabled is set to off (closes #1574)
2020-09-06script: add option script.scripts.download_enabled (closes #1548)Sébastien Helleu
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-02-16script: fix unexpected display of scripts list in buffer with command ↵Sébastien Helleu
/script list -i
2020-02-16script: remove dead assignment of variable length in function ↵Sébastien Helleu
script_action_list_input
2020-01-04core: update copyright datesSébastien Helleu
2019-09-19script: add options "-ol" and "-il" in command /script, display "No scripts ↵Sébastien Helleu
loaded" if no scripts are loaded
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-07-22script: replace scripts iset.pl and buffers.pl by go.py and urlserver.py in ↵Sébastien Helleu
examples
2017-05-10script: remove dead assignment in function script_action_install_process_cbSébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-12-01script: reload a script after upgrade only if it was loaded, set autoload ↵Sébastien Helleu
only if the script was auto-loaded (closes #855)
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-08-24script: add option script.scripts.download_timeoutSébastien Helleu
2015-03-18script: fix state of script plugins when list of scripts has not been downloadedSébastien Helleu
The problem happened when doing "/script load script.py" if the scripts list has not been downloaded (with "/script update"): WeeChat displays that python plugin is not loaded (which is wrong).
2015-01-01core: update copyright datesSébastien Helleu
2014-11-15script: add option script.scripts.url_force_https (closes #253)Sébastien Helleu
2014-07-14script: fix display of curl errorsSébastien Helleu
2014-02-22script: remove dead assignments in functions script_action_{unload|reload}Sebastien Helleu
2014-02-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-03-17script: create "script" directory on each action (just in case it has been ↵Sebastien Helleu
removed) (bug #38472)
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-02-25script: add control of autoload (enable/disable/toggle) (task #12393)Sebastien Helleu
New option script.scripts.autoload, new options autoload/noautoload/toggleautoload for command /script, new action "A" (meta-A) on script buffer (toggle autoload).
2013-01-26core: use size of 32 for hashtables (instead of 4, 8 or 16)Sebastien Helleu
A size of 32 will use a little more memory but will reduce collisions in key hashs, and then length of linked lists inside hash structure (faster search in hashtable).
2013-01-01core: update copyright datesSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-09-04script: display error when installing/removing/loading script if plugin for ↵Sebastien Helleu
language is not loaded
2012-08-30script: add diff between current script and version in repositorySebastien Helleu
New options: - script.look.diff_command - script.look.diff_color Key alt-d has been changed to alt-v on script buffer (view script). Key alt-d is now used on detail of script to jump to diff (if diff is displayed).