[gnome-builder] libide: implement change-case for ~ in normal and uU in visual-line



commit 5d3c32f92b6d575c8229a20b8d7da91bb3d63727
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 4 17:58:41 2015 -0800

    libide: implement change-case for ~ in normal and uU in visual-line

 data/keybindings/vim.css |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index f59ac09..5a3c542 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -139,6 +139,10 @@
   bind "<ctrl>a" { "change-number" (1) };
   bind "<ctrl>x" { "change-number" (-1) };
 
+  /* toggle character case */
+  bind "asciitilde" { "change-case" (toggle)
+                      "movement" (next-char, 0) };
+
   /* copy */
   bind "y" { "set-mode" ("vim-normal-y", transient) };
   bind "<shift>y" { "save-cursor" ()
@@ -230,6 +234,17 @@
                     "clear-selection" ()
                     "movement" (last-char, 0)
                     "set-mode" ("vim-normal", permanent) };
+
+  bind "asciitilde" { "change-case" (toggle)
+                      "clear-selection" ()
+                      "set-mode" ("vim-normal", permanent) };
+
+  bind "<shift>u" { "change-case" (upper)
+                    "clear-selection" ()
+                    "set-mode" ("vim-normal", permanent) };
+  bind "u" { "change-case" (lower)
+             "clear-selection" ()
+             "set-mode" ("vim-normal", permanent) };
 }
 
 @binding-set builder-vim-source-view-visual-block


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]