Allow a command to be specified to display-panes, similar to

command-prompt, rather than always just selecting the pane.
This commit is contained in:
nicm
2016-06-16 10:55:47 +00:00
parent 0c7ddae2ab
commit 325cbe90d9
6 changed files with 88 additions and 22 deletions

17
tmux.1
View File

@ -1458,7 +1458,11 @@ flag, see the
.Sx FORMATS
section.
This command works only if at least one client is attached.
.It Ic display-panes Op Fl t Ar target-client
.It Xo
.Ic display-panes
.Op Fl t Ar target-client
.Op Ar template
.Xc
.D1 (alias: Ic displayp )
Display a visible indicator of each pane shown by
.Ar target-client .
@ -1468,11 +1472,18 @@ See the
and
.Ic display-panes-active-colour
session options.
While the indicator is on screen, a pane may be selected with the
While the indicator is on screen, a pane may be chosen with the
.Ql 0
to
.Ql 9
keys.
keys, which will cause
.Ar template
to be executed as a command with
.Ql %%
substituted by the pane ID.
The default
.Ar template
is "select-pane -t '%%'".
.It Xo Ic find-window
.Op Fl CNT
.Op Fl F Ar format