[gnome-builder/wip/libide] libide: add replay support to >> and <<



commit 9ff15c983d3ec4c4c31289c5e1288bb07fa72cd4
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 12 02:07:49 2015 -0700

    libide: add replay support to >> and <<

 data/keybindings/vim.css |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 56b96f2..266537f 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -657,16 +657,20 @@
 
 @binding-set builder-vim-source-view-normal-indent
 {
-  bind "greater" { "movement" (first-char, 0, 1, 0)
+  bind "greater" { "begin-macro" ()
+                   "movement" (first-char, 0, 1, 0)
                    "movement" (line-end, 1, 1, 0)
                    "indent-selection" (1)
                    "clear-selection" ()
-                   "movement" (first-nonspace-char, 0, 1, 0) };
-  bind "less"    { "movement" (first-char, 0, 1, 0)
+                   "movement" (first-nonspace-char, 0, 1, 0)
+                   "end-macro" () };
+  bind "less"    { "begin-macro" ()
+                   "movement" (first-char, 0, 1, 0)
                    "movement" (line-end, 1, 1, 0)
                    "indent-selection" (-1)
                    "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-z


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