aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/weltschmerz.1
diff options
context:
space:
mode:
authorJuhani Krekelä2021-06-25 17:59:53 +0300
committerWolfgang Müller2021-06-26 12:12:45 +0200
commitb70083a5f4404e2422ff0a0aadd023a661164fae (patch)
treed700ce1ff3e07ff73e05ca41387ca88d11633e28 /weltschmerz.1
parentb497a49d8bd2a345dd30a9f55dc4976560df157f (diff)
downloadweltschmerz-b70083a5f4404e2422ff0a0aadd023a661164fae.tar.gz
Add feature to open a new terminal
Add ability to open a new weltschmerz terminal, either from context menu or with a key combination. The new terminal is opened in the directory indicated with OSC 7, allowing quickly opening additional terminals while working. Preferably this would launch the user's preferred terminal, as defined in per-user settings, but this is not possible with glib[1]. For this reason the option always launches another weltschmerz. weltschmerz is launched using bare Process.spawn_async() on the name of the program as defined in weltschmerz.vala. We considered using the AppInfo database to retrieve the name of executable instead, but as there is no way to query the database for terminal emulators we would have to go through every single program installed on the computer and try to find one called weltschmerz. As the change would merely replace the requirement of having weltschmerz in PATH with the requirement of having a .desktop file with the name in one of the standardized locations, this would not be worth it. [1] https://gitlab.gnome.org/GNOME/glib/-/issues/338
Diffstat (limited to 'weltschmerz.1')
-rw-r--r--weltschmerz.18
1 files changed, 7 insertions, 1 deletions
diff --git a/weltschmerz.1 b/weltschmerz.1
index 3c92ef6..a00894e 100644
--- a/weltschmerz.1
+++ b/weltschmerz.1
@@ -1,4 +1,4 @@
-.Dd June 17, 2021
+.Dd June 25, 2021
.Dt WELTSCHMERZ 1
.Os
.Sh NAME
@@ -52,6 +52,12 @@ Note that
relies on proper support of OSC 7 to do this.
If the child program (such as the shell or an editor) does not send OSC 7,
this feature will not work.
+.Pp
+A new terminal window can likewise be opened in the program's current directory with
+.Sy CTRL + Shift + T .
+The limitations of
+.Sy CTRL + Shift + O
+also apply here.
.Sh SEARCH OVERLAY
The search overlay can be opened by pressing
.Sy CTRL + Shift + F .