diff options
author | nicm <nicm> | 2019-04-17 14:39:37 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-04-17 14:39:37 +0000 |
commit | 5943cd1907d20381c527d4b3b338df090cbbb1de (patch) | |
tree | 61a55c53af6cb80f36aef415326f00e3f09a34ca | |
parent | 78287e27c87ccdda1f8580382b336a0d02c26a03 (diff) | |
download | rtmux-5943cd1907d20381c527d4b3b338df090cbbb1de.tar.gz rtmux-5943cd1907d20381c527d4b3b338df090cbbb1de.tar.bz2 rtmux-5943cd1907d20381c527d4b3b338df090cbbb1de.zip |
Document that switch-client can change all of session,window,pane and
check for % in the target as well as ":.".
-rw-r--r-- | cmd-switch-client.c | 2 | ||||
-rw-r--r-- | tmux.1 | 8 |
2 files changed, 9 insertions, 1 deletions
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 { @@ -1053,6 +1053,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 |