[gnome-builder] plugins/grep: add ctrl+shift+alt+f for grep panel



commit 385282fb0ad446bf0cfb82b37739a7e4dfa3e34c
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 29 13:26:30 2022 -0700

    plugins/grep: add ctrl+shift+alt+f for grep panel

 src/plugins/grep/gbp-grep-panel.ui    | 2 +-
 src/plugins/grep/grep.gresource.xml   | 3 ++-
 src/plugins/grep/gtk/keybindings.json | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/grep/gbp-grep-panel.ui b/src/plugins/grep/gbp-grep-panel.ui
index 57e9f4329..fc51b3596 100644
--- a/src/plugins/grep/gbp-grep-panel.ui
+++ b/src/plugins/grep/gbp-grep-panel.ui
@@ -2,7 +2,7 @@
 <interface>
   <template class="GbpGrepPanel" parent="IdePane">
     <property name="icon-name">edit-find-symbolic</property>
-    <property name="title" translatable="yes">Find in Files</property>
+    <property name="title" translatable="yes">Find in Files (Ctrl+Alt+Shift+F)</property>
     <child>
       <object class="GtkBox">
         <property name="orientation">vertical</property>
diff --git a/src/plugins/grep/grep.gresource.xml b/src/plugins/grep/grep.gresource.xml
index 2f8c6bbea..bd576a9fb 100644
--- a/src/plugins/grep/grep.gresource.xml
+++ b/src/plugins/grep/grep.gresource.xml
@@ -3,8 +3,9 @@
   <gresource prefix="/plugins/grep">
     <file>grep.plugin</file>
     <file>style.css</file>
+    <file>gtk/keybindings.json</file>
+    <file preprocess="xml-stripblanks">gtk/menus.ui</file>
     <file preprocess="xml-stripblanks">gbp-grep-panel.ui</file>
     <file preprocess="xml-stripblanks">gbp-grep-popover.ui</file>
-    <file preprocess="xml-stripblanks">gtk/menus.ui</file>
   </gresource>
 </gresources>
diff --git a/src/plugins/grep/gtk/keybindings.json b/src/plugins/grep/gtk/keybindings.json
new file mode 100644
index 000000000..bf5f1c04a
--- /dev/null
+++ b/src/plugins/grep/gtk/keybindings.json
@@ -0,0 +1 @@
+{ "trigger" : "<control><shift><alt>f", "action" : "workspace.grep.panel.show", "when" : "canEdit()", 
"phase" : "capture" },


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