diff options
author | Niklas Luokkala <niklas.luokkala@gmail.com> | 2018-01-24 00:15:29 +0200 |
---|---|---|
committer | Niklas Luokkala <niklas.luokkala@gmail.com> | 2018-01-24 00:15:29 +0200 |
commit | d14dbbd09338f5cd8d14c1ec15bcf3c7fd43a3c7 (patch) | |
tree | d3f3949357e6cf2ebc927ba1c24cee5a54b8647c /src | |
parent | 243ae4be84d422322f20be1b715dc0b00ef9c32d (diff) | |
download | irssi-d14dbbd09338f5cd8d14c1ec15bcf3c7fd43a3c7.zip |
Add Shift-Tab completion to gui-readline
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-readline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index b3a78396..c7cf6369 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -1174,6 +1174,7 @@ void gui_readline_init(void) key_bind("key", NULL, "^H", "backspace", (SIGNAL_FUNC) key_combo); key_bind("key", NULL, "^?", "backspace", (SIGNAL_FUNC) key_combo); key_bind("key", NULL, "^I", "tab", (SIGNAL_FUNC) key_combo); + key_bind("key", NULL, "meta2-Z", "shifttab", (SIGNAL_FUNC) key_combo); /* meta */ key_bind("key", NULL, "^[", "meta", (SIGNAL_FUNC) key_combo); @@ -1280,6 +1281,7 @@ void gui_readline_init(void) key_bind("send_line", "Execute the input line", "return", NULL, (SIGNAL_FUNC) key_send_line); key_bind("word_completion_backward", "", NULL, NULL, (SIGNAL_FUNC) key_word_completion_backward); key_bind("word_completion", "Complete the current word", "tab", NULL, (SIGNAL_FUNC) key_word_completion); + key_bind("word_completion_backward", "Completes the previous word", "shifttab", NULL, (SIGNAL_FUNC) key_word_completion_backward); key_bind("erase_completion", "Remove the completion added by word_completion", "meta-k", NULL, (SIGNAL_FUNC) key_erase_completion); key_bind("check_replaces", "Check word replaces", NULL, NULL, (SIGNAL_FUNC) key_check_replaces); |