mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Document buffer stuff.
This commit is contained in:
parent
b881ff91f2
commit
797f04b648
6
TODO
6
TODO
@ -51,13 +51,13 @@
|
|||||||
|
|
||||||
- document zombie windows
|
- document zombie windows
|
||||||
- document buffer stuff
|
- document buffer stuff
|
||||||
|
|
||||||
|
-- For 0.5 --------------------------------------------------------------------
|
||||||
|
|
||||||
- commands: save-buffer -b number filename
|
- commands: save-buffer -b number filename
|
||||||
load-buffer -b number filename
|
load-buffer -b number filename
|
||||||
copy-buffer -s src-session -t dst-session -a src-index -b dst-index
|
copy-buffer -s src-session -t dst-session -a src-index -b dst-index
|
||||||
(from other session)
|
(from other session)
|
||||||
|
|
||||||
-- For 0.5 --------------------------------------------------------------------
|
|
||||||
|
|
||||||
- clear EOL etc CANNOT rely on term using the current colour/attr and probably
|
- clear EOL etc CANNOT rely on term using the current colour/attr and probably
|
||||||
should not emulate it doing so
|
should not emulate it doing so
|
||||||
- activity/bell should be per-window not per-link? what if it is cur win in
|
- activity/bell should be per-window not per-link? what if it is cur win in
|
||||||
|
65
tmux.1
65
tmux.1
@ -1,4 +1,4 @@
|
|||||||
.\" $Id: tmux.1,v 1.46 2008-06-29 07:22:00 nicm Exp $
|
.\" $Id: tmux.1,v 1.47 2008-06-30 05:34:06 nicm Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
.\"
|
.\"
|
||||||
@ -14,7 +14,7 @@
|
|||||||
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||||
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd November 9, 2007
|
.Dd June 30, 2008
|
||||||
.Dt TMUX 1
|
.Dt TMUX 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -226,7 +226,7 @@ and
|
|||||||
.Ql C-f
|
.Ql C-f
|
||||||
may be used to scroll up and down by one screen.
|
may be used to scroll up and down by one screen.
|
||||||
.It Em copy mode
|
.It Em copy mode
|
||||||
This permits a section of a window or its history to be copied to the
|
This permits a section of a window or its history to be copied to a
|
||||||
.Em paste buffer
|
.Em paste buffer
|
||||||
for later insertion into another window.
|
for later insertion into another window.
|
||||||
The navigation keys move the cursor around the window, scrolling as necessary.
|
The navigation keys move the cursor around the window, scrolling as necessary.
|
||||||
@ -251,7 +251,7 @@ or
|
|||||||
moves the cursor backward one word; the space key begins a selection; and the
|
moves the cursor backward one word; the space key begins a selection; and the
|
||||||
enter key or
|
enter key or
|
||||||
.Ql C-w
|
.Ql C-w
|
||||||
copies the selection to the paste buffer and exits copy mode.
|
creates a new paste buffer from the selection and exits copy mode.
|
||||||
.Pp
|
.Pp
|
||||||
This mode is entered with the
|
This mode is entered with the
|
||||||
.Ic copy-mode
|
.Ic copy-mode
|
||||||
@ -259,6 +259,22 @@ command, bound to
|
|||||||
.Ql [
|
.Ql [
|
||||||
by default.
|
by default.
|
||||||
.El
|
.El
|
||||||
|
.Sh BUFFERS
|
||||||
|
.Nm
|
||||||
|
maintains a stack of
|
||||||
|
.Em paste buffers
|
||||||
|
for each session.
|
||||||
|
Up to the value of the
|
||||||
|
.Ic buffer-limit
|
||||||
|
option are kept; when a new buffer is added, the buffer at the bottom of the
|
||||||
|
stack is removed.
|
||||||
|
Buffers may be added using
|
||||||
|
.Ic copy-mode
|
||||||
|
or the
|
||||||
|
.Ic set-buffer
|
||||||
|
command, and pasted into a window using the
|
||||||
|
.Ic paste-buffer
|
||||||
|
command.
|
||||||
.Sh COMMANDS
|
.Sh COMMANDS
|
||||||
This section contains a list of the commands supported by
|
This section contains a list of the commands supported by
|
||||||
.Nm .
|
.Nm .
|
||||||
@ -363,6 +379,14 @@ to execute commands interactively.
|
|||||||
.Op Fl t Ar target-window
|
.Op Fl t Ar target-window
|
||||||
.Xc
|
.Xc
|
||||||
Enter copy mode.
|
Enter copy mode.
|
||||||
|
.It Xo Ic delete-buffer
|
||||||
|
.Op Fl b Ar buffer-index
|
||||||
|
.Op Fl t Ar target-session
|
||||||
|
.Xc
|
||||||
|
.D1 (alias: Ic deleteb )
|
||||||
|
Delete the buffer at
|
||||||
|
.Ar buffer-index ,
|
||||||
|
or the top buffer if not specified.
|
||||||
.It Xo Ic detach-client
|
.It Xo Ic detach-client
|
||||||
.Op Fl t Ar target-client
|
.Op Fl t Ar target-client
|
||||||
.Xc
|
.Xc
|
||||||
@ -423,6 +447,11 @@ exists, it is killed, otherwise an error is generated.
|
|||||||
If
|
If
|
||||||
.Fl d
|
.Fl d
|
||||||
is given, the newly linked window is not selected.
|
is given, the newly linked window is not selected.
|
||||||
|
.It Xo Ic list-buffers
|
||||||
|
.Op Fl t Ar target-session
|
||||||
|
.Xc
|
||||||
|
.D1 (alias: Ic lsb )
|
||||||
|
List the buffers in the given session.
|
||||||
.It Xo Ic list-clients
|
.It Xo Ic list-clients
|
||||||
.Xc
|
.Xc
|
||||||
.D1 (alias: Ic lsc )
|
.D1 (alias: Ic lsc )
|
||||||
@ -510,11 +539,12 @@ start-up files.
|
|||||||
.D1 (alias: Ic next )
|
.D1 (alias: Ic next )
|
||||||
Move to the next window in the session.
|
Move to the next window in the session.
|
||||||
.It Xo Ic paste-buffer
|
.It Xo Ic paste-buffer
|
||||||
|
.Op Fl d
|
||||||
|
.Op Fl b Ar buffer-index
|
||||||
.Op Fl t Ar target-window
|
.Op Fl t Ar target-window
|
||||||
.Xc
|
.Xc
|
||||||
.D1 (alias: Ic paste )
|
.D1 (alias: Ic pasteb )
|
||||||
Insert the contents of the paste buffer into the current window.
|
Insert the contents of a paste buffer into the current window.
|
||||||
Ignored unless executed via a key binding.
|
|
||||||
.It Xo Ic previous-window
|
.It Xo Ic previous-window
|
||||||
.Op Fl t Ar target-session
|
.Op Fl t Ar target-session
|
||||||
.Xc
|
.Xc
|
||||||
@ -577,6 +607,14 @@ All arguments are sent sequentially from first to last.
|
|||||||
.Op Fl t Ar target-window
|
.Op Fl t Ar target-window
|
||||||
.Xc
|
.Xc
|
||||||
Send the prefix key to a window as if it was pressed.
|
Send the prefix key to a window as if it was pressed.
|
||||||
|
.It Xo Ic set-buffer
|
||||||
|
.Op Fl b Ar buffer-index
|
||||||
|
.Op Fl t Ar target-session
|
||||||
|
.Ar data
|
||||||
|
.Xc
|
||||||
|
.D1 (alias: Ic setb )
|
||||||
|
Set the contents of the specified buffer to
|
||||||
|
.Ar data .
|
||||||
.It Xo Ic set-option
|
.It Xo Ic set-option
|
||||||
.Op Fl t Ar target-session
|
.Op Fl t Ar target-session
|
||||||
.Ar option Ar value
|
.Ar option Ar value
|
||||||
@ -607,6 +645,10 @@ created) to
|
|||||||
.Ar command .
|
.Ar command .
|
||||||
The default is
|
The default is
|
||||||
.Dq exec $SHELL .
|
.Dq exec $SHELL .
|
||||||
|
.It Ic buffer-limit Ar number
|
||||||
|
Set the number of buffers kept for each session; as new buffers are added to
|
||||||
|
the top of the stack, old ones are removed from the bottom if necessary to
|
||||||
|
maintain this maximum length.
|
||||||
.It Ic history-limit Ar lines
|
.It Ic history-limit Ar lines
|
||||||
Set the maximum number of lines held in window history.
|
Set the maximum number of lines held in window history.
|
||||||
This setting applies only to new windows - existing window histories are not
|
This setting applies only to new windows - existing window histories are not
|
||||||
@ -616,7 +658,8 @@ Set the current prefix key.
|
|||||||
.It Xo Ic set-titles
|
.It Xo Ic set-titles
|
||||||
.Op Ic on | Ic off
|
.Op Ic on | Ic off
|
||||||
.Xc
|
.Xc
|
||||||
Attempt to set the window title using the \ee]2;...\e007 xterm code.
|
Attempt to set the window title using the \ee]2;...\e007 xterm code and
|
||||||
|
the terminal appears to be an xterm.
|
||||||
This option is enabled by default.
|
This option is enabled by default.
|
||||||
Note that
|
Note that
|
||||||
.Xr elinks 1
|
.Xr elinks 1
|
||||||
@ -701,6 +744,12 @@ or
|
|||||||
.Ar height .
|
.Ar height .
|
||||||
A value of zero restores the default unlimited setting.
|
A value of zero restores the default unlimited setting.
|
||||||
.El
|
.El
|
||||||
|
.It Xo Ic show-buffer
|
||||||
|
.Op Fl b Ar buffer-index
|
||||||
|
.Op Fl t Ar target-session
|
||||||
|
.Xc
|
||||||
|
.D1 (alias: Ic showb )
|
||||||
|
Display the contents of the specified buffer.
|
||||||
.It Xo Ic show-options
|
.It Xo Ic show-options
|
||||||
.Op Fl t Ar target-session
|
.Op Fl t Ar target-session
|
||||||
.Ar option Ar value
|
.Ar option Ar value
|
||||||
|
8
tmux.h
8
tmux.h
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tmux.h,v 1.171 2008-06-29 07:04:31 nicm Exp $ */
|
/* $Id: tmux.h,v 1.172 2008-06-30 05:34:06 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -1012,9 +1012,9 @@ void cmd_srcdst_send(struct cmd *, struct buffer *);
|
|||||||
void cmd_srcdst_recv(struct cmd *, struct buffer *);
|
void cmd_srcdst_recv(struct cmd *, struct buffer *);
|
||||||
void cmd_srcdst_free(struct cmd *);
|
void cmd_srcdst_free(struct cmd *);
|
||||||
void cmd_srcdst_print(struct cmd *, char *, size_t);
|
void cmd_srcdst_print(struct cmd *, char *, size_t);
|
||||||
#define CMD_BUFFER_WINDOW_USAGE "[-b index] [-t target-window]"
|
#define CMD_BUFFER_WINDOW_USAGE "[-b buffer-index] [-t target-window]"
|
||||||
#define CMD_BUFFER_SESSION_USAGE "[-b index] [-t target-session]"
|
#define CMD_BUFFER_SESSION_USAGE "[-b buffer-index] [-t target-session]"
|
||||||
#define CMD_BUFFER_CLIENT_USAGE "[-b index] [-t target-client]"
|
#define CMD_BUFFER_CLIENT_USAGE "[-b buffer-index] [-t target-client]"
|
||||||
void cmd_buffer_init(struct cmd *, int);
|
void cmd_buffer_init(struct cmd *, int);
|
||||||
int cmd_buffer_parse(struct cmd *, int, char **, char **);
|
int cmd_buffer_parse(struct cmd *, int, char **, char **);
|
||||||
void cmd_buffer_exec(struct cmd *, struct cmd_ctx *);
|
void cmd_buffer_exec(struct cmd *, struct cmd_ctx *);
|
||||||
|
Loading…
Reference in New Issue
Block a user