[gnome-builder] libide: clear selection in vim after undo and escape hatch



commit de2b22599c1dac35d01f897e9f45f3ab70e48ba2
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 4 14:34:14 2015 -0800

    libide: clear selection in vim after undo and escape hatch

 data/keybindings/vim.css |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index dad6605..53b1528 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1,8 +1,10 @@
 @binding-set builder-vim-source-view
 {
   bind "Escape" { "set-overwrite" (0)
+                 "clear-selection" ()
                   "set-mode" ("vim-normal", permanent) };
   bind "<ctrl>bracketleft" { "set-overwrite" (0)
+                            "clear-selection" ()
                              "set-mode" ("vim-normal", permanent) };
 }
 
@@ -94,8 +96,11 @@
   /* move to nth line, defaults to last */
   bind "<shift>g" { "movement" (nth-line, 0) };
 
-  /* Undo & Redo */
-  bind "u" { "undo" () };
+  /* undo - todo: how do we land cursor on right spot? */
+  bind "u" { "undo" ()
+             "clear-selection" () };
+
+  /* redo */
   bind "<ctrl>r" { "redo" () };
 
   /* overwrite */


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