summary refs log tree commit diff
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
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
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_keymap.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ce2e13871..f51d1a0de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-11-17  Oliver Kiddle  <opk@zsh.org>
 
+	* 39962: Src/Zle/zle_keymap.c: bind vi case conversion widgets
+	u/U in visual mode and g~ from normal mode
+
 	* 39959: Src/Zle/zle_vi.c, Test/X02zlevi.ztst: when repeating
 	vi changes advance through the numbered killring registers.
 	Also fix numeric arguments with vi-repeat-change.
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");