From ea8a8d39d4e2fdada7a0bdd8df8de868d552cb15 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 7 Feb 2009 08:20:54 +0000 Subject: [PATCH] Document command sequences. --- TODO | 1 - tmux.1 | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index cf994ca4..88b6bd70 100644 --- a/TODO +++ b/TODO @@ -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 diff --git a/tmux.1 b/tmux.1 index 3bd17c38..36857100 100644 --- a/tmux.1 +++ b/tmux.1 @@ -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 .\" @@ -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: