[gnome-builder/wip/libide] libide: play around with non-zero numbers



commit 84b2ad97a25e9e531c08df57c5323b8acdf228eb
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 6 13:56:07 2015 -0800

    libide: play around with non-zero numbers
    
    We need to figure a way to support zero cleanly. My current thought is
    that we can add a signalaction to add a class to the current mode.
    That way, we can simply have an additional selector match that includes
    a zero keybinding.

 data/keybindings/vim.css |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 45be4c1..cce48d3 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -77,15 +77,28 @@
 @binding-set builder-vim-source-view
 {
   bind "Escape" { "set-overwrite" (0)
+                  "clear-count" ()
                   "clear-selection" ()
                   "set-mode" ("vim-normal", permanent) };
   bind "<ctrl>bracketleft" { "set-overwrite" (0)
+                             "clear-count" ()
                              "clear-selection" ()
                              "set-mode" ("vim-normal", permanent) };
 }
 
 @binding-set builder-vim-source-view-normal
 {
+  /* todo: need a submode that will allow 0 to be used. */
+  bind "1" { "append-to-count" (1) };
+  bind "2" { "append-to-count" (2) };
+  bind "3" { "append-to-count" (3) };
+  bind "4" { "append-to-count" (4) };
+  bind "5" { "append-to-count" (5) };
+  bind "6" { "append-to-count" (6) };
+  bind "7" { "append-to-count" (7) };
+  bind "8" { "append-to-count" (8) };
+  bind "9" { "append-to-count" (9) };
+
   /* insert at cursor */
   bind "i" { "set-mode" ("vim-insert", permanent) };
 


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