Document that switch-client can change all of session,window,pane and check for

% in the target as well as ":.".
This commit is contained in:
Nicholas Marriott 2019-04-08 09:36:34 +01:00
parent fbe488e4de
commit b5b67c5386
2 changed files with 9 additions and 1 deletions

View File

@ -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 {

8
tmux.1
View File

@ -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