Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-10-15 | api: do not expect any return value in callbacks change/delete of ↵ | Sébastien Helleu | |
config_new_option (scripting API) | |||
2022-09-29 | api: change type of argument object_id in upgrade_new callback from string ↵ | Sébastien Helleu | |
to integer (in scripts) | |||
2022-09-29 | api: change type of argument remaining_calls in hook_timer callback from ↵ | Sébastien Helleu | |
string to integer (in scripts) | |||
2022-09-27 | api: add function string_parse_size | Sébastien Helleu | |
2022-08-01 | scripts: fix issue with year ≥ 2038 in functions print_date_tags and ↵ | Sébastien Helleu | |
print_y_date_tags Affected plugins: python, lua, tcl, guile, javascript. | |||
2022-08-01 | scripts: fix issue with year ≥ 2038 in function infolist_new_var_time | Sébastien Helleu | |
Affected plugins: python, lua, tcl, guile, javascript. | |||
2022-07-20 | api: add arguments "index_start" and "index_end" in function ↵ | Sébastien Helleu | |
string_rebuild_split_string | |||
2022-07-20 | api: rename function string_build_with_split_string to ↵ | Sébastien Helleu | |
string_rebuild_split_string | |||
2022-03-13 | api: add function buffer_new_props (closes #1759) | Sébastien Helleu | |
2022-03-12 | scripts: allow null values in config_new_option | Trygve Aaberge | |
The plugin API function config_new_option accepts null as the default_value and/or value however the scripting APIs (except for lua) didn't allow sending null as a parameter value, so it was impossible to use it this way. This allows sending a null value for these parameters. Lua already supported sending in nil for these parameters and it works as expected, so nothing is changed for this plugin. For Guile you can now send in #nil, for JavaScript null or undefined, for Perl undef, for PHP NULL, for Python None, for Ruby nil and for Tcl $::weechat::WEECHAT_NULL. In all of these languages except Tcl this is the special value indicating a missing value. However Tcl only has one type, string, so it doesn't have a null value. Therefore I created a constant with the value `\uFFFF\uFFFF\uFFFFWEECHAT_NULL\uFFFF\uFFFF\uFFFF` which is used instead. This is very unlikely to appear unintentionally. Using the unicode code point \uFFFF was suggested on https://wiki.tcl-lang.org/page/null. I tested this with these scripts: https://gist.github.com/trygveaa/f91977dde5d2876d502bf55fbf9b50cc | |||
2022-01-30 | core: add support of date and tags in messages displayed in buffers with ↵ | Sébastien Helleu | |
free content, add function printf_y_date_tags (closes #1746) | |||
2022-01-17 | core: update copyright dates | Sébastien Helleu | |
2021-11-06 | api: add parameters pointers, extra_vars and options in function hdata_search | Sébastien Helleu | |
2021-01-02 | core: update copyright dates | Sébastien Helleu | |
2020-08-22 | api: add function string_color_code_size (issue #1547) | Sébastien Helleu | |
2020-06-21 | core: add bar option "color_bg_inactive" (issue #732) | Sébastien Helleu | |
2020-05-08 | core: rename functions hook_completion_{get_string|list_add} to ↵ | Sébastien Helleu | |
completion_{get_string|list_add} Old functions are kept for compatibility reasons. | |||
2020-04-28 | api: return integer in function gui_completion_search (issue #1484) | Sébastien Helleu | |
2020-04-27 | api: add functions completion_new, completion_search and completion_free ↵ | Sébastien Helleu | |
(issue #1484) | |||
2020-01-04 | core: update copyright dates | Sébastien Helleu | |
2019-04-13 | api: return allocated string in hook_info callback and function info_get | Sébastien Helleu | |
2019-02-28 | api: add function command_options (issue #928) | Sébastien Helleu | |
2019-02-27 | api: add function string_match_list | Sébastien Helleu | |
2019-01-01 | core: update copyright dates | Sébastien Helleu | |
2018-11-29 | core: use https for links to GNU GPL license | Sébastien Helleu | |
2018-08-12 | api: add function hook_line | Sébastien Helleu | |
2018-04-13 | scripts: fix memory leak in hook_info callback | Sébastien Helleu | |
2018-04-12 | scripts: fix return value of hook_infolist callback (pointer instead of string) | Sébastien Helleu | |
2018-04-10 | scripts: return long integer instead of string in function infolist_time | Sébastien Helleu | |
2018-04-10 | scripts: do not allocate memory when converting pointers to strings | Sébastien Helleu | |
2018-04-07 | api: add function string_format_size in scripting API | Sébastien Helleu | |
2018-01-15 | scripts: add configuration file for each script plugin | Sébastien Helleu | |
2018-01-06 | scripts: add "eval" option in script commands and info "xxx_eval" (issue #128) | Sébastien Helleu | |
For now this works only in python, perl, ruby and guile. | |||
2018-01-05 | core: update copyright dates | Sébastien Helleu | |
2017-09-23 | core, plugins: check return code of strftime function | Sébastien Helleu | |
2017-08-13 | api: change type of arguments status/gnutls_rc/sock in hook_connect() ↵ | Sébastien Helleu | |
callback from string to integer (in scripts) | |||
2017-08-13 | api: send file descriptor as integer instead of string to the callback of ↵ | Sébastien Helleu | |
hook_fd | |||
2017-08-12 | core: fix cast of time_t (to "long long" instead of "long") (closes #1051) | Sébastien Helleu | |
2017-05-30 | api: add function hdata_compare | Sébastien Helleu | |
2017-01-01 | core: update copyright dates | Sébastien Helleu | |
2016-11-27 | api: move functions hook_completion* after hook_command | Sébastien Helleu | |
2016-04-23 | api: add support of functions in hook_process | Sébastien Helleu | |
2016-03-24 | api: rename function unhook_all_plugin to unhook_all | Sébastien Helleu | |
2016-03-21 | core: 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-01 | core: update copyright dates | Sébastien Helleu | |
2015-08-13 | api: add missing function infolist_search_var() in script API (issue #484) | Sébastien Helleu | |
2015-08-13 | api: add missing function hook_completion_get_string() in script API (issue ↵ | Sébastien Helleu | |
#484) | |||
2015-06-24 | api: add function string_eval_path_home() | Sébastien Helleu | |
2015-04-30 | core: add comments after some #endif | Sébastien Helleu | |
2015-03-04 | scripts: fix name of variables in infolist API functions | Sébastien Helleu | |