Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-28 | core, plugins: make info, info_hashtable and infolist case sensitive (issue ↵ | Sébastien Helleu | |
#1872) | |||
2023-01-28 | core, plugins: make commands, hook command_run, completions and aliases case ↵ | Sébastien Helleu | |
sensitive (issue #1872) | |||
2023-01-28 | plugins: set priority in calls to weechat_config_new (issue #1872) | Sébastien Helleu | |
2023-01-08 | core: remove build with autotools | Sébastien Helleu | |
CMake is now the only way to build WeeChat. | |||
2023-01-03 | plugins: change priority of scripting plugins | Sébastien Helleu | |
Use a step of 10 between each scripting plugin priority. | |||
2023-01-01 | core: update copyright dates | 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 | 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-02 | guile: fix function hdata_get_string | Sébastien Helleu | |
2022-08-01 | scripts: fix issue with long interval in function hook_timer | Sébastien Helleu | |
Affected plugins: python, ruby, lua, tcl, guile, javascript, php. | |||
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-03-06 | guile: remove disabling of guile gmp allocator with Guile ≥ 3.0.8 | Sébastien Helleu | |
This fixes the compilation warning: weechat-guile.c: In function ‘weechat_plugin_init’: weechat-guile.c:1270:5: warning: ‘scm_install_gmp_memory_functions’ is deprecated [-Wdeprecated-declarations] | |||
2022-02-20 | scripts: auto-load scripts with supported extensions only (closes #1698) | 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-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-10-02 | plugins: use a different plugin priority for each scripting language | Sébastien Helleu | |
2021-01-02 | core: update copyright dates | Sébastien Helleu | |
2020-08-23 | api: add argument "bytes" in function string_dyn_concat | 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-06-07 | guile: fix compiler warning (issue #1514) | Sébastien Helleu | |
2020-06-07 | guile: fix memory leak in output port | Joram Schrijver | |
2020-06-07 | guile: re-enable "/guile eval" (issue #1098) | Joram Schrijver | |
With the output port now properly implemented for Guile >= 2.2, this command works again. | |||
2020-06-07 | guile: fix printing of output to buffer (issue #1098) | Joram Schrijver | |
The support for Guile 2.2 did not implement the custom port correctly, and did not configure it to be the default output port. This caused output from Guile to be printed straight to the TTY, breaking the WeeChat interface. Note that the port is unbuffered, so that code like (display "test") immediately results in output, without an explicit call to force-output. | |||
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-30 | Fix the build with guile-3.0.0. | orbea | |
v2: Update configure.ac too. Signed-off-by: orbea <orbea@riseup.net> | |||
2020-01-04 | core: update copyright dates | Sébastien Helleu | |
2019-10-01 | core: fix style in CMake files | Sébastien Helleu | |
2019-09-21 | guile: disable "/guile eval" as this does not (yet) work with Guile >= 2.2 ↵ | Sébastien Helleu | |
(issue #1098) | |||
2019-09-21 | guile: add support of Guile 2.2 (issue #1098) | Sébastien Helleu | |
2019-04-25 | cmake: allow custom libdir (fix #1341) | Ryan Farley | |
Allows for custom LIBDIR to specified with cmake builds. WEECHAT_LIBDIR is used for a custom Weechat directory, or set from LIBDIR (as LIBDIR used to be set). | |||
2019-04-13 | api: return allocated string in hook_info callback and function info_get | Sébastien Helleu | |
2019-03-24 | core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage ↵ | Sébastien Helleu | |
options This option is OFF by default and should be enabled only for tests, to measure test coverage. | |||
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-07-25 | scripts: fix duplicated lines in output of script eval (python, perl, ruby, ↵ | Sébastien Helleu | |
lua and guile) When there was a call to a hook callback during the eval, the output buffer was cleared too late, and displayed multiple times in the buffer. This commit clears the buffer even before we display it (this display can trigger a hook callback). |