Nicholas Marriott
ad760b3bf7
Add client_session and client_last_session formats.
2013-03-22 10:32:36 +00:00
Nicholas Marriott
78543cce30
Support capture-pane -p to send to stdout.
2013-03-21 18:43:34 +00:00
Jason McIntyre
55bf2ecc68
tweak previous; ok nicm
2013-03-21 17:42:36 +00:00
Nicholas Marriott
4920306486
Clarify choose-tree entry in man page.
2013-03-21 16:23:46 +00:00
Nicholas Marriott
180faf73af
Allow choose commands to be used outside tmux, so long as at least one
...
client is attached.
2013-03-21 16:09:59 +00:00
Nicholas Marriott
f5de847a0c
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-17 23:45:19 +00:00
Nicholas Marriott
9e879b4aab
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-03-12 22:49:56 +00:00
Nicholas Marriott
99934bf998
Write escaped output in control mode rather than hex, from George Nachman.
2013-03-12 22:48:58 +00:00
Nicholas Marriott
d32a546d6e
Clarify zoom/unzoom, from Romain Francoise.
2013-03-12 14:58:48 +00:00
Nicholas Marriott
7c00950967
Don't add prefix to %output pane id.
2013-03-11 15:28:34 +00:00
Nicholas Marriott
b5516771d3
Clean up capture-pane and add -P option to dump pending output, based on code
...
from George Nachman.
2013-03-11 13:47:29 +00:00
Nicholas Marriott
7b4084a15a
Document control mode in the manpage, from George Nachman.
2013-03-11 13:06:30 +00:00
Nicholas Marriott
f47a063841
Rename session idx to session id throughout and add $ prefix to targets to use
...
it, extended from a diff from George Nachman.
2013-03-07 10:07:22 +00:00
Nicholas Marriott
bc3580fa06
Add wait-for -L and -U for lock and unlock, from Thiago Padilha.
2013-03-06 11:00:55 +00:00
Nicholas Marriott
7fd4d49d56
Add a wait-for command which blocks a client on a named channel until it is
...
wokrn up again (with wait-for -S). From Thiago Padilha.
2013-03-06 09:57:26 +00:00
Nicholas Marriott
d05debbe19
Unzoom on last-pane and fix a typo, from Romain Francoise.
2013-03-05 18:00:14 +00:00
Nicholas Marriott
aaeee34c32
Preserve trailing spaces with capture-pane -J, from George Nachman.
2013-03-04 11:03:03 +00:00
Nicholas Marriott
1cb1fb5bd4
Add -q flags to shut up errors to capture-pane and show-options, from George
...
Nachman.
2013-03-04 09:00:24 +00:00
Nicholas Marriott
b2a61348dd
Add -a to capture-pane to capture alternate screen, from George Nachman.
2013-02-24 07:52:03 +00:00
Nicholas Marriott
f339cfd315
Add -A flag to new-session to make it behave like attach-session if the session
...
exists. If -A is used, -D behaves like -d to attach-session.
2013-02-24 00:43:28 +00:00
Nicholas Marriott
c5239c5984
Add resize-pane -Z to temporary zoom the active pane to occupy the full window
...
or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z
by default. The pane is unzoomed on pretty much any excuse whatsoever.
We considered making this a new layout but the requirements are quite different
from layouts so decided it is better as a special case. Each current layout
cell is saved, a temporary one-cell layout generated and all except the active
pane set to NULL.
Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and
Thiago Padilha for testing an earlier version.
2013-02-24 00:25:03 +00:00
Nicholas Marriott
be13479f09
Add a -o option to set-option to prevent setting an option already set, from
...
Thiago Padilha.
2013-02-23 23:22:03 +00:00
Nicholas Marriott
69a8d64716
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
cmd-if-shell.c
cmd-run-shell.c
tmux.1
2013-02-23 22:42:49 +00:00
Nicholas Marriott
3964309c67
Add a command queue to standardize and simplify commands that call other
...
commands and allow a command to block execution of subsequent commands. This
allows run-shell and if-shell to be synchronous which has been much requested.
Each client has a default command queue and commands are consumed one at a time
from it. A command may suspend execution from the queue by returning
CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example
run-shell does this from the callback that is fired after the job is freed.
When the command queue becomes empty, command clients are automatically exited
(unless attaching). A callback is also fired - this is used for nested commands
in, for example, if-shell which can block execution of the client's cmdq until
a new cmdq becomes empty.
Also merge all the old error/info/print functions together and lose the old
curclient/cmdclient distinction - a cmdq is bound to one client (or none if in
the configuration file), this is a command client if c->session is NULL
otherwise an attached client.
2013-02-23 22:25:58 +00:00
Nicholas Marriott
497b27dafb
Expand format variables in the run-shell and if-shell shell commands, from
...
Thiago Padilha.
2013-02-23 19:24:42 +00:00
Nicholas Marriott
5f904aa350
Add pane_tags format to format_window_pane based on code from George Nachman.
2013-02-23 13:02:52 +00:00
Nicholas Marriott
ce7bf1083e
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-02-22 16:25:50 +00:00
Nicholas Marriott
1db4ec6e63
Add pane_current_command format.
2013-02-22 16:25:21 +00:00
Nicholas Marriott
31407b70e0
Add option command-prefix which is automatically prepended to any command
...
(apart from a naked default-shell). The default is "exec ".
2013-02-22 14:31:38 +00:00
Nicholas Marriott
374dae6635
Add a load of miscellaneous pane formats, from George Nachman.
2013-02-21 19:44:27 +00:00
Nicholas Marriott
b8b5631d9d
Add -C and -J to capture pane to escape control sequences and to join wrapped
...
line, based on a diff from George Nachman.
2013-02-21 09:35:01 +00:00
Nicholas Marriott
c3859d1df1
Add copy-pipe mode command to copy selection and also pipe to a command.
2013-02-19 17:49:53 +00:00
Nicholas Marriott
4d1d4d6e8e
Add -e flag to capture-pane to include embedded ANSI SGR escape sequences, from
...
George Nachman.
2013-02-19 09:55:02 +00:00
Nicholas Marriott
a96dd1932a
Don't use a target-client for stdout, just always cmdclient.
2013-02-19 09:51:04 +00:00
Nicholas Marriott
e4bb87032e
Add resize-pane -x and -y for absolute pane size.
2013-02-18 17:00:35 +00:00
Nicholas Marriott
d8261019f1
Add client_session and client_last_session formats.
2013-02-18 14:23:40 +00:00
Nicholas Marriott
1d591ada76
Support capture-pane -p to send to stdout.
2013-02-15 09:31:45 +00:00
Nicholas Marriott
931b0103cd
Clarify choose-tree entry in man page.
2013-02-13 11:07:21 +00:00
Nicholas Marriott
36fe146a74
Fix choose-tree usage.
2013-02-13 09:55:37 +00:00
Nicholas Marriott
caa29af2a9
Add user options, prefixed with @. May be set to any arbitrary string.
2013-02-13 09:54:24 +00:00
Nicholas Marriott
102cb77435
Add -v to set and setw to show only option value.
2013-02-12 20:12:10 +00:00
Nicholas Marriott
a6fd92bd8d
Remove stray change accidentally committed.
2013-02-10 19:15:49 +00:00
Nicholas Marriott
06ac4b628d
Add a format client_prefix which is 1 if prefix key has been pressed, used for
...
example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
2013-02-10 18:58:05 +00:00
Nicholas Marriott
f1ce95915c
Allow choose commands to be used outside tmux, so long as at least one client
...
is attached.
2013-02-10 17:52:51 +00:00
Thomas Adam
de194016ec
Merge branch 'obsd-master'
2013-01-17 01:38:21 +00:00
Nicholas Marriott
e33ba57c13
Remove the layout undo/redo code which never really worked.
2013-01-17 00:11:22 +00:00
Nicholas Marriott
bc2e4a36df
If timing between keys is less than (by default) 1 millisecond, assume
...
the text is being pasted. assume-paste-time option changes the value (0
disables). Based on a diff from Marcin Kulik.
2013-01-15 22:55:29 +00:00
Thomas Adam
675c6b3773
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-12-31 18:50:37 +00:00
Nicholas Marriott
854e8ae04d
Add ^ and $ special command targets to select lowest and highest
...
numbered windows, from Raghavendra D Prabhu.
2012-12-24 12:38:57 +00:00
Thomas Adam
39631edb98
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-27 18:12:04 +00:00
Nicholas Marriott
4aa4e9fb26
Allow cmd-run-shell to accept -t to specify the pane to display the
...
output, requested by Alexander Tsepkov.
2012-11-27 15:09:35 +00:00
Nicholas Marriott
93224260ae
Add window-status-last-* options, from Boris Faure.
2012-11-27 13:52:23 +00:00
Thomas Adam
c04aa90207
Merge branch 'obsd-master'
...
Sync from OpenBSD.
* obsd-master:
Add halfpage commands to mode command string table (missed by accident), from Thomas Adam.
Clarify some points about config files, notably that they are only read at server start. From Thomas Adam.
Use a utility function for common code to show errors in config file, from Thomas Adam.
2012-11-22 13:24:14 +00:00
Nicholas Marriott
9a7e5bd1d3
Clarify some points about config files, notably that they are only read
...
at server start. From Thomas Adam.
2012-11-19 10:50:24 +00:00
Thomas Adam
31f93d8445
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-25 23:32:14 +01:00
Nicholas Marriott
589b4b8c6a
Fix typo bell->bells from Thomas Adam.
2012-10-25 11:11:58 +00:00
Thomas Adam
619ffe1f4f
Merge branch 'obsd-master'
...
Sync from OpenBSD.
* obsd-master:
Allow session tree (C-b s) to expand and collapse sessions with left/right/space keys. From Thomas Adam.
Remove some out of date text from man page, from Thomas Adam.
2012-10-02 10:47:16 +01:00
Nicholas Marriott
ea289bc457
Remove some out of date text from man page, from Thomas Adam.
2012-10-02 08:02:21 +00:00
Nicholas Marriott
28fd3a3835
add cmd-choose-list to allow arbitrary options to be selected. From
...
Thomas Adam.
2012-09-04 22:37:29 +01:00
Nicholas Marriott
7263fa36eb
add cmd-choose-list to allow arbitrary options to be selected. From
...
Thomas Adam.
2012-09-03 09:57:57 +00:00
Tiago Cunha
061027fefc
Sync OpenBSD patchset 1158:
...
Another missing format from sam at sltosis.org.
2012-08-12 19:30:11 +00:00
Tiago Cunha
30b801decf
Sync OpenBSD patchset 1155:
...
Add some missing formats from Samuel Le Thiec.
2012-08-12 19:25:15 +00:00
Tiago Cunha
ca3f92e78c
Sync OpenBSD patchset 1154:
...
Document pane_index variable, from sam at sltosis dot org.
2012-08-12 19:24:31 +00:00
Nicholas Marriott
cf2e65c0e2
Another missing format from sam at sltosis.org.
2012-08-11 07:10:01 +00:00
Nicholas Marriott
ff4097e02c
Add some missing formats from Samuel Le Thiec.
2012-08-11 05:55:12 +00:00
Nicholas Marriott
89a96b05fa
Document pane_index variable, from sam at sltosis dot org.
2012-07-15 06:51:57 +00:00
Tiago Cunha
bbd3e822c7
Sync OpenBSD patchset 1147:
...
remove extraneous line;
2012-07-11 17:15:53 +00:00
Tiago Cunha
a10143a2d1
Sync OpenBSD patchset 1146:
...
Add choose-tree command to show windows and sessions in the same
list. Change choose-window and -session to use the same code. From
Thomas Adam.
2012-07-11 17:13:55 +00:00
Jason McIntyre
b0f4f94b5b
remove extraneous line;
2012-07-08 17:24:29 +00:00
Nicholas Marriott
f20c6fe009
Add choose-tree command to show windows and sessions in the same
...
list. Change choose-window and -session to use the same code. From
Thomas Adam.
2012-07-08 16:04:38 +00:00
Tiago Cunha
1c15848c47
Sync OpenBSD patchset 1134:
...
Add -a for kill-session, from Thomas Adam.
2012-06-18 15:12:54 +00:00
Tiago Cunha
4a634a7da4
Sync OpenBSD patchset 1133:
...
Add -a flag for detach-client, from Thomas Adam.
2012-06-18 15:11:35 +00:00
Tiago Cunha
576f2694b1
Sync OpenBSD patchset 1132:
...
Simplify references to alerts in the man page, from Thomas Adam.
2012-06-18 15:10:40 +00:00
Nicholas Marriott
2113115cdd
Add -a for kill-session, from Thomas Adam.
2012-06-18 09:16:15 +00:00
Nicholas Marriott
038e8b770d
Add -a flag for detach-client, from Thomas Adam.
2012-06-18 09:15:22 +00:00
Nicholas Marriott
04ac61ecd7
Simplify references to alerts in the man page, from Thomas Adam.
2012-06-18 09:13:12 +00:00
Tiago Cunha
5cc4961fd2
Sync OpenBSD patchset 1119:
...
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
2012-05-22 21:03:25 +00:00
Tiago Cunha
04bf0d8efc
Sync OpenBSD patchset 1113:
...
Ignore line continuation when escaped as \\, from Simon Nicolussi.
2012-05-22 20:50:51 +00:00
Nicholas Marriott
ebf94bc9cb
Switch all of the various choose- and list- commands over to the format
...
infrastructure, from Thomas Adam.
2012-05-22 11:35:37 +00:00
Nicholas Marriott
ac7e2f13e9
Ignore line continuation when escaped as \\, from Simon Nicolussi.
2012-05-17 21:21:31 +00:00
Tiago Cunha
e79c647052
Sync OpenBSD patchset 1105:
...
default-path has the same possibilities as new-window -c now.
2012-05-03 17:53:50 +00:00
Tiago Cunha
b728970c65
Sync OpenBSD patchset 1104:
...
Add a flag to move-window to renumber the windows in a session (closing
any gaps) and add an option to do this automatically each time a window
is killed. From Thomas Adam.
2012-05-03 17:51:04 +00:00
Nicholas Marriott
cc979bda0f
default-path has the same possibilities as new-window -c now.
2012-05-02 19:29:13 +00:00
Nicholas Marriott
a6c22d650b
Add a flag to move-window to renumber the windows in a session (closing
...
any gaps) and add an option to do this automatically each time a window
is killed. From Thomas Adam.
2012-04-29 17:20:01 +00:00
Tiago Cunha
6df8953f4f
Sync OpenBSD patchset 1097:
...
Add window-status-separator option, from Thomas Adam.
2012-04-24 16:20:18 +00:00
Tiago Cunha
00e2e35740
Sync OpenBSD patchset 1096:
...
Add -a flag to kill-window, from Thomas Adam.
2012-04-24 16:19:27 +00:00
Nicholas Marriott
e02d1bce98
Add window-status-separator option, from Thomas Adam.
2012-04-23 22:23:14 +00:00
Nicholas Marriott
ed58b2d353
Add -a flag to kill-window, from Thomas Adam.
2012-04-23 22:10:45 +00:00
Tiago Cunha
f99de22808
Sync OpenBSD patchset 1084:
...
Add a layout history which can be stepped through with select-layout -u
and -U commands (bound to 'u' and 'U' by default).
2012-04-10 09:52:45 +00:00
Tiago Cunha
2ce636a315
Sync OpenBSD patchset 1083:
...
Add pane_current_path format, suggested by Mikolaj Kucharski.
2012-04-10 09:49:04 +00:00
Nicholas Marriott
85f5485cb5
Add a layout history which can be stepped through with select-layout -u
...
and -U commands (bound to 'u' and 'U' by default).
2012-04-01 13:18:38 +00:00
Nicholas Marriott
b831f86354
Add pane_current_path format, suggested by Mikolaj Kucharski.
2012-04-01 10:42:39 +00:00
Tiago Cunha
faf51d748e
Sync OpenBSD patchset 1079:
...
Accept an argument to show-environment to show one variable, based on a
diff from Kazuhiko Sakaguchi.
2012-03-29 21:10:10 +00:00
Tiago Cunha
65748fb197
Sync OpenBSD patchset 1075:
...
Add -C -N -T flags to find-window to find in content, name, title. From
Jonathan Daugherty.
2012-03-29 21:07:28 +00:00
Tiago Cunha
8ff20a5c6d
Sync OpenBSD patchset 1073:
...
50 is a too low trigger default on larger terminals, bump to 250.
2012-03-29 21:05:53 +00:00
Tiago Cunha
f9f6eea444
Sync OpenBSD patchset 1072:
...
Add a simple form of output rate limiting by counting the number of
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it
exceeds a threshold (current default 50/millisecond), start to redraw
the pane every 100 milliseconds instead of making each change as it
comes. Two configuration options - c0-change-trigger and
c0-change-interval.
This makes tmux much more responsive under very fast output (for example
yes(1) or accidentally cat'ing a large file) but may not be perfect on
all terminals and connections - feedback very welcome, particularly
where this change has a negative rather than positive effect (making it
off by default is a possibility).
After much experimentation based originally on a request Robin Lee
Powell (which ended with a completely different solution), this idea
from discussion with Ailin Nemui.
2012-03-29 21:05:16 +00:00
Nicholas Marriott
c0cfbe12e4
Accept an argument to show-environment to show one variable, based on a
...
diff from Kazuhiko Sakaguchi.
2012-03-22 11:11:57 +00:00
Nicholas Marriott
90bf560fe4
Add -C -N -T flags to find-window to find in content, name, title. From
...
Jonathan Daugherty.
2012-03-20 17:09:48 +00:00
Nicholas Marriott
01f2b5d64b
50 is a too low trigger default on larger terminals, bump to 250.
2012-03-20 11:23:12 +00:00
Nicholas Marriott
f59971276a
Add a simple form of output rate limiting by counting the number of
...
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it
exceeds a threshold (current default 50/millisecond), start to redraw
the pane every 100 milliseconds instead of making each change as it
comes. Two configuration options - c0-change-trigger and
c0-change-interval.
This makes tmux much more responsive under very fast output (for example
yes(1) or accidentally cat'ing a large file) but may not be perfect on
all terminals and connections - feedback very welcome, particularly
where this change has a negative rather than positive effect (making it
off by default is a possibility).
After much experimentation based originally on a request Robin Lee
Powell (which ended with a completely different solution), this idea
from discussion with Ailin Nemui.
2012-03-20 11:01:00 +00:00