]>
jfr.im git - irc/weechat/weechat.git/log
Sébastien Helleu [Mon, 2 Jan 2023 13:27:21 +0000 (14:27 +0100)]
Version 3.8-rc1
Sébastien Helleu [Mon, 2 Jan 2023 13:20:44 +0000 (14:20 +0100)]
core: fix line wrapping in Polish translations
Sébastien Helleu [Mon, 2 Jan 2023 13:17:20 +0000 (14:17 +0100)]
irc: properly rename private buffer on nick changes or private message when new nick is the same with different case
Sébastien Helleu [Mon, 2 Jan 2023 12:50:58 +0000 (13:50 +0100)]
irc: replace "private window" by "private buffer" in comments
Sébastien Helleu [Sun, 1 Jan 2023 13:54:35 +0000 (14:54 +0100)]
core: update copyright dates
Sébastien Helleu [Sun, 1 Jan 2023 13:41:06 +0000 (14:41 +0100)]
tests: add tests on gui input functions
Sébastien Helleu [Sun, 1 Jan 2023 13:39:38 +0000 (14:39 +0100)]
core: check that buffer is not NULL in function gui_input_clipboard_copy
Sébastien Helleu [Sat, 31 Dec 2022 09:40:00 +0000 (10:40 +0100)]
core: move function gui_input_move_to_buffer to gui-buffer.c
Sébastien Helleu [Fri, 30 Dec 2022 20:50:18 +0000 (21:50 +0100)]
core: fix color when the delimiter is not followed by a background color (closes #1867)
Sébastien Helleu [Fri, 30 Dec 2022 15:30:20 +0000 (16:30 +0100)]
doc: update Polish auto-generated files
Krzysztof Korościk [Thu, 29 Dec 2022 11:45:20 +0000 (12:45 +0100)]
core: updated Polish translation
Sébastien Helleu [Thu, 29 Dec 2022 18:30:58 +0000 (19:30 +0100)]
doc: update German auto-generated file
Nils Görs [Thu, 29 Dec 2022 11:51:12 +0000 (12:51 +0100)]
core: update German translations
Sébastien Helleu [Thu, 29 Dec 2022 11:05:21 +0000 (12:05 +0100)]
core: fix French translation of "read marker"
Sébastien Helleu [Thu, 29 Dec 2022 11:00:28 +0000 (12:00 +0100)]
core: add option weechat.look.chat_space_right (issue #1862)
Krzysztof Korościk [Tue, 27 Dec 2022 23:01:04 +0000 (00:01 +0100)]
doc: updated polish translation
Sébastien Helleu [Wed, 28 Dec 2022 09:27:44 +0000 (10:27 +0100)]
doc: update German auto-generated file
Nils Görs [Wed, 28 Dec 2022 09:25:31 +0000 (10:25 +0100)]
core: update German translations
Sébastien Helleu [Mon, 26 Dec 2022 22:43:28 +0000 (23:43 +0100)]
doc: update German auto-generated files
Nils Görs [Mon, 26 Dec 2022 12:41:24 +0000 (13:41 +0100)]
core: update German translations
Nils Görs [Mon, 26 Dec 2022 12:32:56 +0000 (13:32 +0100)]
core: update German translations
Sébastien Helleu [Mon, 26 Dec 2022 00:27:45 +0000 (01:27 +0100)]
core: allow value "0" in buffer property "unread" to remove read marker from buffer
Sébastien Helleu [Sun, 25 Dec 2022 23:55:30 +0000 (00:55 +0100)]
doc/api: fix formatting of return value in char/string comparison functions
Sébastien Helleu [Sun, 25 Dec 2022 22:05:22 +0000 (23:05 +0100)]
core: reorder entries in ChangeLog
Dawid Dziurla [Sun, 25 Dec 2022 18:46:24 +0000 (19:46 +0100)]
changelog: add entry about Ruby 3.2 detection
Dawid Dziurla [Sun, 25 Dec 2022 18:46:09 +0000 (19:46 +0100)]
ruby: add detection of Ruby 3.2
Sébastien Helleu [Sun, 25 Dec 2022 21:47:18 +0000 (22:47 +0100)]
core: move `/input` buffer switch/zoom actions to command `/buffer`
Actions moved:
* `/input switch_active_buffer` -> `/buffer switch`
* `/input switch_active_buffer_previous` -> `/buffer switch -previous`
* `/input zoom_merged_buffer` -> `/buffer zoom`
Sébastien Helleu [Sun, 25 Dec 2022 20:44:27 +0000 (21:44 +0100)]
core: move `/input` set_unread actions to commands `/allbuf` and `/buffer set`
Actions moved:
* `/input set_unread` -> `/allbuf /buffer set unread`
* `/input set_unread_current_buffer` -> `/buffer set unread`
Sébastien Helleu [Sun, 25 Dec 2022 20:23:14 +0000 (21:23 +0100)]
core: add command `/allbuf`
Sébastien Helleu [Sun, 25 Dec 2022 19:35:10 +0000 (20:35 +0100)]
api: do not check hotlist add conditions when adding buffer in hotlist with function buffer_set
Sébastien Helleu [Sun, 25 Dec 2022 18:40:57 +0000 (19:40 +0100)]
core: add option `add` in command `/hotlist`
Sébastien Helleu [Sun, 25 Dec 2022 18:07:39 +0000 (19:07 +0100)]
core: fix typo in comment
Sébastien Helleu [Sun, 25 Dec 2022 17:50:57 +0000 (18:50 +0100)]
core: move `/input` hotlist actions to new command `/hotlist`
Actions moved to command `/hotlist`:
* `/input hotlist_clear` -> `/hotlist clear`
* `/input hotlist_remove_buffer` -> `/hotlist remove`
* `/input hotlist_restore_buffer` -> `/hotlist restore`
* `/input hotlist_restore_all` -> `/hotlist restore -all`
Sébastien Helleu [Sun, 25 Dec 2022 16:57:59 +0000 (17:57 +0100)]
core: add function gui_buffer_jump_last_visible_number
Sébastien Helleu [Sun, 25 Dec 2022 16:00:37 +0000 (17:00 +0100)]
core: move `/input` jump actions to command `/buffer jump`
Actions moved to command `/buffer jump`:
* `/input jump_smart` -> `/buffer jump smart`
* `/input jump_previously_visited_buffer` -> `/buffer jump prev_visited`
* `/input jump_next_visited_buffer` -> `/buffer jump next_visited`
* `/input jump_last_buffer_displayed` -> `/buffer jump last_displayed`
Sébastien Helleu [Sun, 25 Dec 2022 15:53:30 +0000 (16:53 +0100)]
core: fix style in ChangeLog and release notes
Sébastien Helleu [Sun, 25 Dec 2022 14:06:03 +0000 (15:06 +0100)]
core: fix typo in comment
Sébastien Helleu [Sat, 24 Dec 2022 18:37:40 +0000 (19:37 +0100)]
core: remove useless conditions
Sébastien Helleu [Sat, 24 Dec 2022 17:29:35 +0000 (18:29 +0100)]
api: add functions string_strcmp and string_strncmp
Sébastien Helleu [Sat, 24 Dec 2022 16:52:31 +0000 (17:52 +0100)]
doc/api: mention "UTF-8" in char/string comparison functions
Sébastien Helleu [Sat, 24 Dec 2022 16:33:22 +0000 (17:33 +0100)]
api: rename char comparison functions "utf8_char*" to "string_char*"
Sébastien Helleu [Sat, 24 Dec 2022 15:25:20 +0000 (16:25 +0100)]
api: return arithmetic difference between chars in string comparison functions
Return code is changed for the following functions:
- string_strcasecmp
- string_strcasecmp_range
- string_strncasecmp
- string_strncasecmp_range
- string_strcmp_ignore_chars
- utf8_charcmp
- utf8_charcasecmp
- utf8_charcasecmp_range
Sébastien Helleu [Fri, 23 Dec 2022 22:20:29 +0000 (23:20 +0100)]
api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
Sébastien Helleu [Thu, 22 Dec 2022 19:56:50 +0000 (20:56 +0100)]
core: fix typo in French translation of /help input
Sébastien Helleu [Wed, 21 Dec 2022 18:23:29 +0000 (19:23 +0100)]
core: improve case convert and insensitive char comparisons (closes #258)
All lowercase letters are now properly converted to uppercase letters (and vice
versa), via functions `towupper` and `towlower`.
Functions `string_tolower`, `string_toupper` and `utf8_charcasecmp` have been
optimized to be faster when there are ASCII chars (< 128); functions are about
25-40% faster with mixed chars (both ASCII and multi-bytes).
Function `utf8_wide_char` has been removed, `utf8_char_int` can be used
instead.
Sébastien Helleu [Mon, 19 Dec 2022 12:01:33 +0000 (13:01 +0100)]
core: remove unneeded casts
Sébastien Helleu [Mon, 19 Dec 2022 10:18:59 +0000 (11:18 +0100)]
irc: fix calls to weechat_string_toupper
Sébastien Helleu [Mon, 19 Dec 2022 10:18:49 +0000 (11:18 +0100)]
core: fix call to string_toupper
Sébastien Helleu [Mon, 19 Dec 2022 06:07:12 +0000 (07:07 +0100)]
spell: return directly output of string_dyn_free without temporary variable
Sébastien Helleu [Mon, 19 Dec 2022 06:06:01 +0000 (07:06 +0100)]
irc: return directly output of string_dyn_free without temporary variable
Sébastien Helleu [Mon, 19 Dec 2022 06:04:33 +0000 (07:04 +0100)]
core: return directly output of string_dyn_free without temporary variable
Sébastien Helleu [Sun, 18 Dec 2022 13:10:10 +0000 (14:10 +0100)]
api: return newly allocated string in functions string_tolower and string_toupper
Sébastien Helleu [Sat, 17 Dec 2022 19:25:07 +0000 (20:25 +0100)]
core: return number of bytes for UTF-8 char in function utf8_int_string
Sébastien Helleu [Sat, 17 Dec 2022 16:37:02 +0000 (17:37 +0100)]
tests: add tests on function gui_input_delete_next_word
Sébastien Helleu [Sat, 17 Dec 2022 16:36:35 +0000 (17:36 +0100)]
tests: add tests on function gui_input_delete_range
Sébastien Helleu [Sat, 17 Dec 2022 15:59:04 +0000 (16:59 +0100)]
tests: add tests on gui delete previous/next char functions
Sébastien Helleu [Sat, 17 Dec 2022 14:38:34 +0000 (15:38 +0100)]
tests: add extra tests on function gui_input_set_pos
Sébastien Helleu [Sat, 17 Dec 2022 14:37:48 +0000 (15:37 +0100)]
tests: add tests on gui input completion functions
Sébastien Helleu [Sat, 17 Dec 2022 14:20:23 +0000 (15:20 +0100)]
core: remove unused argument "pos" from function gui_input_insert_string, add tests on function
Sébastien Helleu [Sat, 17 Dec 2022 13:42:08 +0000 (14:42 +0100)]
core: simplify gui input functions by returning immediately if condition not met
Sébastien Helleu [Sat, 17 Dec 2022 11:55:39 +0000 (12:55 +0100)]
irc: do not join channels in server autojoin option after reconnection to the server (closes #560, bug #21529)
Sébastien Helleu [Wed, 14 Dec 2022 22:44:41 +0000 (23:44 +0100)]
doc: update German auto-generated file
Nils Görs [Wed, 14 Dec 2022 21:38:45 +0000 (22:38 +0100)]
core: update German translations
Trygve Aaberge [Sat, 22 Oct 2022 10:32:18 +0000 (12:32 +0200)]
doc/api: Improve python example for config_new_section
This updates the Python examples to include all the possible return
values for the callbacks in config_new_section, like it is done in the C
example. It also aligns the order of the values with the C example.
Trygve Aaberge [Sat, 22 Oct 2022 10:30:04 +0000 (12:30 +0200)]
doc/api: Fix return values for callback_read in config_new_section
These return values were wrong in the description and C example. As can
be seen on lines 2835 and 2873-2903 of src/core/wee-config-file.c the
callback_read function should return the same as the function
config_file_option_set plus the value
WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND (which is also the same as
the possible return values of config_file_option_set_with_string).
The Python example was already correct and the C example was already
correct in the other languages apart from English.
These errors were introduced in commit
02e2b21d3 and commit
5210ff1ae .
Sébastien Helleu [Sun, 11 Dec 2022 14:25:13 +0000 (15:25 +0100)]
core: add contributor (issue #1859)
Sébastien Helleu [Sun, 11 Dec 2022 14:17:38 +0000 (15:17 +0100)]
core: update ChangeLog (issue #1859)
Ryan Qian [Sun, 11 Dec 2022 03:13:24 +0000 (11:13 +0800)]
cmake: add support of compiling with enchant-2 for the Spell plugin
Sébastien Helleu [Sun, 11 Dec 2022 14:15:50 +0000 (15:15 +0100)]
core: update ChangeLog (issue #1843)
Trygve Aaberge [Sat, 22 Oct 2022 13:27:06 +0000 (15:27 +0200)]
scripts: Send null values to config section callbacks
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.*)"
Sébastien Helleu [Sat, 10 Dec 2022 21:30:24 +0000 (22:30 +0100)]
trigger: fix variables sent to focus callback (closes #1858)
This fixes a regression introduced in WeeChat 3.7 by commit
0f67f55098db564c82c848262540704985790129 .
Sébastien Helleu [Sat, 10 Dec 2022 16:32:09 +0000 (17:32 +0100)]
core: add whole string information in /debug unicode
Sébastien Helleu [Sat, 10 Dec 2022 15:37:03 +0000 (16:37 +0100)]
core: add color attributes "blink" and "dim" (half bright) (closes #1855)
Sébastien Helleu [Sat, 10 Dec 2022 15:20:23 +0000 (16:20 +0100)]
core: update ChangeLog (closes #1659, closes #1669, closes #1770)
Sébastien Helleu [Sat, 10 Dec 2022 15:12:23 +0000 (16:12 +0100)]
core: update translations
Sébastien Helleu [Sun, 4 Dec 2022 20:22:11 +0000 (21:22 +0100)]
core: fix function string_cut when there are non printable chars in suffix
Sébastien Helleu [Sun, 4 Dec 2022 19:03:21 +0000 (20:03 +0100)]
core: do not display non printable chars, fix function utf8_char_size_screen
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
Sébastien Helleu [Sun, 4 Dec 2022 08:32:34 +0000 (09:32 +0100)]
core: display chars < 32 with a letter/symbol and reverse video attribute in chat
Sébastien Helleu [Sun, 4 Dec 2022 08:21:24 +0000 (09:21 +0100)]
core: toggle reverse video attribute in bars for chars < 32 only if not already enabled
Sébastien Helleu [Sat, 3 Dec 2022 16:03:30 +0000 (17:03 +0100)]
core: expand tabulations as spaces in bars
Sébastien Helleu [Sat, 3 Dec 2022 16:03:03 +0000 (17:03 +0100)]
core: replace call to memcpy by utf8_strncpy
Sébastien Helleu [Sat, 3 Dec 2022 15:56:01 +0000 (16:56 +0100)]
api: add function utf8_strncpy
Sébastien Helleu [Sat, 3 Dec 2022 10:40:30 +0000 (11:40 +0100)]
core: optimize and fix function utf8_strlen_screen with non printable chars
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.
Sébastien Helleu [Sun, 4 Dec 2022 08:59:09 +0000 (09:59 +0100)]
core: add result of `utf8_char_size_screen` in /debug unicode
Sébastien Helleu [Mon, 5 Dec 2022 20:00:48 +0000 (21:00 +0100)]
doc: update Serbian auto-generated files
Ivan Pešić [Mon, 5 Dec 2022 08:28:22 +0000 (12:28 +0400)]
Update Serbian translation
Documentation and messages translation update
Sébastien Helleu [Sat, 3 Dec 2022 09:15:18 +0000 (10:15 +0100)]
core: display hex codepoint before integer codepoint in /debug unicode
Sébastien Helleu [Sat, 3 Dec 2022 09:14:30 +0000 (10:14 +0100)]
core: remove useless call to mbstowcs in function debug_unicode_char
Sébastien Helleu [Sat, 26 Nov 2022 15:38:25 +0000 (16:38 +0100)]
tests: define constants with UTF-8 strings, add tests on functions returning size on screen
Sébastien Helleu [Tue, 22 Nov 2022 17:41:42 +0000 (18:41 +0100)]
doc: update German auto-generated file
Nils Görs [Tue, 22 Nov 2022 09:08:50 +0000 (10:08 +0100)]
core: update German translations
Sébastien Helleu [Mon, 21 Nov 2022 19:45:25 +0000 (20:45 +0100)]
core: add option `unicode` in command `/debug`
Sébastien Helleu [Sun, 20 Nov 2022 12:55:21 +0000 (13:55 +0100)]
core: reorder sub-commands in /debug command callback
Sébastien Helleu [Sun, 20 Nov 2022 08:33:40 +0000 (09:33 +0100)]
core: fix typo in comment
Sébastien Helleu [Sat, 19 Nov 2022 19:29:02 +0000 (20:29 +0100)]
trigger: properly initialize variable "value" to NULL
Sébastien Helleu [Sat, 19 Nov 2022 19:27:57 +0000 (20:27 +0100)]
ci: install guile-3.0-dev instead of guile-2.2-dev
Sébastien Helleu [Sat, 19 Nov 2022 18:00:14 +0000 (19:00 +0100)]
debian: change dependency guile-2.2-dev to guile-3.0-dev
Sébastien Helleu [Fri, 11 Nov 2022 08:35:11 +0000 (09:35 +0100)]
core: add identifier in buffer lines (closes #901)
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).
Sébastien Helleu [Wed, 9 Nov 2022 07:15:30 +0000 (08:15 +0100)]
doc/api: add missing note after list of signals
Sébastien Helleu [Wed, 9 Nov 2022 07:12:54 +0000 (08:12 +0100)]
doc/user: add missing supported format for trigger regex