summaryrefslogtreecommitdiff
path: root/tests/unit
AgeCommit message (Collapse)Author
2023-05-14irc: do not allow send of empty messages (single line or multiline)Sébastien Helleu
2023-05-14irc: add test of privmsg message parsing with empty textSébastien Helleu
2023-05-14irc: set "input_multiline" to 1 in buffers only if capability ↵Sébastien Helleu
draft/multiline is enabled (issue #1923)
2023-05-14irc: add support of "LINELEN" in message 005 (max message length in bytes) ↵Sébastien Helleu
(closes #1927)
2023-05-14irc: add support of capability "draft/multiline" (closes #1923)Sébastien Helleu
2023-05-05core: fix execution of multiple commands separated by newline when there are ↵Sébastien Helleu
no spaces For example typing this on core buffer: /t1 /t2 was not executing the two commands but sent the text to the buffer instead. This is because WeeChat thinks it's a path, and the newline should indicate it's not (like a space before the next slash: "/t1 /t2" is a command, not a path, but "/t1/t2" is considered a path).
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-05-03irc: add support of capability "batch" (closes #1292)Sébastien Helleu
2023-05-01irc: add option `buffer` in command `/autojoin sort` (closes #1876)Sébastien Helleu
2023-04-27irc: add `${username}` in server options "nicks" and "username", change ↵Sébastien Helleu
their default values to use it
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-24irc: add message 742 (mode cannot be set)Sébastien Helleu
2023-04-24irc: add message 415 (cannot send message to channel)Sébastien Helleu
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-04-12irc: improve short description of server (issue #1903)Sébastien Helleu
2023-04-12irc: connect with TLS and port 6697 by default (issue #1903)Sébastien Helleu
2023-04-12irc: rename "ssl" options to "tls" (issue #1903)Sébastien Helleu
2023-04-12irc: check that IRC URL starts with "irc" (issue #1903)Sébastien Helleu
2023-04-05tests: add tests on function irc_server_alloc_with_urlSébastien Helleu
2023-04-03irc: don't switch to buffer of joined channel if it was not manually joined ↵Sébastien Helleu
nor present in server autojoin option
2023-04-02irc: update autojoin option with redirected channels when autojoin_dynamic ↵Sébastien Helleu
is enabled (closes #1898)
2023-03-31irc: fix target buffer for commands 432/433 when the nickname looks like a ↵Sébastien Helleu
channel
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-28core: check that infolist is not NULL in next/prev/reset_item_cursor functionsSébastien Helleu
2023-03-26core: Implement commands for operating on a single input lineTrygve Aaberge
This changes the commands delete_beginning_of_line, delete_end_of_line, delete_line, move_beginning_of_line and move_end_of_line to operate on the current line instead of the whole input. The commands delete_beginning_of_input, delete_end_of_input, delete_input, move_beginning_of_input and move_end_of_input are added with the previous implementations that the line commands had. Additionally, the commands move_previous_line and move_next_line are added which moves the cursor to the previous/next line and keeps the horizontal position in the line. The meta-r key is changed from delete_line to delete_input to keep the behavior, and because you probably want to delete the whole input more often than the line. The meta-R key is added for delete_line. The home, end, ctrl-u and ctrl-k keys are kept to the same commands, which means that they change behaviour. This is because having them operate on the line is consistent with other applications (vim, zsh), and I also think it's more practical. These new bindings are added: shift-home: /input move_beginning_of_input shift-end: /input move_end_of_input shift-up: /input move_previous_line shift-down: /input move_next_line meta-R: /input delete_line meta-ctrl-u: /input delete_beginning_of_input meta-ctrl-k: /input delete_end_of_input Relates to #1498
2023-03-26tests: add tests on gui bar functionsSébastien Helleu
2023-03-25tests: add placeholder for function gui_key_paste_finishSébastien Helleu
2023-03-21core: move buffer functions and remove them from header fileSébastien Helleu
2023-03-21core: remove unused function gui_buffer_is_scrolledSébastien Helleu
2023-03-21core: remove unused function gui_buffer_search_by_layout_numberSébastien Helleu
2023-03-19core: do not call check callback when setting default value of optionSébastien Helleu
2023-03-19core: add command `/reset` to reset options to their default valuesSébastien Helleu
2023-03-17core: change order of modifiers in mouse keysSébastien Helleu
Now the modifiers for mouse keys are in the same order as other keys: `alt-` then `ctrl-`.
2023-03-17core: fix search of commands with raw code and alias matchingSébastien Helleu
When raw code and alias for a key are both matching, the raw code must always have higher priority. This commit fixes this behavior and gives priority to raw code.
2023-03-17core: refactor print of keys in debug modeSébastien Helleu
Changes: - add function gui_key_debug_print_key - change message "no key" by "no key binding" - remove messages ""insert into input" / "ignored" - add color for delimiters
2023-03-17core: display a warning when trying to bind a raw key code or invalid key ↵Sébastien Helleu
(missing comma)
2023-03-17core: check new keys manually added with /setSébastien Helleu
2023-03-17core: remove use of "meta2-" in key nameSébastien Helleu
The raw key code is kept as-is, so for example "meta2-A" becomes "meta-[A".
2023-03-16tests: add extra test on function gui_key_legacy_to_aliasSébastien Helleu
2023-03-16core: add function config_file_option_set_defaultSébastien Helleu
2023-03-16core: create config options for all keys that can be managed with `/set` and ↵Sébastien Helleu
`/fset` commands
2023-03-16core: fix safe list of keysSébastien Helleu
Add missing safe keys: "backspace" and "return". Add missing unsafe keys: "comma", "space".
2023-03-16core: remove obsolete function gui_key_legacy_expandSébastien Helleu
2023-03-16core: use new key name in command `/key` and configuration fileSébastien Helleu
Legacy keys are automatically converted to new names when loading configuration file `weechat.conf`. Examples: "ctrl-I" => "tab" "meta2-1;3A" => "meta-up" "meta2-Z" => "shift-tab" "meta-wmeta-meta2-A" => "meta-w,meta-up" "ctrl-Cb" => "ctrl-c,b"
2023-03-16core: add configuration version, add API function config_set_versionSébastien Helleu
2023-03-16core: fix function gui_key_legacy_to_alias with keys on areasSébastien Helleu
2023-03-16core: add function to expand raw key code to name with alias, use it in /key ↵Sébastien Helleu
debug
2023-03-12tests: add tests on functions weeurl_search_constant and weeurl_search_optionSébastien Helleu
2023-03-10core: allow /eval to get hashtable propertiesAndrew Potter