[gnome-builder] libide: guu/gUU: add replay support and make line movement inclusive



commit a2357c60cca06d181bf1f5084c130659858cf37c
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 12 02:11:44 2015 -0700

    libide: guu/gUU: add replay support and make line movement inclusive

 data/keybindings/vim.css |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 266537f..8928621 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -753,21 +753,25 @@
 
 @binding-set builder-vim-source-view-normal-g-u
 {
-  bind "u" { "movement" (first-char, 0, 1, 0)
-             "movement" (next-line, 1, 1, 1)
+  bind "u" { "begin-macro" ()
+             "movement" (first-char, 0, 1, 0)
+             "movement" (next-line, 1, 0, 1)
              "swap-selection-bounds" ()
              "selection-theatric" (expand)
              "change-case" (lower)
              "clear-selection" ()
-             "movement" (first-nonspace-char, 0, 1, 0) };
+             "movement" (first-nonspace-char, 0, 1, 0)
+             "end-macro" () };
 
-  bind "<shift>u" { "movement" (first-char, 0, 1, 0)
-                    "movement" (next-line, 1, 1, 1)
+  bind "<shift>u" { "begin-macro" ()
+                    "movement" (first-char, 0, 1, 0)
+                    "movement" (next-line, 1, 0, 1)
                     "swap-selection-bounds" ()
                     "selection-theatric" (expand)
                     "change-case" (upper)
                     "clear-selection" ()
-                    "movement" (first-nonspace-char, 0, 1, 0) };
+                    "movement" (first-nonspace-char, 0, 1, 0)
+                    "end-macro" () };
 }
 
 @binding-set builder-vim-source-view-normal-d-g


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