Sébastien Helleu
98a599d079
core: move buffer functions and remove them from header file
2023-03-21 20:14:35 +01:00
Sébastien Helleu
f48f1c4700
core: remove unused function gui_buffer_is_scrolled
2023-03-21 20:01:12 +01:00
Sébastien Helleu
6edcc6ed41
core: remove unused function gui_buffer_search_by_layout_number
2023-03-21 19:58:53 +01:00
Sébastien Helleu
0f4ef874ca
core: do not call check callback when setting default value of option
2023-03-19 16:47:46 +01:00
Sébastien Helleu
0d49ffd053
core: add command /reset to reset options to their default values
2023-03-19 08:02:10 +01:00
Sébastien Helleu
64a553f91f
core: change order of modifiers in mouse keys
...
Now the modifiers for mouse keys are in the same order as other keys: `alt-`
then `ctrl-`.
2023-03-17 19:18:30 +01:00
Sébastien Helleu
313b40235a
core: fix search of commands with raw code and alias matching
...
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-17 18:52:30 +01:00
Sébastien Helleu
c1db5c9549
core: refactor print of keys in debug mode
...
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-17 18:52:30 +01:00
Sébastien Helleu
0c4a5528ac
core: display a warning when trying to bind a raw key code or invalid key (missing comma)
2023-03-17 18:52:30 +01:00
Sébastien Helleu
3b8f9d4547
core: check new keys manually added with /set
2023-03-17 18:52:30 +01:00
Sébastien Helleu
042968b016
core: remove use of "meta2-" in key name
...
The raw key code is kept as-is, so for example "meta2-A" becomes "meta-[A".
2023-03-17 18:52:30 +01:00
Sébastien Helleu
7f1f6a6e84
tests: add extra test on function gui_key_legacy_to_alias
2023-03-16 20:42:19 +01:00
Sébastien Helleu
55d9989b85
core: add function config_file_option_set_default
2023-03-16 20:42:19 +01:00
Sébastien Helleu
ccc649d06c
core: create config options for all keys that can be managed with /set and /fset commands
2023-03-16 20:42:19 +01:00
Sébastien Helleu
c82df8f22e
core: fix safe list of keys
...
Add missing safe keys: "backspace" and "return".
Add missing unsafe keys: "comma", "space".
2023-03-16 20:42:19 +01:00
Sébastien Helleu
c647d540a7
core: remove obsolete function gui_key_legacy_expand
2023-03-16 20:42:19 +01:00
Sébastien Helleu
1f5c791c37
core: use new key name in command /key and configuration file
...
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-16 20:42:19 +01:00
Sébastien Helleu
66571a0b63
core: add configuration version, add API function config_set_version
2023-03-16 20:42:18 +01:00
Sébastien Helleu
15587ac72f
core: fix function gui_key_legacy_to_alias with keys on areas
2023-03-16 20:42:18 +01:00
Sébastien Helleu
21910b7050
core: add function to expand raw key code to name with alias, use it in /key debug
2023-03-16 20:42:18 +01:00
Sébastien Helleu
b21bc63313
tests: add tests on functions weeurl_search_constant and weeurl_search_option
2023-03-12 08:02:47 +01:00
Andrew Potter
e3f588679c
core: allow /eval to get hashtable properties
2023-03-10 20:19:03 +01:00
Sébastien Helleu
6d4471b6db
core: optimize search of key bindings in contexts default/search/cursor
2023-02-04 10:45:57 +01:00
Sébastien Helleu
1f073fe949
tests: add tests on function gui_key_cmp
2023-02-03 22:50:32 +01:00
Sébastien Helleu
9f5ca3b1a9
irc: add command /knock ( closes #7 )
2023-01-31 18:37:27 +01:00
Sébastien Helleu
74154d972d
tests: fix comments (issue #1877 )
2023-01-30 21:44:09 +01:00
Sébastien Helleu
69a635412d
core: add function string_get_common_bytes_count (issue #1877 )
2023-01-30 21:44:03 +01:00
Sébastien Helleu
38ffac78f3
core: add function string_levenshtein (issue #1877 )
2023-01-30 21:43:58 +01:00
Sébastien Helleu
fd746a04d6
core: force ctrl keys to lower case when they are added ( closes #1875 )
2023-01-29 12:41:28 +01:00
Sébastien Helleu
48c1aebb83
tests: add tests on gui key functions (issue #1875 )
2023-01-29 12:41:11 +01:00
Sébastien Helleu
0704f382e0
irc: make IRC server names case sensitive (issue #1872 )
2023-01-28 15:14:15 +01:00
Sébastien Helleu
db177de204
core: make configuration files, sections and options case sensitive (issue #1872 )
2023-01-28 15:13:45 +01:00
Sébastien Helleu
72f4596fb2
core: add function config_file_get_configs_by_priority (issue #1872 )
2023-01-28 15:13:43 +01:00
Sébastien Helleu
0dd1d1be1c
core: sort configuration files by name, reload them by priority (issue #1872 )
2023-01-28 15:13:36 +01:00
Sébastien Helleu
347c3f3214
core: move function hook_get_priority_and_name to wee-string.c (issue #1872 )
2023-01-28 15:13:18 +01:00
Sébastien Helleu
cfa2239db5
irc: update message with number of nicks when joining a channel
...
Changed:
- "N voices" to "N voiced"
- "N normals" to "N regular"
2023-01-15 21:12:32 +01:00
Sébastien Helleu
51d0a6f402
tests: add tests on string comparison functions
2023-01-14 21:44:19 +01:00
Sébastien Helleu
754ab33946
core: remove build with autotools
...
CMake is now the only way to build WeeChat.
2023-01-08 14:19:41 +01:00
Sébastien Helleu
c6df2e7b8e
tests: fix long lines in scripting API tests
2023-01-04 21:13:25 +01:00
Sébastien Helleu
e6857871f0
tests: ignore module level import not at top of file (flake8 E402)
2023-01-04 21:12:53 +01:00
Sébastien Helleu
d1f2d54a1e
tests: mark methods is_bool and is_number as static
2023-01-04 21:11:41 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
1fb6d52984
tests: add tests on gui input functions
2023-01-01 14:41:06 +01:00
Sébastien Helleu
73bac5491b
core: move function gui_input_move_to_buffer to gui-buffer.c
2022-12-31 10:40:00 +01:00
Sébastien Helleu
05839983d4
core: fix color when the delimiter is not followed by a background color ( closes #1867 )
2022-12-30 21:50:18 +01:00
Sébastien Helleu
41fd26fe79
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`
2022-12-25 22:47:18 +01:00
Sébastien Helleu
0c29d4c5b6
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`
2022-12-25 21:44:27 +01:00
Sébastien Helleu
babe1e7a42
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`
2022-12-25 18:50:57 +01:00
Sébastien Helleu
574a4c8834
core: add function gui_buffer_jump_last_visible_number
2022-12-25 17:57:59 +01:00
Sébastien Helleu
c9796a3141
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`
2022-12-25 17:00:37 +01:00