aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratyush Yadav <me@yadavpratyush.com>2020-05-21 18:25:32 +0530
committerPratyush Yadav <me@yadavpratyush.com>2020-05-21 18:25:32 +0530
commitc195247812f8cd38ba7e1c603112e6c1d8d8e71e (patch)
treed3acffdc380556dbb60fc24d04a5c44328c7565f
parent88db24d724619d6c2e602c3b56016f59326d31e3 (diff)
parente5894146b0e38cd5754ee60676110208c470ff34 (diff)
downloadgit-c195247812f8cd38ba7e1c603112e6c1d8d8e71e.tar.gz
Merge branch 'il/ctrl-bs-del'
Allow deleting words backwards and forwards using Ctrl + Backspace and Delete in the commit message buffer. * il/ctrl-bs-del: git-gui: Handle Ctrl + BS/Del in the commit msg
-rwxr-xr-xgit-gui.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index faaf93b431..49bd86e635 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3928,6 +3928,8 @@ bind $ui_comm <$M1B-Key-KP_Subtract> {show_less_context;break}
bind $ui_comm <$M1B-Key-equal> {show_more_context;break}
bind $ui_comm <$M1B-Key-plus> {show_more_context;break}
bind $ui_comm <$M1B-Key-KP_Add> {show_more_context;break}
+bind $ui_comm <$M1B-Key-BackSpace> {event generate %W <Meta-Delete>;break}
+bind $ui_comm <$M1B-Key-Delete> {event generate %W <Meta-d>;break}
bind $ui_diff <$M1B-Key-x> {tk_textCopy %W;break}
bind $ui_diff <$M1B-Key-X> {tk_textCopy %W;break}