feat(nix): fix gnome-console copy-paste shortcuts
- Added a patch to enable copy and paste shortcuts in gnome-console through `default.nix`. - Improves usability by addressing missing shortcut actions for terminal interactions.
This commit is contained in:
parent
c3bbcd9baa
commit
008948d61e
2 changed files with 30 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ final: prev: {
|
||||||
gnome-console = prev.gnome-console.overrideAttrs (prevAttrs: {
|
gnome-console = prev.gnome-console.overrideAttrs (prevAttrs: {
|
||||||
patches = (prevAttrs.patches or [ ]) ++ [
|
patches = (prevAttrs.patches or [ ]) ++ [
|
||||||
./gnome-console-Add-image-and-file-path-pasting-support-for.patch
|
./gnome-console-Add-image-and-file-path-pasting-support-for.patch
|
||||||
|
./gnome-console-fix-copy-and-paste.patch
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
29
overlays/mods/gnome-console-fix-copy-and-paste.patch
Normal file
29
overlays/mods/gnome-console-fix-copy-and-paste.patch
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
From 0b9b0a86c78908e4e8eff581b2568495e71c30fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Harald Hoyer <harald@hoyer.xyz>
|
||||||
|
Date: Wed, 28 Jan 2026 09:09:54 +0100
|
||||||
|
Subject: [PATCH] add copy and pasta shortcuts
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/kgx-terminal.ui b/src/kgx-terminal.ui
|
||||||
|
index cc47dab..23ff6eb 100644
|
||||||
|
--- a/src/kgx-terminal.ui
|
||||||
|
+++ b/src/kgx-terminal.ui
|
||||||
|
@@ -117,6 +117,18 @@
|
||||||
|
<property name="action">action(term.paste)</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
+ <child>
|
||||||
|
+ <object class="GtkShortcut">
|
||||||
|
+ <property name="trigger">Copy</property>
|
||||||
|
+ <property name="action">action(term.copy)</property>
|
||||||
|
+ </object>
|
||||||
|
+ </child>
|
||||||
|
+ <child>
|
||||||
|
+ <object class="GtkShortcut">
|
||||||
|
+ <property name="trigger">Paste</property>
|
||||||
|
+ <property name="action">action(term.paste)</property>
|
||||||
|
+ </object>
|
||||||
|
+ </child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue