[gnome-builder/wip/gtk4-port] libide/gui: add terminal bindings



commit 9f6ced7780176e57fa796e7dbfa09f3269c022e1
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 6 09:30:39 2022 -0700

    libide/gui: add terminal bindings
    
    It would be nice if we could auto load resources from various libraries
    so these keybindings could live in the module where they affect things.
    
    But that requires first putting together the bundle loading into something
    more abstract than IdeWorkbench directly.

 src/libide/gui/gtk/keybindings.json | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libide/gui/gtk/keybindings.json b/src/libide/gui/gtk/keybindings.json
index 0a7144bb2..c567fd31c 100644
--- a/src/libide/gui/gtk/keybindings.json
+++ b/src/libide/gui/gtk/keybindings.json
@@ -4,3 +4,7 @@
 { "trigger" : "<Control><Alt>t", "action" : "win.new-terminal-in-runner", "when" : "typeof(workspace) != 
typeof(Ide.GreeterWorkspace)", "phase" : "capture" },
 { "trigger" : "<Control>n", "action" : "editorui.new-file", "when" : "typeof(workspace) != 
typeof(Ide.GreeterWorkspace)", "phase" : "bubble" },
 
+/* IdeTerminal */
+{ "trigger" : "<Control><Shift>c", "action" : "terminal.copy-clipboard", "when" : 
"typeof(focus).is_a(typeof(Ide.Terminal))", "phase" : "capture" },
+{ "trigger" : "<Control><Shift>v", "action" : "terminal.paste-clipboard", "when" : 
"typeof(focus).is_a(typeof(Ide.Terminal))", "phase" : "capture" },
+{ "trigger" : "<Control><Shift>f", "action" : "terminal.search-reveal", "when" : 
"typeof(focus).is_a(typeof(Ide.Terminal))", "phase" : "capture" },


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