summaryrefslogtreecommitdiff
path: root/tests/unit/gui
AgeCommit message (Collapse)Author
2024-05-12core: add buffer property "modes"Sébastien Helleu
2024-05-12core: restore buffer input prompt on /upgradeSébastien Helleu
2024-05-11core: fix conversion of WeeChat bar colors to ANSI colorsSébastien Helleu
2024-05-11core: fix conversion of WeeChat "default" color to ANSI colorSébastien Helleu
2024-05-11tests: split strings with colors for readabilitySébastien Helleu
2024-05-10core: add buffer property "input_prompt"Sébastien Helleu
2024-05-08core: add function gui_buffer_set_filterSébastien Helleu
2024-05-08core: add function gui_buffer_set_inputSébastien Helleu
2024-05-08tests: add placeholder for tests on function ↵Sébastien Helleu
gui_buffer_set_input_get_any_user_data
2024-05-08core: add function gui_buffer_set_notifySébastien Helleu
2024-05-08core: add function gui_buffer_set_day_changeSébastien Helleu
2024-04-29api: allow to set nicklist group/nick id in functions nicklist_group_set and ↵Sébastien Helleu
nicklist_nick_set (issue #2081)
2024-04-29api: allow search by group and nick id in functions nicklist_search_group ↵Sébastien Helleu
and nicklist_search_nick (issue #2081)
2024-04-28tests/gui: add tests on nicklist functionsSébastien Helleu
2024-04-28core: remove obsolete function gui_nicklist_get_max_lengthSébastien Helleu
2024-04-26core: remove check of NULL pointers before calling gui_bar_window_free() ↵Sébastien Helleu
(issue #865)
2024-04-26core: remove check of NULL pointers before calling gui_bar_item_free() ↵Sébastien Helleu
(issue #865)
2024-04-11tests: add placeholder for tests on function gui_line_is_actionSébastien Helleu
2024-04-11core: use nick offline color for nick in action messageSébastien Helleu
2024-04-07core: add unique "id" in nicklist group and nick (issue #2081)Sébastien Helleu
The id is a "long long" variable with the current time (microseconds precision). It is guaranteed to be unique for all groups and nicks inside the buffer, and the same number is never used again in the same buffer, during the lifetime of the process. It persists and is unchanged after `/upgrade`.
2024-04-07buffer: add property `input_get_any_user_data` in buffer (issue #2066)Sébastien Helleu
This allows buffers to get any user input, including commands, that are sent to the buffer callback instead of being executed on the buffer.
2024-03-17tests/gui: add tests on hotlist functionsSébastien Helleu
2024-03-16core: add variable `${highlight}` in option weechat.look.buffer_time_format ↵Sébastien Helleu
(issue #2079)
2024-03-12core: remove "wee-" prefix from source files in src/core and src/core/hookSébastien Helleu
2024-03-12api: allow search by buffer id in function buffer_search (issue #2081)Sébastien Helleu
2024-03-12core: add function gui_buffer_search_by_id (issue #2081)Sébastien Helleu
2024-03-12core: rename function gui_buffer_search_by_name to gui_buffer_search (issue ↵Sébastien Helleu
#2081)
2024-03-12core: add unique "id" in buffer (issue #2081)Sébastien Helleu
The id is a "long long" variable with the current time (microseconds precision). It is guaranteed to be unique for all buffers, and the same number is never used again, during the lifetime of the process. It persists and is unchanged after `/upgrade`.
2024-03-10core: use whole replacement string instead of first char in function ↵Sébastien Helleu
gui_color_decode
2024-03-06core: add support of SGR mouse events, remove option ↵Sébastien Helleu
weechat.look.mouse_timer_delay (closes #2082)
2024-01-24core: allow case insensitive search of partial buffer name with `(?i)name` ↵Sébastien Helleu
in command `/buffer`
2024-01-24tests: add tests on buffer properties "opening" and "type"Sébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-12-26core: store microseconds in buffer lines (closes #649)Sébastien Helleu
2023-11-11core: add incremental search in commands history (issue #2040)Sébastien Helleu
Changes: - move key ctrl+r to ctrl+s - add key ctrl+r to search in commands history - add option `search_history` in command `/input` - add key context "histsearch" - add option weechat.look.buffer_search_history - add buffer variables "text_search_direction", "text_search_history" and "text_search_ptr_history"
2023-11-04core: remove incorrect warning when binding keys F10 to F20 (closes #2039)Sébastien Helleu
2023-10-23core: fix crash when a custom bar item name is already used by a default bar ↵Sébastien Helleu
item (closes #2034)
2023-08-25tests: add tests on GUI buffer functionsSébastien Helleu
Functions tested: - gui_buffer_is_reserved_name - gui_buffer_get_integer - gui_buffer_get_string - gui_buffer_get_pointer
2023-08-24api: add infos "nick_color_ignore_case" and "nick_color_name_ignore_case" ↵Sébastien Helleu
(issue #194)
2023-08-24core: add options weechat.buffer.* to save buffer properties set by user ↵Sébastien Helleu
(issue #352)
2023-08-18tests: add tests on GUI buffer functionsSébastien Helleu
2023-07-10core: fix renaming of options with command `/item rename` (closes #1978)Sébastien Helleu
The options `weechat.custom_bar_item.xxx.*` are now properly renamed to the new item name. This fixes a save issue (item saved with old name in config) and a crash if a new item is created with the old name.
2023-05-29core: set word_end_offset to character after wordTrygve Aaberge
It seemed strange to me to have word_end_offset point to the last character in the word, rather than the character after the word, especially now with the word stopping before a newline character which meant word_end_offset would be -1 if there was no characters before the newline character.
2023-05-29core: fix chat colors at certain positions not being appliedTrygve Aaberge
The new rendering of multiline lines had some issues with colors at certain positions not being applied. The color would not be applied if the color code was at either of these positions: - At the start of a line after a newline character - At the end of a line after a space and before a newline character - At a line by itself before a newline character The way I had done it by considering newline characters as a word in gui_chat_get_word_info with a variable specifying that it's newline characters became messy and didn't really make sense, so rather than doing this, I changed gui_chat_get_word_info to stop before the first newline character. That way, we can just check if we are at a newline character at the start of the loop, and don't need any more special handling. Fixes #1928
2023-05-04api: don't split on newline by default in functions `command` and ↵Sébastien Helleu
`command_options` when input_multiline is set to 0 The API functions `command` and `command_options` (when `split_newline` = 0, which is the default value) don't split on newline and then the first line is executed and the subsequent lines (after "\n") are ignored. There are no changes when the input has multiple lines filled by the user: the split is done and multiple commands are executed (for example if the user is pasting multiple commands to execute).
2023-04-26core: change default chat colors (issue #1920)Sébastien Helleu
Default values changed: - weechat.color.chat_delimiters: green -> 22 - weechat.color.chat_highlight_bg: magenta -> 124 - weechat.color.chat_inactive_window: default -> 240 - weechat.color.chat_nick_colors: add many colors - weechat.color.chat_nick_offline: default -> 242 - weechat.color.chat_nick_offline_highlight_bg: blue -> 17 - weechat.color.chat_prefix_buffer: brown -> 180 - weechat.color.emphasized_bg: magenta -> 54 - weechat.color.nicklist_away: cyan -> 240
2023-04-19core: render newline characters in chat line messagesTrygve Aaberge
If a chat line message contains a newline character (\n) it was previously rendered as J with reverse video. This commit makes it render as an actual newline instead, so messages with multiple lines become supported. The rendering is fixed in normal mode as well as bare mode both when scrolled to the bottom and when scrolled up (which is different code paths). Focus events has also been updated to support this (except for _chat_line_y which returns -1 for all lines, but the docs says this variable is only for buffers with free content). Currently, the only way to include a \n in a chat line message is with hdata_update because printf splits on \n and creates multiple separate lines, but hopefully either printf can be changed to not split on \n, or a new command which doesn't split can be added.
2023-03-31core: fix key `meta-[O` (unfocus with xterm) (closes #1900)Sébastien Helleu
2023-03-31core: remove keys `meta-[I` and `meta-[G` for pgup/pgdn (issue #1900)Sébastien Helleu
It seems no terminal return such codes any more for pgup/pgdn, and `meta-[I` is conflicting with the xterm terminal "focus in" key code. The keys are also removed from config when converting old keys, but only if they are bound to the default command (`/window page_up` for `meta2-I` and `/window page_down` for `meta2-G`).
2023-03-26tests: add tests on gui bar functionsSébastien Helleu