summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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
2023-02-04core: optimize search of key bindings in contexts default/search/cursorSébastien Helleu
2023-02-03tests: add tests on function gui_key_cmpSébastien Helleu
2023-01-31irc: add command `/knock` (closes #7)Sébastien Helleu
2023-01-30tests: fix comments (issue #1877)Sébastien Helleu
2023-01-30core: add function string_get_common_bytes_count (issue #1877)Sébastien Helleu
2023-01-30core: add function string_levenshtein (issue #1877)Sébastien Helleu
2023-01-29core: force ctrl keys to lower case when they are added (closes #1875)Sébastien Helleu
2023-01-29tests: add tests on gui key functions (issue #1875)Sébastien Helleu
2023-01-28irc: make IRC server names case sensitive (issue #1872)Sébastien Helleu
2023-01-28core: make configuration files, sections and options case sensitive (issue ↵Sébastien Helleu
#1872)
2023-01-28core: add function config_file_get_configs_by_priority (issue #1872)Sébastien Helleu
2023-01-28core: sort configuration files by name, reload them by priority (issue #1872)Sébastien Helleu
2023-01-28core: move function hook_get_priority_and_name to wee-string.c (issue #1872)Sébastien Helleu
2023-01-15irc: update message with number of nicks when joining a channelSébastien Helleu
Changed: - "N voices" to "N voiced" - "N normals" to "N regular"
2023-01-14tests: add tests on string comparison functionsSébastien Helleu
2023-01-08core: remove build with autotoolsSébastien Helleu
CMake is now the only way to build WeeChat.
2023-01-04tests: fix long lines in scripting API testsSébastien Helleu
2023-01-04tests: ignore module level import not at top of file (flake8 E402)Sébastien Helleu
2023-01-04tests: mark methods is_bool and is_number as staticSébastien Helleu
2023-01-01core: update copyright datesSébastien Helleu
2023-01-01tests: add tests on gui input functionsSébastien Helleu
2022-12-31core: move function gui_input_move_to_buffer to gui-buffer.cSébastien Helleu
2022-12-30core: fix color when the delimiter is not followed by a background color ↵Sébastien Helleu
(closes #1867)
2022-12-25core: move `/input` buffer switch/zoom actions to command `/buffer`Sébastien Helleu
Actions moved: * `/input switch_active_buffer` -> `/buffer switch` * `/input switch_active_buffer_previous` -> `/buffer switch -previous` * `/input zoom_merged_buffer` -> `/buffer zoom`
2022-12-25core: move `/input` set_unread actions to commands `/allbuf` and `/buffer set`Sébastien Helleu
Actions moved: * `/input set_unread` -> `/allbuf /buffer set unread` * `/input set_unread_current_buffer` -> `/buffer set unread`