aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2016-06-16 10:55:47 +0000
committernicm <nicm>2016-06-16 10:55:47 +0000
commit325cbe90d925d3deb90559463b6d968c31fa5924 (patch)
tree579aa5c9a0ddab9362560e5593e4843d5ca3c0a7 /tmux.1
parent0c7ddae2abe67762b00fea10723d01251f3c156d (diff)
downloadrtmux-325cbe90d925d3deb90559463b6d968c31fa5924.tar.gz
rtmux-325cbe90d925d3deb90559463b6d968c31fa5924.tar.bz2
rtmux-325cbe90d925d3deb90559463b6d968c31fa5924.zip
Allow a command to be specified to display-panes, similar to
command-prompt, rather than always just selecting the pane.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.117
1 files changed, 14 insertions, 3 deletions
diff --git a/tmux.1 b/tmux.1
index 394c78d3..ffba05e9 100644
--- a/tmux.1
+++ b/tmux.1
@@ -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