Sébastien Helleu
303fe6744e
core: add option setauto in command /buffer (issue #352 )
2023-08-24 11:49:29 +02:00
Sébastien Helleu
43d341feac
core: fix /help cursor (issue #1282 )
2023-08-16 16:12:35 +02:00
Sébastien Helleu
48e6a1e387
core: add parameters and key bindings to move to edges of current area with commands /cursor go and /cursor move ( closes #1282 )
2023-08-16 15:25:52 +02:00
Sébastien Helleu
481e8f197d
core: use type "enum" in options
2023-07-08 13:29:45 +02:00
Sébastien Helleu
66cb9f6ea2
core: add option type "enum" ( closes #1973 )
...
The type "enum" replaces type "integer" when used with string values.
For compatibility, any option created with type "integer" and string values is
automatically created to "enum" on creation, with no error.
2023-07-08 13:28:40 +02:00
Sébastien Helleu
7b6c9328be
core: add quotes around key names in /help key
2023-07-05 21:23:47 +02:00
Sébastien Helleu
59cdade5f0
core: fix cursor position after /plugin list -i or /plugin list -il
2023-07-04 21:56:22 +02:00
Sébastien Helleu
e36b066dc8
core: add key ctrl-backspace in /help key (issue #1975 )
2023-07-04 18:45:11 +02:00
Sébastien Helleu
5e0ca4740b
core: display actual key name and command with key Alt+k
...
Key Alt+K (upper K) is removed as well as commands `/input grab_raw_key` and
`/input grab_raw_key_command`.
2023-06-26 21:21:12 +02:00
Sébastien Helleu
fc91ee59c9
core: add completions "filters_names_disabled" and "filters_names_enabled"
...
They are used in completion of commands `/filter disable` and
`/filter enable`.
2023-06-10 22:38:54 +02:00
Sébastien Helleu
25d7192677
api: don't split on newline by default in functions command and 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-04 21:06:32 +02:00
Sébastien Helleu
e75009a461
core: add enabled/disabled status color in output of /filter list ( closes #1820 )
2023-05-01 20:23:48 +02:00
Sébastien Helleu
ac25043b27
core: add option split_return in command /input ( closes #1916 )
2023-04-25 22:10:48 +02:00
Sébastien Helleu
3d79e2c9d2
Revert "core: remove deprecated parameters from command /input"
...
This reverts commit 2b7f745369 .
Parameters removed are still used in scripts, and it's OK to keep them for a
while.
2023-04-23 09:53:50 +02:00
Sébastien Helleu
2b7f745369
core: remove deprecated parameters from command /input
...
Parameters removed:
- jump_smart
- jump_last_buffer
- jump_last_buffer_displayed
- jump_previously_visited_buffer
- jump_next_visited_buffer
- hotlist_clear
- hotlist_remove_buffer
- hotlist_restore_buffer
- hotlist_restore_all
- set_unread_current_buffer
- set_unread
- switch_active_buffer
- switch_active_buffer_previous
- zoom_merged_buffer
2023-04-19 16:44:42 +02:00
Sébastien Helleu
70bf3f8671
core: replace "SSL" by "TLS" in /help upgrade (issue #1903 )
2023-04-13 20:11:03 +02:00
Sébastien Helleu
974ac9ad5f
core: add separate function to get translated help for values of color options
2023-03-28 22:32:54 +02:00
Sébastien Helleu
fe41da1506
core: update translations (issue #1503 )
2023-03-26 20:30:17 +02:00
Trygve Aaberge
9ac30381fa
core: Implement commands for operating on a single input line
...
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-26 15:52:19 +02:00
Sébastien Helleu
15f0f7e369
core: add option legacy in command /key
2023-03-24 23:07:40 +01:00
Sébastien Helleu
cee14f10d6
core: add option rename in command /bar
2023-03-19 18:24:39 +01:00
Sébastien Helleu
e4f181beb3
core: display an error with /bar add when the bar already exists
2023-03-19 17:42:12 +01:00
Sébastien Helleu
6bd49dd595
core: add value "name" in completion of /bar set <name>
2023-03-19 17:26:06 +01:00
Sébastien Helleu
3e5d77fdff
core: optimize commands /reset and /unset with a mask
2023-03-19 08:30:32 +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
2e82c41c1a
core: don't translate the key context (default/search/cursor/mouse)
2023-03-19 07:17:44 +01:00
Sébastien Helleu
99ca276556
core: also display mouse codes with /debug key
2023-03-17 22:49:50 +01:00
Sébastien Helleu
2b1da0d910
core: add note about "shift-" modifier in /help key
...
The modifier "shift-" can only be used with the key names, not with simple
chars.
2023-03-17 18:52:30 +01:00
Sébastien Helleu
d9e084869a
core: add modifiers, key names and combos in /help key
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
8a5a778293
core: remove mention to list of keys being displayed without arguments in /help key
...
Now when fset plugin is loaded, the keys are displayed in fset buffer.
In core commands like /set or /key, the fset plugin is not mentioned as WeeChat
can run without it.
2023-03-16 20:42:19 +01:00
Sébastien Helleu
bf51a081d9
core: display a specific error when trying to bind a key without area in mouse context
2023-03-16 20:42:19 +01:00
Sébastien Helleu
03e6d4563f
core: move keyboard debug mode from /key debug to /debug key
2023-03-16 20:42:19 +01:00
Sébastien Helleu
79f7c1cf83
fset: hook command /key
...
When command /key is called without arguments, and if fset plugin is loaded,
fset displays all key options (filter: `weechat.key*`).
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
5b5c9afa29
core: add key alt-K (alt+shift+k) to grab raw key and its command
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
5b5ccb236f
core: fix display of key with command /key bindctxt <context> <key>
2023-03-16 20:42:18 +01:00
Sébastien Helleu
31bf962bba
core: display new key name using aliases in output of /key command
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
0781f29726
core: add keyboard debug mode with command /key debug
2023-03-16 20:42:18 +01:00
Sébastien Helleu
5f5535b466
core: simplify /help eval, move examples with the other examples (issue #1888 )
2023-03-10 20:52:28 +01:00
Andrew Potter
e3f588679c
core: allow /eval to get hashtable properties
2023-03-10 20:19:03 +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
5434f4f969
core, plugins: make plugin names case sensitive (issue #1872 )
2023-01-28 15:13:57 +01:00
Sébastien Helleu
4b5897f110
core: make bar and bar items case sensitive (issue #1872 )
2023-01-28 15:13:55 +01:00
Sébastien Helleu
f0415c8ec3
core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872 )
2023-01-28 15:13:48 +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