aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-03 09:57:57 +0000
committerThomas Adam <thomas@xteddy.org>2012-09-04 22:37:29 +0100
commit28fd3a383598c1f3121c754cf0781cd790929f4f (patch)
treed3af517cb055137697cbf7baa19708df31f08dd9 /tmux.1
parent996a636713e58709ab15fcb753c7e2614d1ec6c3 (diff)
downloadrtmux-28fd3a383598c1f3121c754cf0781cd790929f4f.tar.gz
rtmux-28fd3a383598c1f3121c754cf0781cd790929f4f.tar.bz2
rtmux-28fd3a383598c1f3121c754cf0781cd790929f4f.zip
add cmd-choose-list to allow arbitrary options to be selected. From
Thomas Adam.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.127
1 files changed, 27 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 1a683b52..7d32dbeb 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1071,6 +1071,33 @@ section.
This command works only from inside
.Nm .
.It Xo
+.Ic choose-list
+.Op Fl l Ar items
+.Op Fl t Ar target-window
+.Op Ar template
+.Xc
+Put a window into list choice mode, allowing
+.Ar items
+to be selected.
+.Ar items
+can be a comma-separated list to display more than one item.
+If an item has spaces, that entry must be quoted.
+After an item is chosen,
+.Ql %%
+is replaced by the chosen item in the
+.Ar template
+and the result is executed as a command.
+If
+.Ar template
+is not given, "run-shell '%%'" is used.
+.Ar items
+also accepts format specifiers.
+For the meaning of this see the
+.Sx FORMATS
+section.
+This command works only from inside
+.Nm .
+.It Xo
.Ic choose-session
.Op Fl F Ar format
.Op Fl t Ar target-window