From b5b67c538605fef234aa8ea95c0e277449dac4fc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 8 Apr 2019 09:36:34 +0100 Subject: [PATCH] Document that switch-client can change all of session,window,pane and check for % in the target as well as ":.". --- cmd-switch-client.c | 2 +- tmux.1 | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd-switch-client.c b/cmd-switch-client.c index a4f55102..8f51d0fe 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -61,7 +61,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) if ((c = cmd_find_client(item, args_get(args, 'c'), 0)) == NULL) return (CMD_RETURN_ERROR); - if (tflag != NULL && tflag[strcspn(tflag, ":.")] != '\0') { + if (tflag != NULL && tflag[strcspn(tflag, ":.%")] != '\0') { type = CMD_FIND_PANE; flags = 0; } else { diff --git a/tmux.1 b/tmux.1 index ebbdc5bd..0596da0c 100644 --- a/tmux.1 +++ b/tmux.1 @@ -1096,6 +1096,14 @@ Switch the current session for client .Ar target-client to .Ar target-session . +As a special case, +.Fl t +may refer to a pane (a target that contains +.Ql : , +.Ql . +or +.Ql % ) +in which case the session, window and pane are all changed. If .Fl l , .Fl n