diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-09-03 09:57:57 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2012-09-04 22:37:29 +0100 |
commit | 28fd3a383598c1f3121c754cf0781cd790929f4f (patch) | |
tree | d3af517cb055137697cbf7baa19708df31f08dd9 /tmux.1 | |
parent | 996a636713e58709ab15fcb753c7e2614d1ec6c3 (diff) | |
download | rtmux-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.1 | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 |