[gnome-builder/wip/chergert/layout] editor: add shortcut for sidebar



commit 1fce61297ea62cc01ce1bacf57712cdf269d2982
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 4 16:34:35 2017 -0700

    editor: add shortcut for sidebar

 libide/editor/ide-editor-perspective-shortcuts.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective-shortcuts.c 
b/libide/editor/ide-editor-perspective-shortcuts.c
index 3b0f1b8..5fceee1 100644
--- a/libide/editor/ide-editor-perspective-shortcuts.c
+++ b/libide/editor/ide-editor-perspective-shortcuts.c
@@ -39,6 +39,12 @@ static const DzlShortcutEntry editor_perspective_entries[] = {
     N_("Editor"),
     N_("Files"),
     N_("Open a document") },
+
+  { "org.gnome.builder.editor.show-sidebar",
+    NULL,
+    N_("Editor"),
+    N_("Panels"),
+    N_("Toggle left sidebar") },
 };
 
 void
@@ -60,6 +66,11 @@ _ide_editor_perspective_init_shortcuts (IdeEditorPerspective *self)
                                               I_("<Primary>o"),
                                               I_("editor.open-file"));
 
+  dzl_shortcut_controller_add_command_action (controller,
+                                              I_("org.gnome.builder.editor.show-sidebar"),
+                                              I_("F9"),
+                                              I_("dockbin.left-visible"));
+
   dzl_shortcut_manager_add_shortcut_entries (NULL,
                                              editor_perspective_entries,
                                              G_N_ELEMENTS (editor_perspective_entries),


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