[gnome-builder] keybindings: fix activation of various global keybindings



commit dd48e6428983ab89eeacfa29b6f169af3e66280f
Author: Christian Hergert <chergert redhat com>
Date:   Tue Nov 24 12:26:33 2015 -0800

    keybindings: fix activation of various global keybindings

 data/keybindings/default.css |    4 ++--
 data/keybindings/emacs.css   |    4 ++--
 data/keybindings/vim.css     |   19 ++++++++++++++-----
 3 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/data/keybindings/default.css b/data/keybindings/default.css
index 8b467db..273cb9a 100644
--- a/data/keybindings/default.css
+++ b/data/keybindings/default.css
@@ -10,8 +10,8 @@
                   "hide-completion" () };
   bind "<ctrl>comma" { "action" ("app", "preferences", "") };
   bind "<ctrl>f" { "action" ("frame", "find", "3") };
-  bind "<ctrl>period" { "action" ("workbench", "global-search", "") };
-  bind "<ctrl><alt>o" { "action" ("workbench", "global-search", "") };
+  bind "<ctrl>period" { "action" ("perspective", "global-search", "") };
+  bind "<ctrl><alt>o" { "action" ("perspective", "global-search", "") };
   bind "<ctrl>n" { "action" ("workbench", "new-document", "") };
   bind "<ctrl>o" { "action" ("workbench", "open", "") };
   bind "<ctrl>s" { "action" ("view", "save", "") };
diff --git a/data/keybindings/emacs.css b/data/keybindings/emacs.css
index 4d85f31..ce1f76f 100644
--- a/data/keybindings/emacs.css
+++ b/data/keybindings/emacs.css
@@ -59,7 +59,7 @@
   bind "<alt>x" { "action" ("win", "show-command-bar", "") };
   bind "<ctrl>r" { "action" ("frame", "find", "2") };
   bind "<ctrl>s" { "action" ("frame", "find", "3") };
-  bind "<ctrl>period" { "action" ("workbench", "global-search", "") };
+  bind "<ctrl>period" { "action" ("perspective", "global-search", "") };
   bind "<alt>period" { "goto-definition" () };
   bind "<ctrl>comma" { "action" ("app", "preferences", "") };
   bind "<alt>n" { "move-error" (down) };
@@ -126,7 +126,7 @@
   bind "<ctrl>f" { "action" ("workbench", "open", "") };
   bind "<ctrl>s" { "action" ("view", "save", "") };
   bind "s" { "action" ("workbench", "save-all", "") };
-  bind "b" { "action" ("workbench", "global-search", "") };
+  bind "b" { "action" ("perspective", "global-search", "") };
   bind "<ctrl>b" { "action" ("view-stack", "show-list", "") };
   bind "<ctrl>w" { "action" ("view", "save-as", "") };
   bind "u" { "redo" () };
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 8a97d17..4e6973f 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -101,7 +101,7 @@
                    "set-mode" ("vim-normal", permanent) };
 
   bind "<ctrl>comma" { "action" ("app", "preferences", "") };
-  bind "<ctrl>period" { "action" ("workbench", "global-search", "") };
+  bind "<ctrl>period" { "action" ("perspective", "global-search", "") };
   bind "<ctrl>s" { "action" ("view", "save", "") };
   bind "<ctrl><shift>s" { "action" ("view", "save-as", "") };
   bind "<ctrl><shift>o" { "action" ("workbench", "open", "") };
@@ -2303,6 +2303,11 @@
   bind "colon" { "action" ("win", "show-command-bar", "") };
 }
 
+ binding-set builder-vim-workbench
+{
+  bind "<ctrl>period" { "action" ("perspective", "global-search", "") };
+}
+
 /*
  * Sadly, this will draw from the middle, so it does not result in our
  * cursor being over the actual character, but between two characters.
@@ -2590,16 +2595,20 @@ IdeSourceViewMode.vim-visual-block {
   -gtk-key-bindings: builder-vim-source-view, builder-vim-source-view-visual-block;
 }
 
-GtkTreeView {
+treeview {
   -gtk-key-bindings: builder-vim-tree-view;
 }
 
 GbProjectTree {
   -gtk-key-bindings: builder-vim-tree-view,
-                    builder-gb-project-tree-vim,
-                    builder-gb-project-tree;
+                     builder-gb-project-tree-vim,
+                     builder-gb-project-tree;
 }
 
-GtkListBox {
+list {
   -gtk-key-bindings: builder-vim-list-box;
 }
+
+workbench {
+  -gtk-key-bindings: builder-vim-workbench;
+}


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