Thomas Adam
0ca9664ecf
Merge branch 'obsd-master'
2018-02-28 10:02:29 +00:00
nicm
508e2f0b3a
Add -Z flag to choose-tree, choose-client, choose-buffer to
...
automatically zoom the pane when the mode is entered and unzoom when it
exits, assuming the pane is not already zoomed. Add -Z to the default
key bindings.
2018-02-28 08:55:44 +00:00
Thomas Adam
c2aa40449c
Merge branch 'obsd-master'
2018-02-22 12:02:31 +00:00
nicm
623f4b12d3
Add exit-empty option to exit server if no sessions (defaults to on).
2018-02-22 10:54:51 +00:00
Thomas Adam
84ddc72744
Merge branch 'obsd-master'
2018-01-17 11:26:10 +00:00
nicm
5849b73b81
Add -I to pipe-pane to connect pane stdin as well as stdout, suggested
...
by Kristof Kovacs in GitHub issue 1186.
2018-01-16 09:00:38 +00:00
Thomas Adam
e19df0e869
Merge branch 'obsd-master'
2017-12-22 12:01:22 +00:00
nicm
5c82432200
Remove duplicate WheelUp/WheelDown entries in list, GitHub issue 1184.
2017-12-22 10:16:36 +00:00
Thomas Adam
5fddddbe21
Merge branch 'obsd-master'
2017-11-16 12:01:18 +00:00
nicm
e5ae9dd53d
Add -and-cancel variants for scrolling commands to exit copy mode when
...
the bottom is reached, from Stephen Hicks.
2017-11-16 11:16:15 +00:00
Thomas Adam
102df8dc80
Merge branch 'obsd-master'
2017-11-15 22:01:22 +00:00
nicm
3b649d2fcd
Add a common function for spreading out cells and use it for the two
...
even layouts and to add a -E flag to select-layout to spread out cells
evenly without changing parent cells.
2017-11-15 19:59:27 +00:00
Thomas Adam
8c29f7413b
Merge branch 'obsd-master'
2017-11-02 20:01:26 +00:00
nicm
17655e5ba6
Format for group list of "other sessions" is a bit weird, just list all
...
the sessions in the group.
2017-11-02 18:52:05 +00:00
nicm
c1f62f1fde
Only show the first member of session groups in tree mode (-G flag
...
disables).
2017-11-02 18:27:35 +00:00
Thomas Adam
cf782c4f54
Merge branch 'obsd-master'
2017-10-26 10:01:18 +01:00
nicm
e91e8a2a6c
Fix crash exiting command prompt (from Alex Maese in GitHub issue 1139)
...
and a man page tweak from jmc.
2017-10-26 08:17:12 +00:00
Thomas Adam
d36ac3db15
Merge branch 'obsd-master'
2017-10-25 18:01:17 +01:00
nicm
be4c01697c
Note that notifications are also hooks.
2017-10-25 15:20:10 +00:00
Thomas Adam
0072bc65e6
Merge branch 'obsd-master'
2017-10-25 16:01:22 +01:00
nicm
578a63bbc9
Default allow-rename to off because it is ridiculous that applications
...
are even able to do this and confusing when they do.
2017-10-25 14:14:52 +00:00
Thomas Adam
6b83ca0077
Merge branch 'obsd-master'
2017-10-25 14:01:26 +01:00
nicm
8dd776106d
Add P key to paste tagged in buffer mode, and trim some code that should
...
no longer be necessary.
2017-10-25 11:26:11 +00:00
Thomas Adam
ceab7154d4
Merge branch 'obsd-master'
2017-10-08 18:40:41 +01:00
nicm
0b4c408168
Fix description of history_size, from Campbell Barton.
2017-10-08 16:45:01 +00:00
Thomas Adam
f069c0ba09
Merge branch 'obsd-master'
2017-10-06 20:01:17 +01:00
nicm
9c4caf49a2
Support %else in config files to match %if, from Brad Town in GitHub
...
issue 1071.
2017-10-06 18:02:30 +00:00
Thomas Adam
d8c397d1b7
Merge branch 'obsd-master'
2017-09-11 10:01:11 +01:00
nicm
d8d6c2746e
Mention that filter is a format.
2017-09-11 06:53:06 +00:00
Thomas Adam
ff3d05d92f
Merge branch 'obsd-master'
2017-09-04 12:01:11 +01:00
nicm
eadd79acec
Move to current mouse position not last when clcking in copy mode; fixes
...
GitHub issue 1055. Also a man page fix from jmc.
2017-09-04 09:18:51 +00:00
Thomas Adam
d019821281
Merge branch 'obsd-master'
2017-09-02 20:01:18 +01:00
nicm
f4848b437f
Add selectp -T to set pane title.
2017-09-02 17:51:54 +00:00
Nicholas Marriott
fa20f19494
Fix position of -v, pointed out by Thomas Sattler.
2017-08-30 09:33:53 +01:00
Thomas Adam
3b40f8e42c
Merge branch 'obsd-master'
2017-08-23 12:01:13 +01:00
nicm
08b125194e
Key (v) and flag (-N) to toggle preview in choose modes.
2017-08-23 09:39:11 +00:00
Thomas Adam
ccdc369025
Merge branch 'obsd-master'
2017-08-20 00:01:22 +01:00
nicm
768740ae98
Fix example for user-keys.
2017-08-19 20:40:16 +00:00
Thomas Adam
07a13697e1
Merge branch 'obsd-master'
2017-08-17 12:01:17 +01:00
nicm
8daa1d5f54
Add monitor-bell window option to match the activity and silence
...
options, from Brad Town.
2017-08-17 08:37:38 +00:00
Thomas Adam
2103a09430
Merge branch 'obsd-master'
2017-08-16 14:01:15 +01:00
nicm
c6a8ad23a1
Add -d flag to display-panes to specify timeout, and make 0 mean no
...
timeout. From Laurens Post.
2017-08-16 12:12:54 +00:00
Thomas Adam
27c3852103
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
2017-08-09 15:07:18 +01:00
nicm
5dd5543fe4
Add -F to choose-tree, choose-client, choose-buffer to specify the
...
format of each line, as well as adding a couple of formats needed for
the default display.
2017-08-09 11:43:45 +00:00
Thomas Adam
e7b1e05bbd
Merge branch 'obsd-master'
2017-08-02 14:01:10 +01:00
nicm
6f9b9655d7
Add selection_present format so commands in copy mode can use it, GitHub
...
issue 1028.
2017-08-02 11:10:48 +00:00
Thomas Adam
147740ed40
Merge branch 'obsd-master'
2017-07-27 14:01:13 +01:00
nicm
3df7c91f1a
Add pane_at_left/right/top/bottom formats, from Amos Bird.
2017-07-27 10:42:05 +00:00
Thomas Adam
58744de3eb
Merge branch 'obsd-master'
2017-07-26 18:01:16 +01:00
nicm
76887b1d27
Make bell, activity and silence alerting more consistent:
...
- remove the bell-on-alert option;
- add activity-action and silence-action options with the same possible
values as the existing bell-action;
- add "both" value for the visual-bell, visual-activity and
visual-silence options to trigger both a bell and a message.
This means all three work the same way. Based on changes from Yvain Thonnart.
2017-07-26 16:14:08 +00:00
Thomas Adam
e725b96a59
Merge branch 'obsd-master'
2017-07-21 12:01:16 +01:00
nicm
11e2af6df7
Add -c for respawn-pane and respawn-window, from J Raynor.
2017-07-21 09:17:19 +00:00
Thomas Adam
05062e7d2d
Merge branch 'obsd-master'
2017-07-07 18:01:15 +01:00
nicm
9913cce3ba
Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990.
2017-07-07 14:39:45 +00:00
Thomas Adam
6b1ceca86a
Merge branch 'obsd-master'
2017-07-05 00:01:10 +01:00
nicm
53d4ed22e8
< and > keys to scroll preview list left and right in tree mode.
2017-07-04 22:21:31 +00:00
Thomas Adam
f059fe3ef2
Merge branch 'obsd-master'
2017-06-30 00:01:14 +01:00
nicm
8b0fd63ddb
Use 100 as the example for command-alias because the defaults are from 0
...
to (currently) 5.
2017-06-29 22:02:19 +00:00
Thomas Adam
1ca920bbeb
Merge branch 'obsd-master'
2017-06-28 10:01:16 +01:00
nicm
1e376be13d
Fix visual-silence (check accidentally the wrong way round), from Brad
...
Town. Plus some tmux.1 fixes from jmc@.
2017-06-28 06:45:31 +00:00
Thomas Adam
6995497e5b
Merge branch 'obsd-master'
2017-06-23 18:01:11 +01:00
nicm
95ed7d48c8
Add user-keys option to allow user-defined keys to be set, from Dan
...
Aloni.
2017-06-23 15:36:52 +00:00
Thomas Adam
4dbab75855
Merge branch 'obsd-master'
2017-06-09 18:01:14 +01:00
nicm
adcd5aff6f
Extend filters (f key) to buffer and client mode and add -f flag to
...
specify to command.
2017-06-09 16:01:39 +00:00
nicm
bab4da5133
Add -O option to choose-* to set initial sort order.
2017-06-09 15:29:15 +00:00
Thomas Adam
e640907d24
Merge branch 'obsd-master'
2017-06-09 12:01:17 +01:00
nicm
74b2deae1c
Add a hook when the clipboard is set.
2017-06-09 09:21:24 +00:00
Thomas Adam
86d6666fe7
Merge branch 'obsd-master'
2017-06-07 16:01:10 +01:00
nicm
405cc337f3
Add simple searching (C-s and n) to the various choose modes: by name
...
for client and tree, and by name and content for buffer.
2017-06-07 14:37:30 +00:00
Thomas Adam
e62e17d046
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
window.c
2017-06-05 11:59:38 +01:00
nicm
adf5628087
Support SIGUSR2 to stop and start logging for an existing server. Also
...
we currently only have two log levels so just use -v and -vv rather than
-v and -vvvv, and clarify the man page entry for -v.
2017-06-04 08:25:57 +00:00
nicm
184039044a
Typo/style; plus man page escaping from jmc.
2017-06-04 08:02:20 +00:00
Thomas Adam
757eb060cd
Merge branch 'obsd-master'
2017-06-03 20:01:10 +01:00
nicm
3442066054
Make set-clipboard a three-state option so tmux itself can ignore the
...
sequencess.
2017-06-03 17:43:01 +00:00
Thomas Adam
f17ecaa495
Merge branch 'obsd-master'
...
Conflicts:
Makefile.am
cfg.c
server-client.c
2017-05-31 15:56:13 +01:00
nicm
aad4e4ddb1
Rewrite of choose mode, both to simplify and tidy the code and to add
...
some modern features.
Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.
Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:
- each mode has a preview pane: for buffers this is the buffer content
(very useful), for others it is a preview of the pane;
- items may be sorted in different ways ('O' key);
- multiple items may be tagged and an operation applied to all of them
(for example, to delete multiple buffers at once);
- in tree mode a command may be run on the selected item (session,
window, pane) or on tagged items (key ':');
- displayed items may be filtered in tree mode by using a format (this
is used to implement find-window) (key 'f');
- the custom format (-F) for the display is no longer available;
- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
with keys used for other uses to 0-9, M-a to M-z.
Now that the code is simpler, other improvements will come later.
Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).
Parts written by Thomas Adam.
2017-05-30 21:44:59 +00:00
Thomas Adam
5bc5fe5e7e
Merge branch 'obsd-master'
2017-05-29 20:01:12 +01:00
nicm
a2ace9da24
Add ||, && format operators and C: to search pane content.
2017-05-29 18:06:34 +00:00
Thomas Adam
d3959a2118
Merge branch 'obsd-master'
2017-05-29 18:01:14 +01:00
nicm
1257501499
Add m: for fnmatch(3) format matching.
2017-05-29 15:43:48 +00:00
Thomas Adam
bfd7209053
Merge branch 'obsd-master'
2017-05-29 10:01:15 +01:00
nicm
15253448af
Tweak text to mention initial size, from John Hood.
2017-05-29 07:46:32 +00:00
Thomas Adam
0868512bbc
Merge branch 'obsd-master'
2017-05-10 16:01:10 +01:00
nicm
b519551153
Expand formats in option names and add -F flag to do so in option values as well.
2017-05-10 13:05:41 +00:00
Thomas Adam
a651b08a2f
Merge branch 'obsd-master'
...
Conflicts:
format.c
2017-05-09 15:44:13 +01:00
nicm
5fee4638e0
Add a format for the name of the pane's mode, lets it be used as a
...
conditional for key bindings.
2017-05-07 22:27:57 +00:00
nicm
2fef10b9ac
Add some formats to look at the session window stack, suggested by Scott
...
ROCHFORD.
2017-05-05 11:59:47 +00:00
Thomas Adam
f3221941f2
Merge branch 'obsd-master'
2017-05-04 10:01:12 +01:00
nicm
d98d316903
Some new notifications, mainly for active pane and current window and
...
session:
pane-mode-changed
window-pane-changed
client-session-changed
session-window-changed
From Joshua Brot.
2017-05-04 07:16:43 +00:00
Thomas Adam
97ecb4f9d8
Merge branch 'obsd-master'
2017-05-03 08:01:14 +01:00
nicm
ca6a121e63
Add a format for the last search string in copy mode and fix the prompt
...
so it can work when in -I, suggested by Suraj N Kurapati.
2017-05-03 05:53:34 +00:00
Thomas Adam
99b0f48b2e
Merge branch 'obsd-master'
2017-04-28 16:01:12 +01:00
nicm
c12711affd
Default for xterm-keys was wrong, stop documenting it.
2017-04-28 13:39:59 +00:00
Thomas Adam
d8398af770
Merge branch 'obsd-master'
2017-04-22 08:01:54 +01:00
nicm
59ff9b8128
Typo in example.
2017-04-22 06:15:22 +00:00
Thomas Adam
48371216df
Merge branch 'obsd-master'
2017-04-20 12:01:14 +01:00
nicm
0b44ad99b5
If a #() command doesn't exit, use its most recent line of output (it
...
must be a full line). Don't let it redraw the status line more than once
a second.
Requested by someone about 10 years ago...
2017-04-20 09:20:22 +00:00
Thomas Adam
85af9c9c9d
Merge branch 'obsd-master'
2017-04-19 10:01:12 +01:00
nicm
fa6deb5866
When the data we have buffered to write to a terminal grows beyond a
...
reasonable amount (currently width * height * 8 bytes), discard all
output to the terminal and start trying to redraw periodically
instead. Continue with this until the amount of data we are trying to
write falls to a low level again.
This helps to prevent tmux sitting on a huge buffer of data when there
are processes with fast output running inside tmux but the outside
terminal is slow.
A new client_discarded format holds the amount of data that has been
discarded due to this mechanism.
The three variables (when to start this, when to stop, and how often to
redraw) are basically "works for me" at the moment, this is going in to
see how it goes and if it causes problems for anyone else.
2017-04-19 06:52:27 +00:00
Thomas Adam
a54309147d
Merge branch 'obsd-master'
2017-04-18 18:01:17 +01:00
nicm
fb3c5efa50
Add a format for number of bytes writtent to client, useful for debugging.
2017-04-18 15:44:17 +00:00
Thomas Adam
5f662d91db
Merge branch 'obsd-master'
...
Conflicts:
server-client.c
tmux.1
2017-04-06 11:10:17 +01:00
nicm
9b28200578
Give each client a name. This defaults to the tty name as before but
...
falls back to an alternative if the tty name is not available. This is
clearer than overloading the client ttyname member and allows us to
remove the path stored in the tty struct, it should always be the same
as the client.
2017-04-05 10:49:46 +00:00
Thomas Adam
843e605b89
Merge branch 'obsd-master'
2017-03-22 08:01:17 +00:00
nicm
df3ab87964
Add support for the strikethrough attribute (SGR 9), using the new smxx
...
terminfo capability. This means there are now nine attribute bits, so
anything above 0xff uses an extended cell.
2017-03-22 07:16:54 +00:00
Thomas Adam
631a89954f
Merge branch 'obsd-master'
2017-02-15 10:01:17 +00:00
nicm
640d9e54b7
"status bar" -> "status line" for consistency, from Benjamin Dopplinger.
2017-02-15 08:47:55 +00:00
Thomas Adam
02e04477de
Merge branch 'obsd-master'
...
Conflicts:
server.c
2017-02-14 13:55:16 +00:00
nicm
d22c15107b
Don't use a bufferevent for the tty, so we can keep better track of what
...
is being written and when.
Also a manpage typo fix from jmc@.
2017-02-10 12:59:18 +00:00
nicm
c6a3446398
Instead of numbering session groups, give them a name which may be given
...
to -t instead of a target session. Also allow them to contain only one
session.
2017-02-09 15:04:53 +00:00
nicm
8de4c15dfa
Document refresh-client -C.
2017-02-09 14:49:00 +00:00
Thomas Adam
96ad1d7779
Merge branch 'obsd-master'
2017-02-09 14:01:18 +00:00
nicm
b7ddfb39f3
Don't lie about the default size in the man page.
2017-02-09 12:00:42 +00:00
Thomas Adam
9b1f620aa0
Merge branch 'obsd-master'
2017-02-01 12:01:18 +00:00
nicm
dd0c814779
Implement "all event" (1003) mouse mode but in a way that works. The
...
main issue is that if we have two panes, A with 1002 and B with 1003, we
need to set 1003 outside tmux in order to get all the mouse events, but
then we need to suppress the ones that pane A doesn't want. This is easy
in SGR mouse mode, because buttons == 3 is only used for movement events
(for other events the trailing m/M marks a release instead), but in
normal mouse mode we can't tell so easily. So for that, look at the
previous event instead - if it is drag+release as well, then the current
event is a movement event.
2017-02-01 09:55:07 +00:00
Thomas Adam
9094f01c6b
Merge branch 'obsd-master'
2017-01-30 00:01:13 +00:00
nicm
b6099f31ea
Add -n to break-pane.
2017-01-29 22:10:55 +00:00
Thomas Adam
21d8f77a0d
Merge branch 'obsd-master'
2017-01-25 16:01:13 +00:00
nicm
0a63ab4f0f
If xterm-keys is on, use xterm(1) style keys for Home and End as well as
...
modified keys.
2017-01-25 14:24:54 +00:00
Thomas Adam
418ab1a553
Merge branch 'obsd-master'
2017-01-24 22:01:13 +00:00
nicm
4b2821ff98
Make update-environment an array as well.
2017-01-24 20:15:32 +00:00
nicm
b77dd75b57
Convert terminal-overrides to an array option.
2017-01-24 20:05:15 +00:00
nicm
16e43d6a42
Remove some lies about terminal-overrides from tmux.1.
2017-01-24 20:01:34 +00:00
nicm
85338bb75f
Add support for custom command aliases, this is an array option which
...
contains items of the form "alias=command". This is consulted when an
unknown command is parsed.
2017-01-24 19:53:37 +00:00
Thomas Adam
2311bbd28a
Merge branch 'obsd-master'
2017-01-13 12:01:12 +00:00
nicm
95950bf668
Add -E to detach-client to exec a command to replace the client instead
...
of exiting it, useful if tmux wasn't exec'd itself. From Jenna Magius.
2017-01-13 10:12:12 +00:00
Thomas Adam
d87ab0cadf
Merge branch 'obsd-master'
2017-01-11 18:01:13 +00:00
nicm
bf6a5c056d
Add a format for terminal type.
2017-01-11 16:09:57 +00:00
Thomas Adam
1e12e1d843
Merge branch 'obsd-master'
2017-01-10 12:01:10 +00:00
nicm
e78142232f
Some manpage fixes: rephrase a convoluted sentence, make the names of
...
some keys more standard, and use Ql instead of Dq.
2017-01-10 10:08:59 +00:00
Thomas Adam
628f3ad9f4
Merge branch 'obsd-master'
2017-01-10 10:01:11 +00:00
jmc
40fddfbdd6
avoid unneccessary markup; tweaked and ok nicm
2017-01-10 07:55:48 +00:00
Thomas Adam
2c862b04af
Merge branch 'obsd-master'
2017-01-09 22:01:12 +00:00
Nicholas Marriott
36619607ba
Add a format for the version.
2017-01-09 21:44:19 +00:00
nicm
d2d984647e
Add %if/%endif for conditionals when parsing configuration files, the
...
argument is a format (the new == and != are useful).
2017-01-09 21:28:56 +00:00
nicm
844f2eacf4
Add simple comparisons in formats: #{==:a,b} and #{!=:a,b} ("a" and "b"
...
are expanded so can compare formats). And expand the condition to
#{?a,b,c} (the "a" part) if it doesn't work as a simple lookup.
Also add FORMAT_NOJOBS flag to disable jobs in a format.
2017-01-09 21:03:25 +00:00
Thomas Adam
95f5d406e5
Merge branch 'obsd-master'
2017-01-09 20:01:12 +00:00
nicm
5330a2a85d
Run the source-file pattern through glob(3).
2017-01-09 19:27:00 +00:00
Thomas Adam
325c85a5c1
Merge branch 'obsd-master'
2017-01-07 18:01:11 +00:00
nicm
c05002b0f2
Add note about ccc and initc so people who want it can see it is
...
possible.
2017-01-07 15:40:23 +00:00
Thomas Adam
a3428487a7
Merge branch 'obsd-master'
2017-01-06 14:01:15 +00:00
nicm
461217d0f0
Incremental search in copy mode (on for emacs keys by default) - much
...
the same as normal searching but updates the cursor position and marked
search terms as you type. C-r and C-s in the prompt repeat the search,
once finished searching (with Enter), N and n work as before.
2017-01-06 11:57:03 +00:00
Thomas Adam
1fccfd7be5
Merge branch 'obsd-master'
2016-11-29 14:01:11 +00:00
nicm
6b46c62bb4
Make send -N work for all keys, not just in copy mode. From Artem Fokin.
2016-11-29 12:54:46 +00:00
Thomas Adam
a02d95a313
Merge branch 'obsd-master'
2016-11-24 16:01:11 +00:00
nicm
7e6c2cb238
Make the selection able to exist independent of the cursor position, so
...
that it is not affected by scrolling. If MouseDragEnd1Pane is bound to
the new "stop-selection" command:
bind -Tcopy-mode MouseDragEnd1Pane stop-selection
A selection made with the mouse will stay as it is after button 1 is
released. (It also works bound to a key.)
From Artem Fokin.
2016-11-24 13:38:44 +00:00
Thomas Adam
fe7d9af331
Merge branch 'obsd-master'
2016-11-15 12:01:18 +00:00
nicm
9fe43d6acb
Add copy-pipe-and-cancel, from Artem Fokin.
2016-11-15 09:53:23 +00:00
Thomas Adam
5f9ba2f223
Merge branch 'obsd-master'
2016-10-21 16:01:11 +01:00
nicm
8084a2c9e6
Add %%% to substitute with quotes escaped (convert " to \"). Use this
...
for the prompts in copy mode. Fixes problems with jumping to ' reported
by Theo Buehler.
2016-10-21 13:51:59 +00:00
Thomas Adam
3a6beea064
Merge branch 'obsd-master'
2016-10-18 22:01:12 +01:00
nicm
fb109ae97d
xterm-keys was in the wrong place in the list; Dilyan Palauzov.
2016-10-18 19:25:26 +00:00
Thomas Adam
d54e990c4f
Merge branch 'obsd-master'
2016-10-17 00:01:11 +01:00
nicm
41e633acf5
Use the notify name string instead of going via an enum and change
...
existing hooks to use notifys instead.
2016-10-16 22:06:40 +00:00
Thomas Adam
1a6e696b08
Merge branch 'obsd-master'
2016-10-16 22:01:14 +01:00
nicm
d15d54c2c8
Add hook_session and hook_window formats to get information on the
...
affected session or window when a hook fires. Enable session-created and
session-closed hooks now that that is available.
2016-10-16 19:55:52 +00:00
Thomas Adam
c67b702588
Merge branch 'obsd-master'
2016-10-16 20:01:10 +01:00
nicm
ddc4512d2e
Rewrite command queue handling. Each client still has a command queue,
...
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.
This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.
A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.
2016-10-16 17:55:14 +00:00
Thomas Adam
a15939b502
Merge branch 'obsd-master'
2016-10-15 14:01:10 +01:00
jmc
4fbf564292
zap double .Pp;
2016-10-15 12:34:02 +00:00
Thomas Adam
623e54788e
Merge branch 'obsd-master'
2016-10-15 02:01:12 +01:00
nicm
63b2547a02
Fire hooks on the simple notifys (window-renamed and session-renamed),
...
the complicated ones get no hooks for now (more to come).
2016-10-15 00:09:30 +00:00
Thomas Adam
33fbf82ac0
Merge branch 'obsd-master'
2016-10-14 20:01:13 +01:00
nicm
0ec18e537d
Missing flags in capture-pane, and tweak choose-tree text. From Dilyan Palauzov.
2016-10-14 17:40:47 +00:00
Thomas Adam
117737c6ca
Merge branch 'obsd-master'
2016-10-14 02:01:14 +01:00
Thomas Adam
a7ce19347a
Merge branch 'obsd-master'
2016-10-14 00:01:13 +01:00
nicm
4289a1ebfa
Trying to do hooks generically is way too complicated and unreliable and
...
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:
- drop before hooks entirely, they don't seem to be very useful;
- commands with special requirements now fire their own after hook (for
example, if they change session or window, or if they have -t and -s
and need to choose which one the hook uses as current target);
- commands with no special requirements can have the CMD_AFTERHOOK flag
added and they will use the -t state.
At the moment new-session, new-window, split-window fire their own hook,
and display-message uses the flag. The remaining commands still need to
be looked at.
2016-10-13 22:48:51 +00:00
nicm
7a1a01feef
Remove the set-remain-on-exit option, it was always a hack and can now
...
be done with hooks instead.
2016-10-13 21:37:03 +00:00
Thomas Adam
ad5a561adb
Merge branch 'obsd-master'
2016-10-13 22:01:12 +01:00
nicm
1bd08f903b
Remove mention of key tables than no longer exist.
2016-10-13 20:09:19 +00:00
Thomas Adam
6270392d04
Merge branch 'obsd-master'
2016-10-13 12:01:11 +01:00
nicm
05dac2e42c
-f missed from splitw usage, from Felix Rosencrantz.
2016-10-13 09:06:48 +00:00
Thomas Adam
6551f4bb3b
Merge branch 'obsd-master'
...
Conflicts:
paste.c
2016-10-13 08:09:47 +01:00
nicm
40253048ca
bind-key -c has gone, remove from man page, and unused table declarations.
2016-10-12 15:26:37 +00:00
nicm
c484c5a2a1
Drop the edit mode key tables and just use fixed key bindings for the
...
command prompt.
2016-10-12 14:50:14 +00:00
nicm
68bebe1fb7
The repeat prompt in both emacs and vi (and the old one in tmux) doesn't
...
support line editing and instead executes a command as soon as a
non-number key is pressed. Add a -N flag to command-prompt for the same
in copy mode. Reported by Theo Buehler.
2016-10-12 13:03:27 +00:00
Thomas Adam
b9dc855016
Merge branch 'obsd-master'
...
Conflicts:
format.c
osdep-openbsd.c
2016-10-12 09:45:49 +01:00
nicm
85d7afaefc
Support double and triple clicks (they are cumulative, so double is
...
fired then triple), and use for select-word and select-line in copy
mode. Inspired by a different solution from Omar Sandoval.
2016-10-11 09:30:36 +00:00
nicm
76d6d3641f
Fundamental change to how copy mode key bindings work:
...
The vi-copy and emacs-copy mode key tables are gone, and instead copy
mode commands are bound in one of two normal key tables ("copy-mode" or
"copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So:
bind -temacs-copy C-Up scroll-up
bind -temacs-copy -R5 WheelUpPane scroll-up
Becomes:
bind -Tcopy-mode C-Up send -X scroll-up
bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up
This allows the full command parser and command set to be used - for
example, we can use the normal command prompt for searching, jumping,
and so on instead of a custom one:
bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'"
command-prompt also gets a -1 option to only require on key press, which
is needed for jumping.
The plan is to get rid of mode keys entirely, so more to come eventually.
2016-10-11 07:23:34 +00:00
Thomas Adam
ddfed259f6
Merge branch 'obsd-master'
2016-10-04 00:01:11 +01:00
nicm
305c832a97
Document set-hook -u.
2016-10-03 20:58:39 +00:00
Thomas Adam
a5b29a1250
Merge branch 'obsd-master'
2016-09-12 18:01:12 +01:00
nicm
2e5584c2b4
Allow repeat count to be specified in mode key tables with bind-key -R,
...
and set the default repeat count to 5 for WheelUp and WheelDown in
copy-mode.
2016-09-12 15:40:58 +00:00
Thomas Adam
f68a908c8a
Merge branch 'obsd-master'
2016-09-04 20:01:16 +01:00
nicm
fed1e384ad
Add support for performing a full width split (with splitw -f), rather
...
than splitting the current cell. From Stephen Kent.
2016-09-04 17:37:06 +00:00
Thomas Adam
88eb302221
Merge branch 'obsd-master'
2016-08-22 22:01:13 +01:00
nicm
43f292b2e0
Two minor fixes from dilyan palauzov.
2016-08-22 20:07:58 +00:00
Thomas Adam
baf1550227
Merge branch 'obsd-master'
2016-08-03 12:01:11 +01:00
nicm
f811127bb6
We only replace the first %%, not multiple (use %2 for second).
2016-08-03 09:08:40 +00:00
Thomas Adam
93f42d360b
Merge branch 'obsd-master'
2016-06-16 14:01:11 +01:00
nicm
325cbe90d9
Allow a command to be specified to display-panes, similar to
...
command-prompt, rather than always just selecting the pane.
2016-06-16 10:55:47 +00:00
Thomas Adam
1ad7c6b8f8
Merge branch 'obsd-master'
2016-06-15 18:01:11 +01:00
nicm
0c7ddae2ab
Add missing buffer_name format, from Awal Garg.
2016-06-15 14:43:06 +00:00
Thomas Adam
5c12230a08
Merge branch 'obsd-master'
2016-06-15 12:01:11 +01:00
nicm
068b8b03ad
Add -F to list-commands.
2016-06-15 08:54:11 +00:00
Thomas Adam
6cb74f4b7d
Merge branch 'obsd-master'
2016-05-12 18:01:10 +01:00
tim
fdd368a294
- Rework load_cfg() error handling a little.
...
- Add -q to source-file to suppress errors about nonexistent files.
Input and OK nicm@
2016-05-12 16:05:33 +00:00
Thomas Adam
fe4ef307b7
Merge branch 'obsd-master'
2016-05-01 14:01:12 +01:00
nicm
87be2da4e1
Missing format (window_activity_flag) and a missing Ta.
2016-05-01 11:46:12 +00:00
Thomas Adam
5849c950d0
Merge branch 'obsd-master'
2016-04-30 00:01:10 +01:00
jmc
0c7895076e
tweak previous;
2016-04-29 20:57:10 +00:00
Thomas Adam
55d472a9fe
Merge branch 'obsd-master'
2016-04-29 18:01:09 +01:00
nicm
eb8e76d433
Compact a small table into text.
2016-04-29 15:58:52 +00:00
Thomas Adam
ba9f32b464
Merge branch 'obsd-master'
2016-04-29 16:01:12 +01:00
nicm
0509be0740
Add option to include status text in the pane borders. If
...
pane-border-status is set to "top" or "bottom" (rather than "off"),
every pane has a permanent top or bottom border containing the text from
pane-border-format.
Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and
simplified by me.
2016-04-29 15:00:48 +00:00
nicm
0d84fdd953
Final parts of command hooks, add before- and after- hooks to each command.
2016-04-29 14:05:24 +00:00
Thomas Adam
55fdaab365
Merge branch 'obsd-master'
2016-04-27 12:01:10 +01:00
nicm
1cedf78284
Add next/previous paragraph, from J Raynor.
2016-04-27 09:39:09 +00:00
Thomas Adam
ed598e9fe1
Merge branch 'obsd-master'
2016-03-18 08:01:18 +00:00
nicm
fa97b0a95b
Instead of reusing MouseUp at the finish of a drag, add a new key
...
MouseDragEnd. It can be useful to bind them separately in copy mode.
2016-03-18 07:28:27 +00:00
Thomas Adam
e304673c65
Merge branch 'obsd-master'
...
Conflicts:
utf8.c
2016-03-02 18:10:51 +00:00
nicm
c7851e0ee7
Fix break-pane synopsis and some other tmux.1 bits.
2016-03-01 11:58:45 +00:00
Thomas Adam
5fce21728e
Merge branch 'obsd-master'
2016-01-31 12:01:09 +00:00
nicm
8028560f82
Support negative trim values (#{=-10:pane_title}) to trim from the end,
...
suggested by Kevin Brubeck Unhammer.
2016-01-31 09:54:46 +00:00
Thomas Adam
8cf1504ba6
Merge branch 'obsd-master'
2016-01-29 12:01:16 +00:00
nicm
427b820426
Support for RGB colour, using the extended cell mechanism to avoid
...
wasting unnecessary space. The 'Tc' flag must be set in the external
TERM entry (using terminal-overrides or a custom terminfo entry), if not
tmux will map to the closest of the 256 or 16 colour palettes.
Mostly from Suraj N Kurapati, based on a diff originally by someone else.
2016-01-29 11:13:56 +00:00
Thomas Adam
dc42c35f1f
Merge branch 'obsd-master'
2016-01-19 18:01:15 +00:00
nicm
995af0e2b7
I no longer use my SourceForge address so replace it.
2016-01-19 15:59:12 +00:00
Thomas Adam
5d21faa99c
Merge branch 'obsd-master'
2016-01-16 02:01:10 +00:00
nicm
c9815307eb
Add hooks for alerts (bell, silence, activity), from Thomas Adam.
2016-01-16 00:36:53 +00:00
Thomas Adam
e0cae08c04
Merge branch 'obsd-master'
2015-12-17 00:01:08 +00:00
nicm
021c64310d
Add infrastructure to work out the best target given a pane or window
...
alone and use it to add pane_died and pane_exited hooks.
2015-12-16 21:50:37 +00:00
Thomas Adam
845a664bb2
Merge branch 'obsd-master'
2015-12-12 20:01:15 +00:00
nicm
5ed17e84fa
Add key-table option to set the default key table for a session, allows
...
different key bindings for different sessions and a few other things.
2015-12-12 18:32:24 +00:00
nicm
39cf9c9d31
Allow prefix and prefix2 to be set to None to disable (useful if you
...
would rather bind the prefix in the root table).
2015-12-12 18:19:00 +00:00
Thomas Adam
2a6b215328
Merge branch 'obsd-master'
2015-12-11 18:01:11 +00:00
nicm
f2be3ad46f
Mention {src,dst}-{window,pane} where we define target-{window,pane}.
2015-12-11 16:27:01 +00:00
Thomas Adam
4909a70174
Merge branch 'obsd-master'
2015-12-11 13:24:45 +00:00
nicm
01831da5f5
Add cmdq as an argument to format_create and add a format for the
...
command name (will also be used for more later).
2015-12-11 12:27:36 +00:00
Thomas Adam
3182728b70
Merge branch 'obsd-master'
2015-12-08 07:12:13 +00:00
Thomas Adam
5862f59ed7
Conflicts:
...
Makefile
2015-12-08 07:11:09 +00:00
jmc
1f94274b92
Ed was meant to be El;
2015-12-08 06:42:07 +00:00
nicm
d2fb0efcd1
Add hooks infrastructure, basic commands (set-hook, show-hooks) and a
...
couple of not very useful client hooks. This will eventually let
commands be run at various points and on notifications. Joint work with
Thomas Adam.
2015-12-08 01:10:31 +00:00
Nicholas Marriott
98994a8bb1
termios(4)
2015-12-08 00:49:10 +00:00
Nicholas Marriott
b580a55191
pty(7) -> pty(4)
2015-12-08 00:48:22 +00:00
Nicholas Marriott
ff16836d1d
pty is in section 4
2015-12-08 00:47:27 +00:00
Thomas Adam
742976893e
Merge branch 'obsd-master'
2015-11-29 18:01:08 +00:00
guenther
1d331c7e62
Delete a duplicated line
...
ok jmc@
2015-11-29 17:06:59 +00:00
Thomas Adam
890d8da2e3
Merge branch 'obsd-master'
...
Conflicts:
log.c
proc.c
tmux.c
2015-11-25 16:37:30 +00:00
nicm
62d3af17f9
Make environ_set va_args and use it to tidy up some calls. Also add a
...
missing word in manpage (from jmc).
2015-11-24 23:46:15 +00:00
nicm
c18fbefe93
Document socket_path format.
2015-11-24 22:27:59 +00:00
nicm
1e2df2d464
Remove the -I part of show-messages which isn't really that useful; the
...
server start time can now be accessed with a new start_time format (use:
tmux display -p '#{t:start_time}')
2015-11-24 21:52:06 +00:00
nicm
4ec61bef46
Fix usage of detach-client.
2015-11-24 20:40:51 +00:00
Thomas Adam
d63de1e407
Merge branch 'obsd-master'
...
Conflicts:
server.c
tmux.c
2015-11-23 21:20:54 +00:00
tim
4fcc02ee9d
If display-time is set to 0, show status messages until a key is pressed;
...
OK nicm@
2015-11-22 18:28:01 +00:00
Thomas Adam
7fe8edc396
Merge branch 'obsd-master'
2015-11-18 16:01:23 +00:00
nicm
5a5b950e8b
Add s/foo/bar/: prefix for formats to substitute bar for foo.
2015-11-18 14:13:55 +00:00
Thomas Adam
e2917b2627
Merge branch 'obsd-master'
2015-11-13 10:43:07 +00:00
nicm
531869bd92
Add window_visible_layout which ignores zoomed panes and use it for
...
control mode (which needs to know all panes), from George Nachman.
2015-11-13 10:00:26 +00:00
Thomas Adam
4f88344df3
Merge branch 'obsd-master'
2015-11-12 14:01:14 +00:00
jmc
1da7475d0e
tweak previous; ok nicm
2015-11-12 12:36:34 +00:00
Thomas Adam
5f483499f3
Merge branch 'obsd-master'
2015-11-12 12:01:17 +00:00
nicm
1b86f520ea
Nuke the utf8 and status-utf8 options and make tmux only a UTF-8
...
terminal. We still support non-UTF-8 terminals outside tmux, but inside
it is always UTF-8 (as when the utf8 and status-utf8 options were on).
2015-11-12 11:09:11 +00:00
nicm
a0f3999ce7
Remove the mouse_utf8_flag format as well.
2015-11-12 11:07:10 +00:00
Thomas Adam
f2e4aa8d1c
Merge branch 'obsd-master'
2015-11-12 00:01:10 +00:00
nicm
00c34df186
Drop mouse-utf8 option and always turn on UTF-8 mouse if the client says
...
it supports UTF-8.
2015-11-11 23:23:33 +00:00
Thomas Adam
da1f6fc2c8
Merge branch 'obsd-master'
...
Conflicts:
Makefile
client.c
server-client.c
server.c
tmux.c
tmux.h
2015-10-27 23:27:26 +00:00
nicm
67c3a014b9
No more TMPDIR.
2015-10-27 14:51:35 +00:00
Thomas Adam
e95df0bc39
Merge branch 'obsd-master'
2015-10-26 02:01:09 +00:00
jmc
c582f7d177
space before punctuation;
2015-10-26 00:15:37 +00:00
Thomas Adam
ca29903c82
Merge branch 'obsd-master'
2015-10-26 00:01:10 +00:00
nicm
e65306d8e7
Extend the modifiers allowed before formats: as well as the existing
...
#{=10:...} length limit, add #{t:...} to convert a time_t format to a
string, #{b:...} for basename and #{d:...} for dirname. Remove all the
foo_string time formats as they can now be replaced by "t:", for example
#{window_activity_string} becomes #{t:window_activity}.
2015-10-25 22:29:17 +00:00
Thomas Adam
4acc8d0ff5
Merge branch 'obsd-master'
...
Conflicts:
cmd-find.c
2015-10-25 09:21:37 +00:00
nicm
14da999408
Format for scroll position, from Jorge Morante.
2015-10-23 16:02:21 +00:00
Thomas Adam
0bfa615997
Merge branch 'obsd-master'
2015-10-21 16:01:08 +01:00
nicm
60ca29df64
client_key_table was missing.
2015-10-21 13:14:36 +00:00
Thomas Adam
74b958ecbe
Merge branch 'obsd-master'
...
Conflicts:
Makefile
2015-09-14 12:42:19 +01:00
nicm
901c2eb20a
Add copy-mode -e to exit copy mode when scrolling off the bottom, useful
...
for quick view of history, from Cam Hutchison.
2015-09-13 13:31:40 +00:00
Thomas Adam
1fd756066c
Merge branch 'obsd-master'
2015-09-10 12:01:08 +01:00
nicm
cfabe30bec
Add session_last_attached time and format, from Sina Siadat.
2015-09-10 08:58:14 +00:00
Thomas Adam
84eabb2658
Merge branch 'obsd-master'
2015-08-28 14:01:11 +01:00
nicm
675def0396
Remove the lock-server option which is a bit redundant, it isn't that
...
different without it.
2015-08-28 12:31:55 +00:00
Thomas Adam
6447404cc2
Merge branch 'obsd-master'
2015-08-12 12:01:09 +01:00
nicm
13b7fd82c1
Rename left/right/up/down relative to active pane to add -of suffix
...
(left-of/right-of/etc) to remove conflict with left/right meaning
leftmost or rightmost pane. From Ben Boeckel.
2015-08-12 08:55:20 +00:00
Thomas Adam
ff18787b2c
Merge branch 'obsd-master'
2015-07-27 10:01:08 +01:00
nicm
d33adc4fd0
Make -q suppress ambiguous option warnings too, from Cam Hutchison.
2015-07-27 08:45:45 +00:00
Thomas Adam
18a64ad52d
Merge branch 'obsd-master'
2015-07-20 18:01:10 +01:00
nicm
92af3766ec
Add an option (history-file) for a file to save/restore command prompt
...
history, from Olof-Joachim Frahm.
2015-07-20 15:50:04 +00:00
Thomas Adam
dedd9edf7f
Merge branch 'obsd-master'
2015-07-20 12:01:07 +01:00
nicm
d4ce210713
Correct the tsl/fsl sequence to ]0 not ]2 (from Marcel Korpel). While
...
here, Xr xterm and remove some advice about elinks that is better
elsewhere.
2015-07-20 10:34:11 +00:00
Thomas Adam
07aef38591
Merge branch 'obsd-master'
2015-07-13 18:01:09 +01:00
nicm
81069f66f9
Add a format to show if client is a control client. From Bruno Sutic.
2015-07-13 15:37:26 +00:00
Thomas Adam
38d4d69639
Merge branch 'obsd-master'
2015-07-13 16:01:09 +01:00
nicm
6308c48efd
Add a -s flag to show-environment to output Bourne shell commands a la
...
ssh-agent. Mostly from Cam Hutchison with some changes by me.
2015-07-13 13:36:29 +00:00
Thomas Adam
0ef3e28609
Merge branch 'obsd-master'
2015-06-19 02:01:10 +01:00
nicm
164ba041c9
Remove a stray : and tweak paragraph.
2015-06-18 23:53:56 +00:00
Thomas Adam
86018a3947
Merge branch 'obsd-master'
2015-06-17 22:01:13 +01:00
nicm
85120b37ea
Change break-pane to take target and source panes (-t and -s) in line
...
with other commands, from Thomas Adam.
2015-06-17 19:56:08 +00:00
Thomas Adam
21a2ccc5f1
Merge branch 'obsd-master'
2015-06-17 20:01:12 +01:00
nicm
0ff335961e
Move the shuffle code from new-window -a into a function and add a -a
...
flag for move-window too. From Thomas Adam.
2015-06-17 16:50:28 +00:00
Thomas Adam
9fdc3a069a
Merge branch 'obsd-master'
2015-06-15 14:01:09 +01:00
nicm
d96ab34019
Add window_activity format, from Thomas Adam based on a diff originally
...
from propos6 at gmail dot com.
2015-06-15 10:58:01 +00:00
Thomas Adam
37005d04a9
Merge branch 'obsd-master'
2015-06-14 12:01:10 +01:00
nicm
29c29e7717
Add a format for client PID (client_pid) and server PID (pid). Diff for
...
client_pid from Thomas Adam.
2015-06-14 10:07:44 +00:00
Thomas Adam
7acc4addb5
Merge branch 'obsd-master'
...
Conflicts:
client.c
tmux.1
tmux.c
2015-06-07 23:42:25 +01:00
nicm
c4e811e519
Add -E flag when attaching or switching client to bypass
...
update-environment, from Steven Lu.
2015-06-07 21:39:39 +00:00
nicm
4219939c10
Make it so that if a window or session target is prefixed with an =,
...
only an exact name or index match is accepted, no special character,
prefix match, or fnmatch.
2015-06-05 08:14:16 +00:00
jmc
dc0d34e137
tweak SYNOPSIS and usage();
2015-06-04 20:34:22 +00:00
Thomas Adam
83a70172a4
Merge branch 'obsd-master'
2015-06-04 16:01:07 +01:00
nicm
4a6c06d6a9
Make unsetting a global option restore it to the default. Diff lying
...
around for a while, I have forgotten who suggested it :-/.
2015-06-04 14:29:33 +00:00
Thomas Adam
02e348c069
Merge branch 'obsd-master'
2015-06-04 12:59:41 +01:00
nicm
a863834574
Add support for a single "marked pane". There is one marked pane in the
...
server at a time; it may be toggled or cleared with select-pane -m and
-M (the border is highlighted). A new target '~' or '{marked}' specifies
the marked pane to commands and it is the default target for the
swap-pane and join-pane -s flag (this makes them much simpler to use -
mark the source pane and then change to the target pane to run swapp or
joinp).
2015-06-04 11:43:51 +00:00
Nicholas Marriott
09bcbc57da
$Id$ -> $OpenBSD$.
2015-06-03 18:28:26 +01:00
Thomas Adam
beffdf6575
Merge branch 'obsd-master'
2015-05-27 16:01:22 +01:00
nicm
379400cfa6
Move the jobs output cache into the formats code so that #() work more
...
generally (for example, again working in set-titles-string).
2015-05-27 13:28:04 +00:00
Thomas Adam
00471dc783
Merge branch 'obsd-master'
2015-05-13 09:44:11 +01:00
nicm
ec34439f9c
Add a session_alerts format which is a list of all the alerts in the
...
current session in symbolic form (something like "0!,4~,5!"). Use this
in the default set-titles-string. Prompted by a request from Jan ONDREJ.
2015-05-12 15:29:29 +00:00
nicm
e958db09a7
Add bell-action "other" to pass through bells in all windows except the
...
current, suggested by Jan ONDREJ.
2015-05-12 15:27:46 +00:00
nicm
44364d7112
Remove the c0-* options which never really worked satisfactorily. Going
...
to try something else...
2015-05-11 10:10:16 +00:00
Thomas Adam
504b97b6a4
Merge branch 'obsd-master'
...
Conflicts:
tmux.h
2015-05-09 12:52:38 +01:00
nicm
c4a4bd6ac5
Move input parser structs into input.c (removing fairly useless
...
saved_cursor_[xy] formats as a side-effect).
2015-05-08 16:18:04 +00:00
Thomas Adam
f10d3675f8
Merge branch 'obsd-master'
2015-05-06 10:03:52 +01:00
nicm
31b1ab4852
Add a format window_linked which is 1 if a window has been linked
...
multiple times, also remove the default space in window_flags and use a
conditional to add it in window-status-format (this means additional
flags can be added in the option without extra spaces). From Thomas Adam
with tweaks by me.
2015-05-06 08:35:39 +00:00
Thomas Adam
c0cf4843e5
Merge branch 'obsd-master'
2015-04-29 18:42:12 +01:00
nicm
7382ba82c5
If default-terminal is set to "screen" or "screen-*", emulate screen's
...
historical (incorrect) behaviour for SGR 3 and send smso
(standout). Previously, we would send sitm (italics) if the terminal
outside had it and smso otherwise. This was acceptably until recently
because xterm's terminfo entry lacked sitm, so most users got smso.
People who want italics should set default-terminal to the forthcoming
"tmux" entry (and be prepared to deal with it being missing on older
hosts).
As a side-effect this changes default-terminal to be a server rather
than a session option.
suggested by and ok naddy
2015-04-29 15:59:08 +00:00
Thomas Adam
dc2adc6bc1
Merge branch 'obsd-master'
2015-04-28 14:57:15 +01:00
nicm
771744426e
Add select-layout -o to undo the last layout change (apply the previously
...
set layout).
2015-04-28 10:43:13 +00:00
Thomas Adam
94a8ef1cae
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tmux.1
2015-04-27 21:21:55 +01:00
nicm
95195f5258
Rewrite of the target resolution internals to be simpler and more
...
consistent but with much less duplication, but keeping the same internal
API. Also adds more readable aliases for some of the special tokens used
in targets (eg "{start}" instead of "^"). Some behaviours may have
changed, for example prefix matches now happen before fnmatch.
2015-04-27 16:25:57 +00:00
Thomas Adam
0a88377086
Merge branch 'obsd-master'
2015-04-22 10:05:54 +01:00
nicm
93b2871cab
Do not die on USR1 if any of the socket parent directories are
...
missing. Reported by Robin Powell.
2015-04-21 22:32:40 +00:00
nicm
bded743706
Support for multiple key tables to commands to be bound to sequences of
...
keys. The default key bindings become the "prefix" table and -n the
"root" table. Keys may be bound in new tables with bind -T and
switch-client -T used to specify the table in which the next key should
be looked up. Based on a diff from Keith Amling.
2015-04-20 15:34:56 +00:00
Thomas Adam
b25dc423b0
Merge branch 'obsd-master'
2015-04-20 15:44:27 +01:00
jmc
8101f1ef16
tweak previous;
2015-04-19 22:10:30 +00:00
nicm
bf635e7741
Rewrite of tmux mouse support which was a mess. Instead of having
...
options for "mouse-this" and "mouse-that", mouse events may be bound as
keys and there is one option "mouse" that turns on mouse support
entirely (set -g mouse on).
See the new MOUSE SUPPORT section of the man page for description of the
key names and new flags (-t= to specify the pane or window under mouse
as a target, and send-keys -M to pass through a mouse event).
The default builtin bindings for the mouse are:
bind -n MouseDown1Pane select-pane -t=; send-keys -M
bind -n MouseDown1Status select-window -t=
bind -n MouseDrag1Pane copy-mode -M
bind -n MouseDrag1Border resize-pane -M
To get the effect of turning mode-mouse off, do:
unbind -n MouseDrag1Pane
unbind -temacs-copy MouseDrag1Pane
The old mouse options are now gone, set-option -q may be used to
suppress warnings if mixing configuration files.
2015-04-19 21:34:21 +00:00
nicm
ee123c2489
Support setting the default window and pane background colours (window
...
and active pane via window-style and window-active-style options, an
individual pane by a new select-pane -P flag). From J Raynor.
2015-04-19 21:05:27 +00:00
Thomas Adam
370cf75458
Merge branch 'obsd-master'
2015-04-19 14:44:56 +01:00
nicm
0cd55eb1e7
Add a -x flag to copy-selection, append-selection and start-named-buffer
...
to prevent it exiting copy mode after copying. From J Raynor with a few
tweaks by me.
2015-04-10 16:00:08 +00:00
nicm
009a5e4213
in the case -> in this case.
2015-04-10 07:23:14 +00:00
nicm
3aa72b42b2
Add a helper function to convert time, and add session_activity formats
...
(the latter from Takatoshi Matsumoto).
2015-03-31 17:58:36 +00:00
nicm
cd9ccbc1e9
set-titles-string now uses formats, not the status bits (so no #() for
...
now). Reported by landry.
2015-03-11 08:17:37 +00:00
Thomas Adam
833fe5bdee
Merge branch 'obsd-master'
...
Conflicts:
cmd-pipe-pane.c
2015-02-06 19:07:43 +00:00
nicm
83a8e1fd20
Move pane border options to window options rather than session, from Marc Finet.
2015-02-06 15:09:34 +00:00
Thomas Adam
da72a0b7a8
Merge branch 'obsd-master'
2015-01-10 21:38:50 +00:00
nicm
be0ad01b7c
Add missing default bindings, from Theo Buehler.
2015-01-06 09:12:02 +00:00
Thomas Adam
5f8138faf5
Merge branch 'obsd-master'
...
Conflicts:
format.c
2014-12-19 19:22:19 +00:00
nicm
7a0c94b28a
Add pane_dead_status for exit status of dead panes.
2014-12-09 19:23:35 +00:00
Thomas Adam
ccbe2545d9
Merge branch 'obsd-master'
2014-12-03 08:41:08 +00:00
nicm
54ca7b230d
Add -F to if-shell to allow it to be used to check for format or option
...
values rather than executing a command.
2014-12-02 23:39:02 +00:00
nicm
575fd1e322
Permit option values to be used in formats.
2014-12-02 23:19:45 +00:00
Thomas Adam
3e8efcc555
Merge branch 'obsd-master'
2014-11-19 09:22:03 +00:00
nicm
d37f266524
Add -b to splitw like joinw, from Felix Rosencrantz.
2014-11-12 22:57:06 +00:00
Thomas Adam
fc05bf255a
Merge branch 'obsd-master'
2014-11-09 00:15:51 +00:00
nicm
3c12b477d3
V should be vi not emacs, also sort. From Theo Buehler.
2014-11-07 12:28:28 +00:00
nicm
e4bf1e5128
Add V for select line with vi(1) keys. From Juho Pohjala.
2014-11-06 09:17:25 +00:00
nicm
d24c9d7d3e
Do not put a space between status-left/status-right and the window list,
...
instead move the space into the defaults for the options (so status-left
now defaults to "[#S] ". From Balazs Kezes.
2014-11-05 23:15:11 +00:00
Thomas Adam
35ffd093d7
Merge branch 'obsd-master'
...
Conflicts:
Makefile
cmd-link-window.c
cmd-unlink-window.c
2014-10-29 12:51:21 +00:00
nicm
428b51e031
Add pane_input_off format, from Anish R Athalye.
2014-10-25 08:47:04 +00:00
Thomas Adam
562af864bd
Merge branch 'obsd-master'
...
Conflicts:
Makefile
cmd-list-commands.c
cmd-suspend-client.c
job.c
tmux.h
xmalloc.c
2014-10-21 07:11:44 +01:00
nicm
f0b69c7711
Fix description of Ss and Se.
2014-10-18 20:28:19 +00:00
nicm
6610e89689
Top function key is F12 now.
2014-10-02 14:21:06 +00:00
nicm
304f86cdbb
Support ! for last pane.
2014-09-25 12:45:35 +00:00
Thomas Adam
2874a431c0
Merge branch 'obsd-master'
2014-09-25 11:29:54 +01:00
nicm
9bda7e881a
Add window_last_flag and window_zoomed_flag. From John Morrissey.
2014-09-08 14:29:05 +00:00
nicm
8a473b5757
Fix typo (paneas -> panes).
2014-09-01 22:00:42 +00:00
nicm
f518a077b1
Add flags to selectp to enable and disable input to a pane, from Anish
...
Athalye.
2014-08-11 22:14:30 +00:00
Thomas Adam
814e40522c
Merge branch 'obsd-master'
2014-06-20 12:59:43 +01:00
nicm
c8efffb4db
Make -S- and -E- mean the start and end to capture-pane to avoid having
...
to faff around with huge numbers to get everything.
2014-06-20 10:46:59 +00:00
nicm
7160b8c2d5
Add some formats for pane bounds.
2014-05-27 12:49:36 +00:00
nicm
191f695bad
Change key-table to mode-table to allow for some future work. From Keith
...
Amling.
2014-05-14 06:45:35 +00:00
Thomas Adam
bae95844d7
Merge branch 'obsd-master'
...
Conflicts:
format.c
window.c
2014-05-13 21:58:48 +01:00
nicm
b3e8d440ed
If multiple arguments are given to new-session, new-window,
...
split-window, respawn-window or respawn-pane, pass them directly to
execvp() to help avoid quoting problems. One argument still goes to "sh
-c" like before. Requested by many over the years. Patch from J Raynor.
2014-05-13 08:08:32 +00:00
nicm
b1a06ef22e
Add a copy mode key binding to copy to a named buffer. From J Raynor.
2014-05-13 07:54:20 +00:00
nicm
3dbacbb62b
Add support for named buffers. If you don't name a buffer, things work
...
much as before - buffers are automatically named "buffer0000",
"buffer0001" and so on and ordered as a stack. Buffers can be named
explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b
buffer0000 -n foo"). If buffers are named explicitly, they are not
deleted when buffer-limit is reached. Diff from J Raynor.
2014-05-13 07:34:35 +00:00
Thomas Adam
953c3ef47a
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tmux.1
window.c
2014-04-23 11:26:11 +01:00
nicm
64613b9d41
#nnT went away a while ago, remove a leftover from the manpage.
2014-04-17 15:48:02 +00:00
nicm
2740490e27
Remove the "info" message mechanism, this was only used for about five
...
mostly useless and annoying messages. Change those commands to silence
on success like all the others. Still accept the -q command line flag
and "quiet" server option for now.
2014-04-17 07:55:43 +00:00
nicm
877bdb46ed
Extend the -q flag to set-option to suppress errors about unknown
...
options - this will allow options to be removed more easily.
2014-04-17 07:51:38 +00:00
nicm
992ef70fb6
Remove the monitor-content option and associated bits and bobs. It's
...
never worked very well. If there is a big demand for it to return, will
consider better ways to do it.
2014-04-17 07:36:45 +00:00
nicm
14a96df9ee
Remove the choose-list command to prepare for some later choose-* work.
2014-04-16 21:02:41 +00:00
Thomas Adam
0c99c7dbff
Merge branch 'obsd-master'
...
Conflicts:
Makefile
tty-keys.c
2014-04-05 12:36:14 +01:00
nicm
252a7373d6
Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also make
...
buffer_sample bigger to let it trim at window right edge.
2014-04-02 18:12:18 +00:00
nicm
b52b40b2bc
pane_start_path has gone away.
2014-04-02 07:55:09 +00:00
nicm
dca7d1c0fd
Make message-limit a server option.
2014-03-31 21:41:35 +00:00
nicm
0e4d1d8493
Add setb -a to append and a copy mode append command, from J Raynor with
...
minor changes.
2014-03-31 21:39:31 +00:00
nicm
b11de5adc7
Make session_attached a count and add session_many_attached flag.
2014-03-31 21:37:55 +00:00
Nicholas Marriott
683ca270d4
Make message-limit a server option.
2014-03-07 15:37:01 +00:00
Nicholas Marriott
8c0edcbfa3
Add setb -a to append and a copy mode append command, from J Raynor with minor
...
changes.
2014-03-06 11:50:07 +00:00
Nicholas Marriott
b7f6356053
Make session_attached a count and add session_many_attached flag.
2014-03-06 11:25:27 +00:00
nicm
f1828921df
Change terminal-overrides to a server option (now that we have them), it
...
doesn't make much sense as a session option.
2014-02-23 00:53:06 +00:00
Thomas Adam
b7589750a1
Correct Linux-specific manpage sections
...
Some of the man page locations on Linux differ to those on *BSD. Noticed by
Christopher Meng.
2014-02-21 09:27:28 +00:00
Thomas Adam
b3de4a3dec
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
tmux.c
2014-02-16 23:02:07 +00:00
nicm
81db6bab91
Leftovers from removing 88 colour support, from Theo Buehler.
2014-02-16 12:45:17 +00:00
Thomas Adam
1721056f35
Remove references to 88colour support
...
Tmux doesn't directly support terminals with 88 colours directly anymore.
2014-02-05 10:51:25 +00:00
jmc
973de5a704
fix some minor formatting glitches;
2014-02-02 08:48:48 +00:00
Thomas Adam
d50e47fc4a
Merge branch 'obsd-master'
...
Conflicts:
Makefile
cmd-server-info.c
cmd-start-server.c
2014-01-31 21:39:56 +00:00
nicm
945339b443
Allow replacing each of the many sets of separate foo-{fg,bg,attr}
...
options with a single foo-style option. For example:
set -g status-fg yellow
set -g status-bg red
set -g status-attr blink
Becomes:
set -g status-style fg=yellow,bg=red,blink
The -a flag to set can be used to add to rather than replace a style. So:
set -g status-bg red
Becomes:
set -ag status-style bg=red
Currently this is fully backwards compatible (all *-{fg,bg,attr} options
remain) but the plan is to deprecate them over time.
From Tiago Cunha.
2014-01-28 23:07:09 +00:00
nicm
d23561f381
Merge server-info into show-messages and remove some not useful output.
2014-01-22 14:43:42 +00:00
nicm
1286c56188
Replace ## by # in format.
2013-11-24 11:29:09 +00:00
Thomas Adam
3e498cdb49
Merge branch 'obsd-master'
2013-11-14 07:51:26 +00:00
nicm
7fa55b0419
Key to swap to other end of selection (bound to o with vi keys), from J
...
Raynor.
2013-10-23 11:31:03 +00:00
Nicholas Marriott
8bcdd8fc21
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
cmd-split-window.c
cmd-unbind-key.c
format.c
osdep-openbsd.c
2013-10-11 16:52:39 +01:00
Thomas
7f479ffdce
Merge branch 'obsd-master' into mtemp
2013-10-11 14:33:29 +01:00
nicm
17ec688ced
Bracket in the wrong place in description of c0-change-trigger.
2013-10-10 23:31:28 +00:00
nicm
d0566a474a
Remove the KERN_PROC_CWD the proc_current_path format (which is the only
...
thing that uses it now).
2013-10-10 12:39:24 +00:00
nicm
282c5f9644
Alter how tmux handles the working directory to internally use file
...
descriptors rather than strings.
- Each session still has a current working directory.
- New sessions still get their working directory from the client that
created them or its attached session if any.
- New windows are created by default in the session working directory.
- The -c flag to new, neww, splitw allows the working directory to be
overridden.
- The -c flag to attach let's the session working directory be changed.
- The default-path option has been removed.
To get the equivalent to default-path '.', do:
bind c neww -c $PWD
To get the equivalent of default-path '~', do:
bind c neww -c ~
This also changes the client identify protocol to be a set of messages rather
than one as well as some other changes that should make it easier to make
backwards-compatible protocol changes in future.
2013-10-10 12:26:34 +00:00
nicm
b822d24b15
Support -c for new-session, based on code from J Raynor.
2013-10-10 12:07:36 +00:00
nicm
40811eb8d4
Add length limit operator for formats.
2013-10-10 11:50:20 +00:00
nicm
d75dd2ab1c
Add formats for window flags.
2013-10-10 11:47:52 +00:00
Nicholas Marriott
4538c269d0
Alter how tmux handles the working directory to internally use file descriptors
...
rather than strings.
- Each session still has a current working directory.
- New sessions still get their working directory from the client that created
them or its attached session if any.
- New windows are created by default in the session working directory.
- The -c flag to new, neww, splitw allows the working directory to be
overridden.
- The -c flag to attach let's the session working directory be changed.
- The default-path option has been removed.
To get the equivalent to default-path '.', do:
bind c neww -c $PWD
To get the equivalent of default-path '', do:
bind c neww -c '#{pane_current_path}'
The equivalent of default-path '~' is left as an exercise for the reader.
This also changes the client identify protocol to be a set of messages rather
than one as well as some other changes that should make it easier to make
backwards-compatible protocol changes in future.
2013-10-06 21:02:23 +01:00
nicm
7c71c3e27d
Change the default for the default-path option to ~. This is a quick
...
change to turn off the KERN_PROC_CWD code which is unpredictable. Later
it will go away and there may be other changes to how this works.
2013-10-05 13:56:48 +00:00
Nicholas Marriott
13360ad541
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
2013-10-01 23:50:24 +01:00
Nicholas Marriott
9389cfbec9
Support -c for new-session, based on code from J Raynor.
2013-10-01 23:48:03 +01:00
Tiago Cunha
75ec17f0b5
Mark flags as optional and mutually exclusive.
2013-08-31 11:16:47 +01:00
Nicholas Marriott
a0802dd486
A couple of manpage fixes from Tiago Cunha.
2013-08-22 00:32:55 +01:00
Nicholas Marriott
23519fc0b4
Add automatic-rename-format option allowing automatic rename to use something
...
other than pane_current_command.
2013-08-19 22:16:11 +01:00
Nicholas Marriott
84c22d053b
Add length limit operator for formats.
2013-08-03 21:06:38 +01:00
Nicholas Marriott
bcd9bcae2a
Add formats for window flags.
2013-08-01 23:41:39 +01:00
schwarze
304ea079d2
use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@
2013-07-16 00:07:52 +00:00
Thomas Adam
bdea2f9eda
Merge branch 'obsd-master'
2013-07-06 11:18:49 +01:00
Nicholas Marriott
f5b041e394
Add pane_synchronized format, from Romain Francoise.
2013-07-05 15:27:14 +00:00
Nicholas Marriott
c7a121cfc0
Focus events can cause trouble if left on and they can't be turned off
...
during idle periods (like the other states are) because we'd miss
events. So add a server option to control them. Defaults to off.
2013-06-28 20:55:16 +01:00
Nicholas Marriott
3977dba761
Focus events can cause trouble if left on and they can't be turned off
...
during idle periods (like the other states are) because we'd miss
events. So add a server option to control them. Defaults to off.
2013-06-23 13:10:46 +00:00
Thomas Adam
06b5805479
Merge branch 'obsd-master'
2013-06-13 18:12:49 +01:00
Jason McIntyre
ddb52a2b15
escape "Ss", becuase groff thinks it has found a macro;
2013-06-02 14:40:17 +00:00
Nicholas Marriott
13441e8cb8
The actual terminfo entries we ended up with for cursor changes are Cs,
...
Ce, Ss and Se (not Cc, Ce, Cs, Csr). So use and document these instead
of the ones we were using earlier.
2013-06-02 07:52:15 +00:00
Thomas Adam
399d7380a5
Merge branch 'obsd-master'
2013-05-31 21:44:42 +01:00
Nicholas Marriott
c231381aa3
Demote the old single-character replacement variables (#S and friends)
...
to aliases of formats. From Tiago Cunha.
2013-05-31 19:56:05 +00:00
Nicholas Marriott
c30d60f7ae
Add host_short format, from Tiago Cunha.
2013-05-31 19:46:42 +00:00
Thomas Adam
76cb088d16
Merge branch 'obsd-master'
...
Conflicts:
tmux.h
2013-05-25 11:48:12 +01:00
Nicholas Marriott
907ad00300
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
...
Conflicts:
Makefile.am
2013-05-15 16:50:15 +01:00
Nicholas Marriott
5b1cf02f2e
Rename tmux.1.in back to tmux.1 and generate tmux.1.{mdoc,man} instead.
2013-05-15 16:27:30 +01:00
Nicholas Marriott
2555ac58cc
.Op Fl b not .Fl b for run-shell synopsis, from Ben Boeckel.
2013-04-24 10:15:47 +00:00
Nicholas Marriott
c24b58e2ee
Generate tmux.1 using mdoc2man.awk on Solaris, issue brought up and changes
...
tested by Dagobert Michelsen.
2013-04-16 11:33:53 +01:00
Thomas Adam
b58bca9a72
Merge branch 'obsd-master'
...
Conflicts:
tmux.c
2013-04-13 17:05:49 +01:00
Nicholas Marriott
20f0d917be
Missed -o from set-window-option, from Ben Boeckel.
2013-04-10 12:07:18 +00:00
Nicholas Marriott
7f63658709
Add TMUX_TMPDIR variable to put the socket directory outside
...
TMPDIR. From Ben Boeckel.
2013-03-27 11:24:18 +00:00
Thomas
00af2df102
Merge branch 'obsd-master'
2013-03-25 16:30:37 +00:00
Nicholas Marriott
e44bd9f750
Revert the command-prefix change which breaks sequences of commands.
2013-03-25 15:59:57 +00:00
Nicholas Marriott
e97e0d7e54
Man page fixes.
2013-03-25 11:49:54 +00:00
Nicholas Marriott
4119c476aa
b comes before t.
2013-03-25 11:46:28 +00:00
Nicholas Marriott
6fee3e9e4b
Rename session idx to session id throughout and add $ prefix to targets
...
to use it, extended from a diff from George Nachman.
2013-03-25 10:11:45 +00:00
Nicholas Marriott
748acdc77c
Add wait-for -L and -U for lock and unlock, from Thiago Padilha.
2013-03-25 10:09:35 +00:00
Nicholas Marriott
14fad6a5cc
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-03-24 09:58:40 +00:00
Nicholas Marriott
a05b8c4143
Add a -o option to set-option to prevent setting an option already set,
...
from Thiago Padilha.
2013-03-24 09:55:02 +00:00
Nicholas Marriott
66edb3392b
Expand format variables in the run-shell and if-shell shell commands,
...
from Thiago Padilha.
2013-03-24 09:33:35 +00:00
Nicholas Marriott
ac1fe83596
Couple of fixes pointed out by jmc.
2013-03-22 18:45:36 +00:00
Nicholas Marriott
7f191c7951
Add -P and -F to new-session.
2013-03-22 17:01:15 +00:00
Nicholas Marriott
702ab8bab0
Add a load of miscellaneous pane formats, from George Nachman.
2013-03-22 16:03:35 +00:00
Nicholas Marriott
8478895eeb
Add -e flag to capture-pane to include embedded ANSI SGR escape
...
sequences, from George Nachman.
2013-03-22 15:51:54 +00:00
Nicholas Marriott
f0efa576e0
Add resize-pane -x and -y for absolute pane size (much requested).
2013-03-22 10:37:39 +00:00
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
Tiago Cunha
e4eb43ec71
Sync OpenBSD patchset 1066:
...
Add a wrap-search option to turn off wrapping of searches in copy
mode. From Jacobo de Vera.
2012-03-18 02:12:24 +00:00
Tiago Cunha
68ba5377e3
Sync OpenBSD patchset 1063:
...
Add -q option to set-option to turn off info message, from marcel partap.
2012-03-18 02:09:51 +00:00
Tiago Cunha
3893cc17a4
Sync OpenBSD patchset 1049:
...
Add -P/-F flags to break-pane too, from George Nachman.
2012-03-18 01:38:27 +00:00
Nicholas Marriott
95f48a219a
Add a wrap-search option to turn off wrapping of searches in copy
...
mode. From Jacobo de Vera.
2012-03-17 21:40:53 +00:00
Nicholas Marriott
f152379e5a
Add -q option to set-option to turn off info message, from marcel partap.
2012-03-17 21:33:33 +00:00
Nicholas Marriott
4e05a2c0ae
Add -P/-F flags to break-pane too, from George Nachman.
2012-03-12 13:31:09 +00:00
Tiago Cunha
3d98adaf91
Sync OpenBSD patchset 1041:
...
Add -F format to new-window and split-window to use with the -P flag,
from George Nachman.
2012-03-07 13:39:29 +00:00
Tiago Cunha
3275e9bd5b
Sync OpenBSD patchset 1037:
...
Support "bracketed paste" mode. This adds a -p flag to paste-buffer - if
this is used and the application has requested bracketed pastes, then
tmux surrounds the pasted text by \033[200~ and \033[201~. Applications
like vim can (apparently) use this to avoid, for example, indenting the
text. From Ailin Nemui.
2012-03-07 13:36:19 +00:00
Nicholas Marriott
03dca66ae2
Add -F format to new-window and split-window to use with the -P flag,
...
from George Nachman.
2012-03-04 20:50:53 +00:00