Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-12-10 | core: do not display non printable chars, fix function utf8_char_size_screen | Sébastien Helleu | |
Now the function utf8_char_size_screen can return -1 when the char is not printable. It has a specific behavior for some chars: - U+0009: value of option weechat.look.tab_width - U+0001 to U+001F (except U+0009): 1 - U+00AD (soft hyphen): -1 - U+200B (zero width space): -1 | |||
2022-12-10 | core: display chars < 32 with a letter/symbol and reverse video attribute in ↵ | Sébastien Helleu | |
chat | |||
2022-12-10 | core: toggle reverse video attribute in bars for chars < 32 only if not ↵ | Sébastien Helleu | |
already enabled | |||
2022-12-10 | core: expand tabulations as spaces in bars | Sébastien Helleu | |
2022-12-10 | core: replace call to memcpy by utf8_strncpy | Sébastien Helleu | |
2022-12-10 | api: add function utf8_strncpy | Sébastien Helleu | |
2022-12-10 | core: optimize and fix function utf8_strlen_screen with non printable chars | Sébastien Helleu | |
When there non printable chars, the return of the function was 1. For example utf8_strlen_screen("abc\x01") now returns 4 instead of 1. In addition the function has been optimized to not use the `mbstowcs` function which is slow; result is up to 15% faster. | |||
2022-12-10 | core: add result of `utf8_char_size_screen` in /debug unicode | Sébastien Helleu | |
2022-12-03 | core: display hex codepoint before integer codepoint in /debug unicode | Sébastien Helleu | |
2022-12-03 | core: remove useless call to mbstowcs in function debug_unicode_char | Sébastien Helleu | |
2022-11-21 | core: add option `unicode` in command `/debug` | Sébastien Helleu | |
2022-11-20 | core: reorder sub-commands in /debug command callback | Sébastien Helleu | |
2022-11-20 | core: fix typo in comment | Sébastien Helleu | |
2022-11-19 | trigger: properly initialize variable "value" to NULL | Sébastien Helleu | |
2022-11-11 | core: add identifier in buffer lines (closes #901) | Sébastien Helleu | |
For buffers with formatted content, the "id" starts to 0 on each buffer and is incremented on each new line displayed (it is reset to 0 if reaching INT_MAX). For buffers with free content, the "id" is set to the same value as "y" (ie the line number, starting to 0). | |||
2022-11-08 | core: add signals "buffer_user_{input|closing}_xxx" for buffers created with ↵ | Sébastien Helleu | |
`/buffer add` (closes #1848) | |||
2022-11-06 | trigger: display failing regex in trigger creation error | Sébastien Helleu | |
2022-11-06 | trigger: use explicit command "s" in regex of default triggers | Sébastien Helleu | |
2022-11-06 | trigger: add regex command "y" to translate chars, set default regex command ↵ | Sébastien Helleu | |
to "s" (regex replace) (closes #1510) | |||
2022-11-05 | core: add range of chars in evaluation of expressions with `chars:xxx` | Sébastien Helleu | |
2022-11-05 | api: add function string_translate_chars | Sébastien Helleu | |
2022-10-23 | core: Prevent use of uninitialized memory when setting invalid color | Trygve Aaberge | |
If a color option value is null and is tried being set to an invalid color, the value was set to uninitialized memory which can lead to a segfault. Can be reproduced with this script: https://gist.github.com/trygveaa/6ddb3a52f525a7fd8e0908bafa83e07c The option doesn't have to be set from a script, it also happens with the /set command. | |||
2022-10-20 | trigger: execute trigger command on appropriate buffer (closes #1841) | Sébastien Helleu | |
This affects the following hook types: - command - command_run - line - modifier - print This fixes a regression introduced in WeeChat 3.7 by commit 0f67f55098db564c82c848262540704985790129. | |||
2022-10-16 | python: remove functions defined for Python < 2.6 | Sébastien Helleu | |
2022-10-15 | python: remove support of Python 2.x | Sébastien Helleu | |
2022-10-15 | api: do not expect any return value in callbacks change/delete of ↵ | Sébastien Helleu | |
config_new_option (scripting API) | |||
2022-10-14 | python: Fix return types for config option callbacks | Trygve Aaberge | |
I erroneously typed the return types for these to int in commit e0c117e14, but they should be None. | |||
2022-10-14 | Allow terminal title to be left unchanged. | Latchezar Tzvetkoff | |
Fixes #1835. | |||
2022-10-12 | irc: escape backslashes in raw buffer (closes #1838) | Sébastien Helleu | |
2022-10-12 | core: allow command `/toggle` to create option before setting the value, if ↵ | Sébastien Helleu | |
allowed in the section (closes #1837) | |||
2022-10-10 | core: fix context info in buffers with free content (closes #1832) | Sébastien Helleu | |
2022-10-09 | python: Include script examples in function docstring | Trygve Aaberge | |
This makes it possible to see how functions are used without having to go to the web page. It's especially useful to see the types of the callback functions. | |||
2022-10-08 | core: fix compilation warning on isdigit function | Sébastien Helleu | |
2022-10-08 | xfer: add missing include of netinet/in.h | Sébastien Helleu | |
This fixes compilation on FreeBSD 13.0. | |||
2022-10-05 | core: fix page scroll in bare display (closes #1830) | Sébastien Helleu | |
2022-10-02 | python: Include constant values in python stub | Trygve Aaberge | |
This is useful for two reasons: 1. When running unit tests for a script weechat needs to be mocked. By having the constant values available in the stub file, they can be loaded from that, instead of having to define the constants manually for the mock. 2. If you log a constant value you have to look up what it means. This makes it easier, in the same vein as PR #1824. | |||
2022-10-01 | irc: set local variable "filter" when doing `/server raw xxx` with raw ↵ | Sébastien Helleu | |
buffer already opened (closes #1448) | |||
2022-09-30 | trigger: add variable `${tg_hook_type}` (closes #1765) | Sébastien Helleu | |
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-29 | core: fix compilation with zstd < 1.4.0 | Sébastien Helleu | |
Note: zstd ≥ 0.8.1 is now required to compile WeeChat. | |||
2022-09-29 | php: add missing arginfo_weechat_string_parse_size in legacy arginfo | Sébastien Helleu | |
2022-09-28 | logger: add options to rotate and compress log files (closes #314) | Sébastien Helleu | |
New options: - logger.file.rotation_compression_level - logger.file.rotation_compression_type - logger.file.rotation_size_max | |||
2022-09-27 | api: add function file_compress | Sébastien Helleu | |
2022-09-27 | api: restrict number to integer in function string_parse_size | Sébastien Helleu | |
2022-09-27 | api: add function string_parse_size | Sébastien Helleu | |
2022-09-26 | irc: fix use of uninitialized variable `ptr_nick` | Sébastien Helleu | |
2022-09-18 | core: add key alt+backspace, change behavior of key ctrl+w (closes #559) | Sébastien Helleu | |
The key ctrl+w now deletes one word until whitespace. The new key alt+backspace deletes one word (same behavior as ctrl+w in previous releases). | |||
2022-09-18 | trigger: escape arguments with double quotes in output of `/trigger ↵ | Sébastien Helleu | |
input|output|recreate` (closes #190) | |||
2022-09-17 | tests: add tests on filter functions | Sébastien Helleu | |