From 325cbe90d925d3deb90559463b6d968c31fa5924 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 16 Jun 2016 10:55:47 +0000 Subject: Allow a command to be specified to display-panes, similar to command-prompt, rather than always just selecting the pane. --- tmux.1 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'tmux.1') 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 -- cgit