summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2023-09-01 13:48:54 +0000
committernicm <nicm>2023-09-01 13:48:54 +0000
commitc1e6e54e6ee9517dcb2f789d99bbf06c66b9dc44 (patch)
treea9ef1b31ce0827760389379b721c7fc4bc322591 /tmux.1
parent71d453f169ffac345db3e4c82f4409fc41091002 (diff)
Add detach-on-destroy previous and next, mostly from Alexis Hildebrandt.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.115
1 files changed, 12 insertions, 3 deletions
diff --git a/tmux.1 b/tmux.1
index 3228556c..6306e12a 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4039,16 +4039,25 @@ The default is 80x24.
If enabled and the session is no longer attached to any clients, it is
destroyed.
.It Xo Ic detach-on-destroy
-.Op Ic off | on | no-detached
+.Op Ic off | on | no-detached | previous | next
.Xc
-If on (the default), the client is detached when the session it is attached to
+If
+.Ic on
+(the default), the client is detached when the session it is attached to
is destroyed.
-If off, the client is switched to the most recently active of the remaining
+If
+.Ic off ,
+the client is switched to the most recently active of the remaining
sessions.
If
.Ic no-detached ,
the client is detached only if there are no detached sessions; if detached
sessions exist, the client is switched to the most recently active.
+If
+.Ic previous
+or
+.Ic next ,
+the client is switched to the previous or next session in alphabetical order.
.It Ic display-panes-active-colour Ar colour
Set the colour used by the
.Ic display-panes