summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-09-18 23:26:49 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-09-18 23:26:49 +0200
commit01cf98e8fbd8411464fcedd97d7400d961f7e1f5 (patch)
treee806dd11db677e788e4991383fedc4c0c1ee02bc /src/gui/curses
parentd7c0e896b2d00e215cf3616edc16afeaeb60196f (diff)
downloadweechat-01cf98e8fbd8411464fcedd97d7400d961f7e1f5.zip
core: add key alt+backspace, change behavior of key ctrl+w (closes #559)
The key ctrl+w now deletes one word until whitespace. The new key alt+backspace deletes one word (same behavior as ctrl+w in previous releases).
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c
index 4f4e4245c..6ca0f48b6 100644
--- a/src/gui/curses/gui-curses-key.c
+++ b/src/gui/curses/gui-curses-key.c
@@ -93,7 +93,8 @@ gui_key_default_bindings (int context)
BIND(/* m-_ */ "meta-_", "/input redo");
BIND(/* <del> */ "meta2-3~", "/input delete_next_char");
BIND(/* ^D */ "ctrl-D", "/input delete_next_char");
- BIND(/* ^W */ "ctrl-W", "/input delete_previous_word");
+ BIND(/* ^W */ "ctrl-W", "/input delete_previous_word_whitespace");
+ BIND(/* m-<backspace> */ "meta-ctrl-?", "/input delete_previous_word");
BIND(/* ^X */ "ctrl-X", "/input switch_active_buffer");
BIND(/* m-x */ "meta-x", "/input zoom_merged_buffer");
BIND(/* m-d */ "meta-d", "/input delete_next_word");