diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-09-03 09:57:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-09-03 09:57:58 +0000 |
commit | 7dfcbe06c0d797b9aaa0a226096aa6369caeba89 (patch) | |
tree | 901f9c07fbb96dd5e03dd6d75823329ac691df05 /usr.bin/tmux/tmux.1 | |
parent | 11ce5c3b19fee0b094213e52a8520d1f8bd7cc43 (diff) |
add cmd-choose-list to allow arbitrary options to be selected. From
Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/tmux.1')
-rw-r--r-- | usr.bin/tmux/tmux.1 | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index c27d922fa8a..596045ca3d0 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.302 2012/08/11 07:10:01 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.303 2012/09/03 09:57:57 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 11 2012 $ +.Dd $Mdocdate: September 3 2012 $ .Dt TMUX 1 .Os .Sh NAME @@ -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 |