summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2013-03-21 16:23:47 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2013-03-21 16:23:47 +0000
commit7299443e7f0b635e144d35c42d34afcf6e3b60ea (patch)
tree0bdf564e0033b2dd95efe79d022fb4b4e6a6c3c4 /usr.bin/tmux
parentb2ba0fbbf3999559e447b05c90629604756ca786 (diff)
Clarify choose-tree entry in man page.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tmux.124
1 files changed, 15 insertions, 9 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index d66bc18b419..17f306888c1 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.319 2013/03/21 16:17:35 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.320 2013/03/21 16:23:46 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@@ -1150,25 +1150,30 @@ is given, will show sessions.
If
.Fl w
is given, will show windows.
-If
+.Pp
+By default, the tree is collapsed and sessions must be expanded to windows
+with the right arrow key.
+The
.Fl u
-is given, the tree is uncollapsed by default.
+will start with all all sessions expanded instead.
+.Pp
If
.Fl b
is given, will override the default session command.
Note that
.Ql %%
-can be used, and will be replaced with the session name.
+can be used and will be replaced with the session name.
The default option if not specified is "switch-client -t '%%'".
If
.Fl c
is given, will override the default window command.
-Note that
+Like
+.Fl b ,
.Ql %%
-can be used, and will be replaced with the session name and window index.
-This command will run
-.Ar session-template
-before it.
+can be used and will be replaced with the session name and window index.
+When a window is chosen from the list, the session command is run before the
+window command.
+.Pp
If
.Fl S
is given will display the specified format instead of the default session
@@ -1184,6 +1189,7 @@ and
options, see the
.Sx FORMATS
section.
+.Pp
This command works only if at least one client is attached.
.It Xo
.Ic choose-window