about summary refs log tree commit diff
path: root/saneterm
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-05-23 23:28:52 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2021-05-23 23:28:52 +0200
commitac0b98157d79e69c0f1422cb6236c7f978428dec (patch)
tree88ce3311c2b33b1a3a4aad74306db1f47a881932 /saneterm
parentf2928d927e77be6e02e3d052e751a2c5c2811852 (diff)
Enable <ctrl>w keybinding by default
Diffstat (limited to 'saneterm')
-rw-r--r--saneterm/keys.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/saneterm/keys.py b/saneterm/keys.py
index 05ad05e..47058f6 100644
--- a/saneterm/keys.py
+++ b/saneterm/keys.py
@@ -19,9 +19,11 @@ class Bindings():
             bind "<ctrl>u" { "kill-after-output" () };
             bind "<ctrl>a" { "move-input-start" () };
             bind "<ctrl>e" { "move-input-end" () };
-            bind "<ctrl>h" { "backspace" () };
             bind "<ctrl>j" { "insert-at-cursor" ("\\n") };
 
+            bind "<ctrl>w" { "delete-from-cursor" (word-ends, -1) };
+            bind "<ctrl>h" { "backspace" () };
+
             /* Since <ctrl>c is used for VINTR, unbind <ctrl>v */
             unbind "<ctrl>v";
         }