Document command sequences.

This commit is contained in:
Nicholas Marriott 2009-02-07 08:20:54 +00:00
parent c8e27271e2
commit ea8a8d39d4
2 changed files with 14 additions and 2 deletions

1
TODO
View File

@ -87,5 +87,4 @@
- attach should have a flag to create session if it doesn't exist
(hopefully) for 0.7, in no particular order:
- document command sequences
- document automatic-rename

15
tmux.1
View File

@ -1,4 +1,4 @@
.\" $Id: tmux.1,v 1.77 2009-02-06 19:36:17 tcunha Exp $
.\" $Id: tmux.1,v 1.78 2009-02-07 08:20:54 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@ -325,6 +325,15 @@ When the argument does not contain a colon (:),
first attempts to parse it as window index; if that fails, an attempt is made
to match a session or client name.
.Pp
Multiple commands may be specified together as part of a
.Em command sequence .
Each command should be separated by spaces and a semicolon
.Eo ( Ql \& \&; \& Ec ) ;
commands are executed sequentially from left to right.
A literal semicolon may be included by escaping it with a backslash (for
example, when specifying a command sequence to
.Ic bind-key ) .
.Pp
Examples include:
.Pp
.Bd -literal -offset indent
@ -333,6 +342,10 @@ refresh-client -t/dev/ttyp2
rename-session -tfirst newname
set-window-option -t:0 monitor-activity on
new-window ; split-window -d
bind-key D detach-client \e\; lock-server
.Ed
.Pp
The following commands are available: