e0d49ad758
Allow ispunct() as well as isalnum() when parsing initial window names.
2017-07-21 12:58:02 +00:00
11e2af6df7
Add -c for respawn-pane and respawn-window, from J Raynor.
2017-07-21 09:17:19 +00:00
932f6cfbfc
Because ignore SIGCHLD early, letting signal_del restore it doesn't work
...
correctly, so set it explicitly back to default (and the others for good
measure).
2017-07-14 18:49:07 +00:00
2678fe53f5
Fix redraw defer code in the presence of multiple clients - the timer
...
may be needed for all of them, so don't delete it on the first; and
don't skip setting the redraw flag if the timer is already running.
Reported by Pol Van Aubel in GitHub issue 1003.
2017-07-14 08:04:23 +00:00
8b84fc177c
Line up keys in tree mode, and don't expand windows with one pane. From
...
Thomas Adam.
2017-07-12 14:31:06 +00:00
fba6140a4a
Do not need to set up USR2 twice.
2017-07-12 12:35:31 +00:00
51112221ee
Block signals between forking and clearing signal handlers (or calling
...
event_reinit) - if the child gets a signal and fires the libevent signal
handler during this period it could write a signal into the parent's
signal pipe. GitHub issue 1001 from Aaron van Geffen.
2017-07-12 10:04:51 +00:00
0453ad0146
Move signal code into proc.c.
2017-07-12 09:24:17 +00:00
ed3cfaafb2
Make shell_command a global like other stuff rather than making it an
...
exception and using callback argument.
2017-07-12 09:21:25 +00:00
d0d42dc4cb
proc_send_s now seems unnecessary.
2017-07-12 09:07:52 +00:00
58b796608f
Some extra logging to show why tmux might exit.
2017-07-09 22:33:09 +00:00
bfaa885f10
Fix size of rightmost preview section.
2017-07-07 16:27:26 +00:00
9913cce3ba
Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990.
2017-07-07 14:39:45 +00:00
1f7ca973c5
When working out the current client (for example for switch-client with
...
no target), prefer clients attached to the current session if there is
one. GitHub issue 995 from Jan Larres.
2017-07-07 07:13:14 +00:00
53d4ed22e8
< and > keys to scroll preview list left and right in tree mode.
2017-07-04 22:21:31 +00:00
bedf8bd437
Handle 0 size of preview box in caller.
2017-07-04 12:26:14 +00:00
4039802fce
Change session and window preview so that the current window or pane is
...
always shown.
2017-07-03 22:48:02 +00:00
6ee0afb579
Change previous to not wait for both process exit and pty close -
...
instead if there is a pipe-pane active, do not exit until all data is
read (including any libevent hasn't seen yet). Fixes problem reported by
Theo Buehler and still seems to solve the original issue.
2017-07-03 12:38:50 +00:00
28687f2d55
Do not close panes until process has exited and any outstanding data
...
has been written to the pipe-pane event if there is one. GitHub issue 991.
2017-07-03 08:16:03 +00:00
42285ac989
Try C.UTF-8 which is also a commonly useful locale on some platforms,
...
from Romain Francoise.
2017-07-03 08:08:30 +00:00
fa677fc0e1
Don't write over right border.
2017-06-30 22:37:35 +00:00
b565644c81
Fix previous when we end up able to show no panes.
2017-06-30 22:36:11 +00:00
7247553c77
Try to show a better preview of sessions and windows in tree mode.
2017-06-30 22:24:08 +00:00
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
a00b0d13ed
Apply the xterm key flag when needed for send-keys, fixes problem
...
reported by Franky Spamschleuder.
2017-06-28 11:36:39 +00:00
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
95ed7d48c8
Add user-keys option to allow user-defined keys to be set, from Dan
...
Aloni.
2017-06-23 15:36:52 +00:00
a67df17763
Tweak some logging.
2017-06-16 15:12:38 +00:00
d685604d04
Log terminal capabilities for each new terminal.
2017-06-16 11:50:06 +00:00
af93453190
Don't overwrite error message when it is available in
...
cmd_string_parse. Reported by Jimi Damon in GitHub issue 975.
2017-06-14 07:42:41 +00:00
dec00d3579
Add missing error message when no target, GitHub issue 971.
2017-06-14 07:37:17 +00:00
ac7080b31b
Remove xterm flag from key before checking prefix, reported by Peter
...
Fern in GitHub issue 974.
2017-06-13 07:12:33 +00:00
e028ab3476
Need to flush out the linefeed after wrapper. GitHub issue 970.
2017-06-12 10:57:35 +00:00
8037159f93
Add explicit keys for the bracketed paste sequences, both to avoid mix
...
ups with other keys and to make logs clearer.
2017-06-12 07:04:24 +00:00
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
bab4da5133
Add -O option to choose-* to set initial sort order.
2017-06-09 15:29:15 +00:00
3ec28ceb9b
Default sort for buffer mode should be time not name.
2017-06-09 15:17:20 +00:00
a2ca51c27a
Use brackets around prompts which looks better and matches the other modes.
2017-06-09 14:00:46 +00:00
74b2deae1c
Add a hook when the clipboard is set.
2017-06-09 09:21:24 +00:00
8c4ae1c938
Add size to client descriptions in list, suggested by Greg Hurrell.
2017-06-08 07:48:04 +00:00
356fab7bcb
Return 1 if name matches not 0, also fix some spaces.
2017-06-07 15:27:46 +00:00
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
50b27c8c0d
Continue and pass keys through if they are repeated keys, so that the
...
first key after a repeated key doesn't get lost.
2017-06-06 15:49:35 +00:00
bbc35b0b19
Do not pass a state into commands when fired on individual items in tree
...
mode, rely on the %% target substitution in the command for the chosen
pane and leave the default target as the current pane (where the mode
is). Otherwise, joinp and similar end up with -t and -s the
same. Reported by Jacob Niehus in GitHub issue 960.
2017-06-06 15:07:35 +00:00
d7280917da
Delete input event when evbuffer_read() fails to avoid just spinning
...
around a dead file descriptor. Seems to fix a problem reported by Greg
Hurrell in GitHub issue 941.
2017-06-06 14:53:28 +00:00
2f04108f3a
Do not leak command, from David CARLIER.
2017-06-04 15:36:33 +00:00
c5b7faaefc
Add a timeout to prevent the sequences which wait for a specific
...
terminator (OSC, APC and DCS) waiting forever, which helps to avoid
garbage (cat /dev/random) locking up panes completely. This (and the
last commit) prompted by a discussion with theo.
2017-06-04 09:22:34 +00:00
467ece53e6
Remove unused variable.
2017-06-04 09:02:57 +00:00
8149bc3fa6
Be more strict about escape sequences that rename windows or set titles:
...
ignore any that not valid UTF-8 outright, and for good measure pass the
result through our UTF-8-aware vis(3).
2017-06-04 09:02:36 +00:00
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