diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-07-11 17:13:55 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-07-11 17:13:55 +0000 |
commit | a10143a2d17a1f12d13d8f2e702158da1a93f755 (patch) | |
tree | fc9224ff8a1494cb8da88057389959dfc5585268 /tmux.1 | |
parent | 38530de62258baf12a89f508025f2dc38ce8b5f5 (diff) | |
download | rtmux-a10143a2d17a1f12d13d8f2e702158da1a93f755.tar.gz rtmux-a10143a2d17a1f12d13d8f2e702158da1a93f755.tar.bz2 rtmux-a10143a2d17a1f12d13d8f2e702158da1a93f755.zip |
Sync OpenBSD patchset 1146:
Add choose-tree command to show windows and sessions in the same
list. Change choose-window and -session to use the same code. From
Thomas Adam.
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 62 |
1 files changed, 62 insertions, 0 deletions
@@ -1094,6 +1094,68 @@ section. This command works only from inside .Nm . .It Xo +.Ic choose-tree +.Op Fl s +.Op Fl w +.Op Fl b Ar session-template +.Op Fl c Ar window-template +.Op Fl S Ar format +.Op Fl W Ar format +.Op Fl t Ar target-window +.Xc +Put a window into tree choice mode, where either sessions or windows may be +selected interactively from a list. +By default, windows belonging to a session are indented to show their +relationship to a session. +.Pp +Note that the +.Ic choose-window +and +.Ic choose-session +commands are wrappers around +.Ic choose-tree . +. +.Pp +If +.Fl s +is given, will show sessions. +If +.Fl w +is given, will show windows. +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. +The default option if not specified is "switch-client -t '%%'". +If +.Fl c +is given, will override the default window command. +Note that +.Ql %% +can be used, and will be replaced with the session name and window index. +This command will run +.Ar session-template +before it. +If +.Fl S +is given will display the specified format instead of the default session +format. +If +.Fl W +is given will display the specified format instead of the default window +format. +For the meaning of the +.Fl s +and +.Fl w +options, see the +.Sx FORMATS +section. +This command only works from inside +.Nm . +.It Xo .Ic choose-window .Op Fl F Ar format .Op Fl t Ar target-window |