version 1.42, 2009/07/20 15:51:55 |
version 1.43, 2009/07/22 21:23:29 |
|
|
.Xr fnmatch 3 |
.Xr fnmatch 3 |
pattern. |
pattern. |
If a single match is found, it is used as the target session; multiple matches |
If a single match is found, it is used as the target session; multiple matches |
produce an error |
produce an error. |
If a session is omitted, the current session is used if available; if no |
If a session is omitted, the current session is used if available; if no |
current session is available, the most recently created is chosen. |
current session is available, the most recently created is chosen. |
.Pp |
.Pp |
.Ar target-window |
.Ar target-window |
specifies a window in the form |
specifies a window in the form |
.Em session Ns \&: Ns Em window , |
.Em session Ns \&: Ns Em window . |
where |
.Em session |
|
follows the same rules as for |
|
.Ar target-session , |
|
and |
.Em window |
.Em window |
is a window index, for example mysession:1, or a window name, |
is looked for in order: as a window index, for example mysession:1; as an exact |
|
window name, such as mysession:mywindow; then as an |
.Xr fnmatch 3 |
.Xr fnmatch 3 |
pattern, or prefix, such as mysession:mywin[0-3]. |
pattern or the start of a window name, such as mysession:mywin* or |
If the latter, the window is looked up in a similar fashion to session name |
mysession:mywin. |
searches described above. |
An empty window name specifies the next unused index if appropriate (for |
The session is in the same form as for |
example the |
.Ar target-session . |
.Ic new-window |
.Em session , |
and |
.Em index |
.Ic link-window |
or both may be omitted. |
commands) |
If |
otherwise the current window in |
.Em session |
.Em session |
is omitted, the same rules as for |
is chosen. |
.Ar target-session |
|
are followed; if |
|
.Em window |
|
is not present, the current window for the given session is used. |
|
When the argument does not contain a colon, |
When the argument does not contain a colon, |
.Nm |
.Nm |
first attempts to parse it as window index; if that fails, an attempt is made |
first attempts to parse it as window; if that fails, an attempt is made to |
to match a session or client name. |
match a session. |
.Pp |
.Pp |
Multiple commands may be specified together as part of a |
Multiple commands may be specified together as part of a |
.Em command sequence . |
.Em command sequence . |