summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-11-07 18:42:48 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-11-11 08:54:24 +0100
commit97a90ac65a3e19fd3963b806b4688ebdb106c006 (patch)
treed1d755656e0c828c4fb087e003b9a904e442e62e /src/core
parentb83b428c5cc48043cb625844b87e94acbc194ba1 (diff)
downloadweechat-97a90ac65a3e19fd3963b806b4688ebdb106c006.zip
core: add key ctrl+o to send command found and insert next one in input (issue #2040)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 02d0da641..5bc648dc1 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3593,6 +3593,8 @@ COMMAND_CALLBACK(input)
gui_input_history_global_previous (buffer);
else if (string_strcmp (argv[1], "history_global_next") == 0)
gui_input_history_global_next (buffer);
+ else if (string_strcmp (argv[1], "history_use_get_next") == 0)
+ gui_input_history_use_get_next (buffer);
else if (string_strcmp (argv[1], "grab_key") == 0)
{
gui_input_grab_key (buffer,
@@ -8524,6 +8526,9 @@ command_init ()
N_("> raw[history_next]: recall next command in current buffer history"),
N_("> raw[history_global_previous]: recall previous command in global history"),
N_("> raw[history_global_next]: recall next command in global history"),
+ N_("> raw[history_use_get_next]: send the current history entry "
+ "(found with search or recalled with \"up\"key) and insert the "
+ "next history entry in the command line without sending it"),
N_("> raw[grab_key]: grab a key (optional argument: delay for end of grab, "
"default is 500 milliseconds)"),
N_("> raw[grab_key_command]: grab a key with its associated command (optional "
@@ -8554,7 +8559,7 @@ command_init ()
"move_previous_char || move_next_char || move_previous_word || "
"move_next_word || move_previous_line || move_next_line || "
"history_previous || history_next || history_global_previous || "
- "history_global_next || "
+ "history_global_next || history_use_get_next || "
"grab_key || grab_key_command || "
"grab_mouse || grab_mouse_area || "
"insert || send",