1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

core: add key ctrl+o to send command found and insert next one in input (issue #2040)

This commit is contained in:
Sébastien Helleu
2023-11-07 18:42:48 +01:00
parent b83b428c5c
commit 97a90ac65a
12 changed files with 74 additions and 2 deletions
+5
View File
@@ -124,6 +124,7 @@ gui_key_default_bindings (int context, int create_option)
BIND("down", "/input history_next");
BIND("ctrl-up", "/input history_global_previous");
BIND("ctrl-down", "/input history_global_next");
BIND("ctrl-o", "/input history_use_get_next");
BIND("shift-up", "/input move_previous_line");
BIND("shift-down", "/input move_next_line");
BIND("meta-a", "/buffer jump smart");
@@ -219,6 +220,10 @@ gui_key_default_bindings (int context, int create_option)
BIND("up", "/input search_previous");
BIND("ctrl-s", "/input search_next");
BIND("down", "/input search_next");
if (context == GUI_KEY_CONTEXT_HISTSEARCH)
{
BIND("ctrl-o", "/input history_use_get_next");
}
}
else if (context == GUI_KEY_CONTEXT_CURSOR)
{