[gnome-builder/gnome-builder-3-18] editor-frame: pass direction to find action



commit 5f932041cdd2c6a56cb4b6e3240b1ab9e79c448c
Author: Ray Strode <rstrode redhat com>
Date:   Sat Oct 10 21:38:15 2015 -0400

    editor-frame: pass direction to find action
    
    We're going to need to be able to set an initial
    search direction when initiating a find operation.
    This commit does the plumbing to get the direction
    sent from the keybinding to the code.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756405

 data/keybindings/default.css         |    2 +-
 data/keybindings/emacs.css           |    2 +-
 data/keybindings/vim.css             |    2 +-
 src/editor/gb-editor-frame-actions.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/default.css b/data/keybindings/default.css
index 87c0cd4..446bd58 100644
--- a/data/keybindings/default.css
+++ b/data/keybindings/default.css
@@ -3,7 +3,7 @@
 @binding-set default-ide-source-view
 {
   bind "<ctrl>comma" { "action" ("app", "preferences", "") };
-  bind "<ctrl>f" { "action" ("frame", "find", "") };
+  bind "<ctrl>f" { "action" ("frame", "find", "3") };
   bind "<ctrl>period" { "action" ("workbench", "global-search", "") };
   bind "<ctrl><alt>o" { "action" ("workbench", "global-search", "") };
   bind "<ctrl>n" { "action" ("workbench", "new-document", "") };
diff --git a/data/keybindings/emacs.css b/data/keybindings/emacs.css
index 85cbff0..d465ffb 100644
--- a/data/keybindings/emacs.css
+++ b/data/keybindings/emacs.css
@@ -51,7 +51,7 @@
   bind "<ctrl>x" { "set-mode" ("emacs-x", transient) };
   bind "<ctrl>underscore" { "undo" () };
   bind "<alt>x" { "action" ("win", "show-command-bar", "") };
-  bind "<ctrl>s" { "action" ("frame", "find", "") };
+  bind "<ctrl>s" { "action" ("frame", "find", "3") };
   bind "<ctrl>period" { "action" ("workbench", "global-search", "") };
   bind "<alt>period" { "goto-definition" () };
   bind "<ctrl>comma" { "action" ("app", "preferences", "") };
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index f902feb..e40d126 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -150,7 +150,7 @@
   bind "period" { "replay-macro" (1) };
 
   /* start search */
-  bind "slash" { "action" ("frame", "find", "") };
+  bind "slash" { "action" ("frame", "find", "3") };
 
   /* insert at cursor */
   bind "i" { "begin-macro" ()
diff --git a/src/editor/gb-editor-frame-actions.c b/src/editor/gb-editor-frame-actions.c
index e890816..0d84eeb 100644
--- a/src/editor/gb-editor-frame-actions.c
+++ b/src/editor/gb-editor-frame-actions.c
@@ -93,7 +93,7 @@ gb_editor_frame_actions_previous_search_result (GSimpleAction *action,
 }
 
 static const GActionEntry GbEditorFrameActions[] = {
-  { "find", gb_editor_frame_actions_find },
+  { "find", gb_editor_frame_actions_find, "i" },
   { "next-search-result", gb_editor_frame_actions_next_search_result },
   { "previous-search-result", gb_editor_frame_actions_previous_search_result },
 };


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