aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/terminal.ui
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-28 22:09:10 +0100
committerWynn Wolf Arbor2020-04-13 15:45:45 +0200
commit948460c9d0a1c4b90ed2b0d790365758f2fa73e3 (patch)
tree226bbd13cd727189464a3d0adb6fee058699794f /terminal.ui
parentec211bccdcfb5bfabd03f6bcff8df02bb5eab266 (diff)
downloadweltschmerz-948460c9d0a1c4b90ed2b0d790365758f2fa73e3.tar.gz
Add Open directory feature
VTE can leverage the child program's support of OSC 7 to keep track of the current directory. This commit adds support for opening said directory in the default file manager, either by using a shortcut or by activating a new entry in the context menu.
Diffstat (limited to 'terminal.ui')
-rw-r--r--terminal.ui24
1 files changed, 24 insertions, 0 deletions
diff --git a/terminal.ui b/terminal.ui
index 4618d40..257dcbb 100644
--- a/terminal.ui
+++ b/terminal.ui
@@ -47,6 +47,11 @@
</object>
</child>
</object>
+ <object class="GtkImage" id="open_directory_item_image">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-open</property>
+ </object>
<object class="GtkImage" id="search_image_down">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -262,5 +267,24 @@
<accelerator key="v" signal="activate" modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
</object>
</child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separator">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="open_directory_item">
+ <property name="label" translatable="yes">_Open directory</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="tooltip_text" translatable="yes">Open current directory in the file manager</property>
+ <property name="use_underline">True</property>
+ <property name="image">open_directory_item_image</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="open_directory" swapped="no"/>
+ <accelerator key="o" signal="activate" modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
+ </object>
+ </child>
</object>
</interface>