Sébastien Helleu
9a5a1fb300
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
3973258628
script: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:25 +02:00
Sébastien Helleu
76998665f4
script: always display list of scripts when searching scripts with /script search ( closes #2077 )
2024-02-21 21:36:52 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
24d2ba3338
script: replace hook_process_hashtable by hook_url to download scripts and list of scripts ( closes #1723 )
2023-09-16 12:58:57 +02:00
Sébastien Helleu
711d3afa5c
script: fix crash when a /script command triggers another /script command (issue #923 )
2023-08-27 17:19:01 +02:00
Sébastien Helleu
4290876e64
script: allow commands /script autoload|noautoload|toggleautoload with scripts not present in the repository ( closes #1980 )
2023-08-13 10:22:06 +02:00
Sébastien Helleu
beb93ada1e
script: replace "iset" example by "go" in comments
2023-08-13 09:10:04 +02:00
Sébastien Helleu
f811621611
script: fix buffer used by command /script list -i|-il|-o|-ol
...
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-04 21:57:41 +02:00
Sébastien Helleu
6c8d6eef58
script: fix cursor position after /script list -i or /script list -il
2023-07-04 21:56:52 +02:00
Sébastien Helleu
126d3559ca
script: remove trailing "J" (line feed char) in source of scripts displayed
...
Regression was indirectly caused by commit
d18f68e497 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-05-22 20:40:45 +02:00
Sébastien Helleu
f0415c8ec3
core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872 )
2023-01-28 15:13:48 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
c44b79dce7
core: update copyright dates
2022-01-17 18:41:06 +01:00
Sébastien Helleu
0f9640a5f3
core: split WeeChat home in 4 directories, use XDG directories by default (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-05-11 21:06:34 +02:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
939b16230c
script: allow command /script list when option script.scripts.download_enabled is set to off ( closes #1574 )
2020-10-15 20:38:43 +02:00
Sébastien Helleu
3c987f3a1c
script: add option script.scripts.download_enabled ( closes #1548 )
2020-09-06 19:15:15 +02:00
Sébastien Helleu
cfd221014c
api: add argument "bytes" in function string_dyn_concat
2020-08-23 23:27:57 +02:00
Sébastien Helleu
c6e9e18aaa
script: fix unexpected display of scripts list in buffer with command /script list -i
2020-02-16 08:04:58 +01:00
Sébastien Helleu
3fc0f1957e
script: remove dead assignment of variable length in function script_action_list_input
2020-02-16 07:59:02 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
85f6c5eeda
script: add options "-ol" and "-il" in command /script, display "No scripts loaded" if no scripts are loaded
2019-09-19 21:20:55 +02:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
71965ddbae
script: replace scripts iset.pl and buffers.pl by go.py and urlserver.py in examples
2017-07-22 12:57:30 +02:00
Sébastien Helleu
8644ad0d4e
script: remove dead assignment in function script_action_install_process_cb
2017-05-10 21:01:40 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
4c6d9e14d1
script: reload a script after upgrade only if it was loaded, set autoload only if the script was auto-loaded ( closes #855 )
2016-12-01 19:34:23 +01:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
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-03-21 18:11:21 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
c35c941298
script: add option script.scripts.download_timeout
2015-08-24 13:26:59 +02:00
Sébastien Helleu
6c4b574945
script: fix state of script plugins when list of scripts has not been downloaded
...
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-03-18 07:25:26 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
786999b4a3
script: add option script.scripts.url_force_https ( closes #253 )
2014-11-15 18:28:34 +01:00
Sébastien Helleu
dff20632ff
script: fix display of curl errors
2014-07-14 16:05:43 +02:00
Sebastien Helleu
6339c15c6d
script: remove dead assignments in functions script_action_{unload|reload}
2014-02-22 13:57:28 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
cf2ad51f62
script: create "script" directory on each action (just in case it has been removed) (bug #38472 )
2013-03-17 18:32:04 +01:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
b60aec975b
script: add control of autoload (enable/disable/toggle) (task #12393 )
...
New option script.scripts.autoload, new options autoload/noautoload/toggleautoload
for command /script, new action "A" (meta-A) on script buffer (toggle autoload).
2013-02-25 08:46:41 +01:00
Sebastien Helleu
25eaec3864
core: use size of 32 for hashtables (instead of 4, 8 or 16)
...
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-26 19:26:43 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Sebastien Helleu
7756be5fea
script: display error when installing/removing/loading script if plugin for language is not loaded
2012-09-04 12:57:26 +02:00