[gnome-builder] vim: make ctrl+n/ctrl+p work in GtkListBox



commit 41caff8cfb7f099d1ad23d190228f9dc142ad8a9
Author: Christian Hergert <christian hergert me>
Date:   Sun May 17 13:37:13 2015 -0700

    vim: make ctrl+n/ctrl+p work in GtkListBox

 data/keybindings/vim.css |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index b4bb29a..7ed21aa 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1356,6 +1356,12 @@
   bind "slash" { "start-interactive-search" () };
 }
 
+ binding-set builder-vim-list-box
+{
+  bind "<ctrl>n" { "move-cursor" (display-lines, 1) };
+  bind "<ctrl>p" { "move-cursor" (display-lines, -1) };
+}
+
 @binding-set builder-gb-project-tree-vim
 {
   bind "colon" { "action" ("workbench", "show-command-bar", "") };
@@ -1606,3 +1612,7 @@ GbProjectTree {
                     builder-gb-project-tree-vim,
                     builder-gb-project-tree;
 }
+
+GtkListBox {
+  gtk-key-bindings: builder-vim-list-box;
+}


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