Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-06-03 | doc: fix formatting issues with links that target a blank window | Sébastien Helleu | |
2023-05-20 | doc: move toc and section asciidoctor attributes from docs to CMakeLists.txt | Sébastien Helleu | |
2022-12-11 | scripts: Send null values to config section callbacks | Trygve Aaberge | |
The callback_read and callback_create_option functions in the scripting APIs always get the value as a string, never as null. This means that if the value is null, there is no way for the script to distinguish this from an empty string for string options. This makes it impossible to properly make options with fallback values, like the irc server and server_default options, as far as I can see. All the scripting languages except Tcl use that language's equivalent for null. For JavaScript which has both null and undefined, null is used. For Tcl, the magic null string defined in commit 197a7a01e is used and the documentation is updated to describe that. I tested this with these scripts: https://gist.github.com/trygveaa/2d49c609addf9773d2ed16e15d1e3447 You can load all of those scripts and see the result with this command (assuming you have the scripts in the current directory): weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)" | |||
2022-10-15 | python: remove support of Python 2.x | Sébastien Helleu | |
2022-09-27 | api: add function string_parse_size | Sébastien Helleu | |
2022-07-22 | doc: use non-breaking spaces before links to notes | Sébastien Helleu | |
2022-07-22 | doc/scripting: add missing fields "paramN" and "num_params" in output of ↵ | Sébastien Helleu | |
"irc_message_parse" These new fields were added in version 3.4 with major improvements of the IRC message parser. | |||
2022-06-27 | doc/scripting: add arrow and open external links in new tab | Sébastien Helleu | |
2022-06-23 | doc: change formatting in asciidoctor tables | Sébastien Helleu | |
2022-06-18 | doc: add trailing slashes in URLs | Sébastien Helleu | |
2022-03-23 | doc: use unicode symbol for greater-than or equal to | Sébastien Helleu | |
2022-03-13 | api: add function buffer_new_props (closes #1759) | Sébastien Helleu | |
2022-03-12 | dev/scripting: fix typo | Sébastien Helleu | |
2022-03-12 | doc/scripting: translate note about Tcl constant $::weechat::WEECHAT_NULL | 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-02-21 | doc/scripting: fix column size in tables | Sébastien Helleu | |
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-16 | doc: add example of hook_process with a script function (scripting guide) | Sébastien Helleu | |
2021-06-24 | irc: add keys/values with tags in output of irc_message_parse_to_hashtable ↵ | Sébastien Helleu | |
(issue #1654) Key is "tag_xxx" (where "xxx" is the name of tag) and value is the unescaped tag value. | |||
2021-05-25 | doc: replace freenode by libera in scripting guide | Sébastien Helleu | |
2021-05-14 | doc: add missing names for anchors in scripting guide | Sébastien Helleu | |
2021-05-14 | doc: add link to Python stub in scripting guide (issue #1377) | Sébastien Helleu | |
2021-05-13 | doc: add type annotations in Python prototype (scripting guide) (issue #1377) | Sébastien Helleu | |
2021-05-13 | doc: add types of constants in scripting guide (issue #1377) | Sébastien Helleu | |
2021-05-11 | doc: add XDG directories support in docs (issue #1285) | Sébastien Helleu | |
2021-04-11 | doc: improve display of WeeChat version in info_hashtable ↵ | Sébastien Helleu | |
"irc_message_parse" (scripting guide) | |||
2020-12-19 | core: add options "setvar" and "delvar" in command /buffer, rename option ↵ | Sébastien Helleu | |
"localvar" to "listvar" The option "localvar" (introduced long time ago, in WeeChat 0.3.0) is still recognized by WeeChat, to stay compatible with any extension/script calling it (or referencing it in the documentation). It is deprecated and will be removed in a future release. | |||
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-27 | doc: mention callback argument "callback_pointer" in differences with C API ↵ | Sébastien Helleu | |
(scripting guide) | |||
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-27 | api: add functions completion_new, completion_search and completion_free ↵ | Sébastien Helleu | |
(issue #1484) | |||
2020-04-25 | doc: protect monospace text with plus characters (scripting guide) | Sébastien Helleu | |
2020-04-18 | doc: fix table sizes on small screens | Sébastien Helleu | |
2019-10-13 | doc: fix typo in scripting guide | Sébastien Helleu | |
2019-10-12 | python: send "bytes" instead of "str" to callbacks in Python 3 when the ↵ | Sébastien Helleu | |
string is not UTF-8 valid (issue #1220, closes #1389) | |||
2019-09-27 | irc: add "user" in output of irc_message_parse (closes #136) | Sébastien Helleu | |
2019-05-24 | doc: remove extra space in python dict (scripting guide) | Sébastien Helleu | |
2019-05-12 | doc: add chapter about WeeChat architecture in scripting guide | 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 | |
2018-08-12 | api: add function hook_line | Sébastien Helleu | |
2018-04-07 | api: add function string_format_size in scripting API | Sébastien Helleu | |
2017-09-23 | doc: fix note about function "print" in scripting guide | Sébastien Helleu | |
2017-09-23 | core: fix typo: Javascript -> JavaScript | Sébastien Helleu | |
2017-09-09 | doc: fix PHP examples in scripting guide | Sébastien Helleu | |
2017-09-03 | doc: add PHP plugin in scripting guide | Sébastien Helleu | |
2017-08-21 | doc: add links to other docs in scripting guide | Sébastien Helleu | |
2017-06-11 | doc: add missing API functions in scripting guide | Sébastien Helleu | |
2017-06-03 | doc: use WeeChat IRC message parsing function in IRC hook example (scripting ↵ | Sébastien Helleu | |
guide) |