summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-03 09:57:57 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-09-03 09:57:57 +0000
commit7263fa36eb3d4488b89d01837dc4bd533e6f061a (patch)
treece66b33f248c3acadefb7302946d323b657dfe18 /tmux.1
parentadc9fad4acc2f7e045b23b3672bca7f24ba10566 (diff)
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 9d206dfb..874938ed 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1067,6 +1067,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