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
Sebastien Helleu
80e740b72f
script: add diff between current script and version in repository
...
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).
2012-08-30 08:50:22 +02:00
Sebastien Helleu
df7b14e41c
script: add option "script.look.display_source" (display source code with detail of script, enabled by default)
2012-08-28 16:11:51 +02:00
Sebastien Helleu
b1da1cba4c
script: add missing extensions in output of /script -o|-i
2012-08-21 21:59:58 +02:00
Sebastien Helleu
09f80c20d6
script: add options -o and -i for /script list
2012-08-21 21:42:34 +02:00
Sebastien Helleu
129f32ce8e
script: add option script.look.quiet_actions (no messages when installing/removing/loading/unloading scripts on script buffer)
2012-08-21 18:57:49 +02:00
Sebastien Helleu
2944adc954
script: add focus info for mouse on script buffer, add two default mouse bindings: left button = select line, right button = install/remove script
2012-08-20 13:36:29 +02:00
Sebastien Helleu
2485831d4a
script: add option "reload" for command /script, fix completion of /script, add examples in /help script
2012-08-17 09:55:02 +02:00
Sebastien Helleu
6a6f45e043
script: add status "a" (autoloaded) for scripts
2012-08-15 09:25:42 +02:00
Sebastien Helleu
a99d136018
core: add new plugin "script" (scripts manager, replacing scripts weeget.py and script.pl)
2012-08-14 18:29:32 +02:00