[gnome-builder/wip/chergert/layout] editor: update shortcuts



commit 794e85a3612c14ee1ee80bab9f3ac83e0f07a452
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 11 23:26:15 2017 -0700

    editor: update shortcuts

 libide/editor/ide-editor-view-shortcuts.c |   32 ++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 5 deletions(-)
---
diff --git a/libide/editor/ide-editor-view-shortcuts.c b/libide/editor/ide-editor-view-shortcuts.c
index 9e91df1..53c4d7d 100644
--- a/libide/editor/ide-editor-view-shortcuts.c
+++ b/libide/editor/ide-editor-view-shortcuts.c
@@ -54,13 +54,25 @@ static DzlShortcutEntry editor_view_shortcuts[] = {
     "<Primary>g",
     N_("Editor"),
     N_("Find and replace"),
-    N_("Find the next match") },
+    N_("Move to the next match") },
 
   { "org.gnome.builder.editor-view.prev-match",
     "<Primary><Shift>g",
     N_("Editor"),
     N_("Find and replace"),
-    N_("Find the next match") },
+    N_("Move to the previous match") },
+
+  { "org.gnome.builder.editor-view.next-error",
+    NULL,
+    N_("Editor"),
+    N_("Find and replace"),
+    N_("Move to the next error") },
+
+  { "org.gnome.builder.editor-view.prev-error",
+    NULL,
+    N_("Editor"),
+    N_("Find and replace"),
+    N_("Move to the previous error") },
 
   { "org.gnome.builder.editor-view.clear-highlight",
     "<Primary><Shift>k",
@@ -81,7 +93,7 @@ _ide_editor_view_init_shortcuts (IdeEditorView *self)
   dzl_shortcut_controller_add_command_action (controller,
                                               I_("org.gnome.builder.editor-view.find"),
                                               NULL,
-                                              I_("editor-view.focus-search"));
+                                              I_("editor-view.find"));
 
   dzl_shortcut_controller_add_command_action (controller,
                                               I_("org.gnome.builder.editor-view.find-and-replace"),
@@ -91,12 +103,22 @@ _ide_editor_view_init_shortcuts (IdeEditorView *self)
   dzl_shortcut_controller_add_command_action (controller,
                                               I_("org.gnome.builder.editor-view.next-match"),
                                               NULL,
-                                              I_("editor-view.next-match"));
+                                              I_("editor-view.move-next-search-result"));
 
   dzl_shortcut_controller_add_command_action (controller,
                                               I_("org.gnome.builder.editor-view.prev-match"),
                                               NULL,
-                                              I_("editor-view.prev-match"));
+                                              I_("editor-view.move-prevous-search-result"));
+
+  dzl_shortcut_controller_add_command_action (controller,
+                                              I_("org.gnome.builder.editor-view.next-error"),
+                                              NULL,
+                                              I_("editor-view.move-next-error"));
+
+  dzl_shortcut_controller_add_command_action (controller,
+                                              I_("org.gnome.builder.editor-view.prev-error"),
+                                              NULL,
+                                              I_("editor-view.move-prevous-error"));
 
   dzl_shortcut_controller_add_command_action (controller,
                                               I_("org.gnome.builder.editor-view.clear-highlight"),


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