diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-13 22:40:46 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-13 22:40:46 +0200 |
commit | d38d9613940889464437e16f35fabce8de8998f1 (patch) | |
tree | 03e4951a470b47f5afedd4cc08c5b8127c67958c /src | |
parent | 4406087ee57867ff42c8913314c8dd3c15a561f4 (diff) | |
download | weechat-d38d9613940889464437e16f35fabce8de8998f1.zip |
core: add option "send" in command /input (send text to a buffer)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-command.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 92a256ba4..5daa30b9c 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -2995,6 +2995,8 @@ COMMAND_CALLBACK(input) if (argc > 2) gui_input_insert (buffer, argv_eol[2]); } + else if (string_strcasecmp (argv[1], "send") == 0) + input_data (buffer, argv_eol[2]); else if (string_strcasecmp (argv[1], "undo") == 0) gui_input_undo (buffer); else if (string_strcasecmp (argv[1], "redo") == 0) @@ -7233,6 +7235,7 @@ command_init () " zoom_merged_buffer: zoom on merged buffer\n" " insert: insert text in command line (escaped chars are allowed, " "see /help print)\n" + " send: send text to the buffer\n" " paste_start: start paste (bracketed paste mode)\n" " paste_stop: stop paste (bracketed paste mode)\n" "\n" @@ -7248,7 +7251,7 @@ command_init () "jump_next_visited_buffer|hotlist_clear|grab_key|grab_key_command|" "grab_mouse|grab_mouse_area|set_unread|set_unread_current_buffer|" "switch_active_buffer|switch_active_buffer_previous|zoom_merged_buffer|" - "insert|paste_start|paste_stop", + "insert|send|paste_start|paste_stop", &command_input, NULL); hook_command ( NULL, "key", |