about summary refs log tree commit diff
path: root/Src/Zle/zle_keymap.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-11-17 12:28:41 +0100
committerOliver Kiddle <opk@zsh.org>2016-11-17 12:32:28 +0100
commit0a6098a1d4debda1d57f4a7cd42bb5c49d65cddc (patch)
tree545088bca8cd7f9fa5eb3e2d492fe4109b9efdeb /Src/Zle/zle_keymap.c
parent48bdcd771308072c1cfc35220e4478356fd475fa (diff)
downloadzsh-0a6098a1d4debda1d57f4a7cd42bb5c49d65cddc.tar.gz
zsh-0a6098a1d4debda1d57f4a7cd42bb5c49d65cddc.tar.xz
zsh-0a6098a1d4debda1d57f4a7cd42bb5c49d65cddc.zip
39962: bind vi case conversion widgets
u/U in visual mode and g~ from normal mode
Diffstat (limited to 'Src/Zle/zle_keymap.c')
-rw-r--r--Src/Zle/zle_keymap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index 053b097bb..24e8d1964 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -1369,6 +1369,8 @@ default_bindings(void)
     bindkey(vismap, "\33", refthingy(t_deactivateregion), NULL);
     bindkey(vismap, "o", refthingy(t_exchangepointandmark), NULL);
     bindkey(vismap, "p", refthingy(t_putreplaceselection), NULL);
+    bindkey(vismap, "u", refthingy(t_vidowncase), NULL);
+    bindkey(vismap, "U", refthingy(t_viupcase), NULL);
     bindkey(vismap, "x", refthingy(t_videlete), NULL);
     bindkey(vismap, "~", refthingy(t_vioperswapcase), NULL);
 
@@ -1379,6 +1381,7 @@ default_bindings(void)
     bindkey(amap, "gg", refthingy(t_beginningofbufferorhistory), NULL);
     bindkey(amap, "gu", refthingy(t_vidowncase), NULL);
     bindkey(amap, "gU", refthingy(t_viupcase), NULL);
+    bindkey(amap, "g~", refthingy(t_vioperswapcase), NULL);
     bindkey(amap, "g~~", NULL, "g~g~");
     bindkey(amap, "guu", NULL, "gugu");
     bindkey(amap, "gUU", NULL, "gUgU");