Nicholas Marriott
7a6446ac17
Three changes to fix problems with xterm in VT340 mode, reported by Thomas
...
Sattler.
1) Do not include the DECSLRM or DECFRA features for xterm; they will be added
instead if secondary DA responds as VT420 (this happens already).
2) Set or reset the individual flags after terminal-overrides is applied, so
the user can properly disable them.
3) Add a capability for DECFRA ("Rect").
2021-04-22 09:01:22 +01:00
Nicholas Marriott
8363c6af2e
Add an "always" value to the extended-keys option to always forward these keys
...
to applications inside tmux.
2021-04-21 09:32:48 +01:00
Nicholas Marriott
6c2bf0e221
Minor CHANGES and tmux.1 fixed, from Daniel Hahler, GitHub issue 2664.
2021-04-20 06:37:01 +01:00
Thomas Adam
6f6b7f8261
Merge branch 'obsd-master' into master
2021-04-15 08:01:23 +01:00
nicm
33f9b08bbb
%begin now has three arguments, not two. GitHubs issue 2646.
2021-04-15 05:38:11 +00:00
Thomas Adam
bedf2bd437
Merge branch 'obsd-master' into master
2021-04-12 12:01:32 +01:00
nicm
e6abe55134
Add a flag to disable keys to close a message, GitHub issue 2625.
2021-04-12 09:36:12 +00:00
Thomas Adam
83cd593b9c
Merge branch 'obsd-master' into master
2021-04-12 10:01:27 +01:00
nicm
cd208c9d72
Permit shortcut keys in buffer, client, tree modes to be configured with
...
a format; the default remains the line number. GitHub issue 2636.
2021-04-12 06:50:25 +00:00
Thomas Adam
3cd63cc9e0
Merge branch 'obsd-master' into master
2021-04-07 16:01:21 +01:00
nicm
71fc9f3ee8
Add a current_file format for the config file being parsed. Originally
...
suggested by kn@, also GitHub issue 2638.
2021-04-07 12:50:12 +00:00
Thomas Adam
b307fc8cd5
Merge branch 'obsd-master' into master
2021-04-01 12:01:25 +01:00
nicm
6c98f222e9
Missing commas, from Vipul Kumar.
2021-04-01 06:37:46 +00:00
Thomas Adam
be568ea3b2
Merge branch 'obsd-master' into master
2021-03-16 10:01:20 +00:00
nicm
8b800b41c9
Add client-detached notification in control mode, from Mohsin Kaleem.
2021-03-16 09:14:58 +00:00
Thomas Adam
12cfd0d22b
Merge branch 'obsd-master' into master
2021-03-11 08:01:29 +00:00
nicm
3eb91efba1
Add an "absolute-centre" alignment to use the centre of the total space
...
instead of only the available space. From Magnus Gross in GitHub issue 2578.
2021-03-11 06:41:04 +00:00
nicm
d98f9f7fe5
Add split-window -Z to start the pane zoomed, GitHub issue 2591.
2021-03-11 06:31:05 +00:00
Thomas Adam
2301bee87d
Merge branch 'obsd-master' into master
2021-03-02 12:01:25 +00:00
nicm
c44750792a
Drop support for popups where the content is provided directly to tmux
...
(which does not have many practical uses) and only support running a
program in the popup. display-popup is now simpler and can accept
multiple arguments to avoid escaping problems (like the other commands).
2021-03-02 10:56:45 +00:00
Thomas Adam
48131c6d02
Merge branch 'obsd-master' into master
2021-03-01 20:01:20 +00:00
Thomas Adam
9d99dad9e8
Merge branch 'obsd-master' into master
2021-03-01 17:54:47 +00:00
jmc
de3a898e8a
escape quotes and remove some unneccessary Pp; ok nicm
2021-03-01 17:49:08 +00:00
nicm
b6dfb9996a
Add some text with examples of ; as a separator, GitHub issues 2522 and
...
2580.
2021-03-01 10:44:38 +00:00
Thomas Adam
9c6502fcc9
Merge branch 'obsd-master' into master
2021-02-26 10:01:22 +00:00
nicm
dd7006c850
Add a couple of format variables for active and last window index.
2021-02-26 07:53:26 +00:00
Thomas Adam
0cd5ed9e9b
Merge branch 'obsd-master' into master
2021-02-22 10:01:22 +00:00
nicm
6876381276
Move config file path expansion much earlier, keep the list of paths
...
around rather than freeing later, and add a config_files format variable
containing it. Suggested by kn@ a while back.
2021-02-22 08:18:13 +00:00
Thomas Adam
ce5de76592
Merge branch 'obsd-master' into master
2021-02-17 09:58:12 +00:00
nicm
6642706f7b
Support X11 colour names and some other variations for OSC 10/11, also
...
add OSC 110 and 111. GitHub issue 2567.
2021-02-15 09:39:37 +00:00
Thomas Adam
5b6d4c4fd1
Merge branch 'obsd-master' into master
2021-02-10 08:01:20 +00:00
nicm
32186950f5
Use ~/.tmux.conf as an example rather than /etc/passwd, suggested by
...
deraadt@.
2021-02-10 07:17:07 +00:00
Thomas Adam
8d7f341a85
Merge branch 'obsd-master' into master
2021-02-08 16:01:21 +00:00
nicm
e3005e5ec4
Add "pipe" variants of the "copy-pipe" commands which do not copy, from
...
Christian Zangl.
2021-02-08 14:46:53 +00:00
Thomas Adam
03430887be
Merge branch 'obsd-master' into master
2021-02-06 14:01:20 +00:00
nicm
1e29ebd412
In the end UTF-8 did not become a terminal feature, should not be listed
...
in man page.
2021-02-06 13:02:52 +00:00
Thomas Adam
39904f7fc6
Merge branch 'obsd-master' into master
2021-02-05 14:01:23 +00:00
nicm
3dddc11603
Send Unicode directional isolate characters around horizontal pane
...
borders if the terminal support UTF-8 and an extension terminfo(5)
capability "Bidi" is present. On terminals with BiDi support (ie, VTE)
this seems to be enough to display right-to-left text acceptably enough
to be usable (with some caveats about the mouse position). Requested by
and with help from Mahmoud Elagdar in GitHub issue 2425.
2021-02-05 12:29:18 +00:00
nicm
be471c328e
Add a -S flag to new-window to make it select the existing window if one
...
with the given name already exists rather than failing with an error.
Also add a format to check if a window or session name exists which
allows the same with other commands. Requested by and discussed with
kn@.
2021-02-05 12:23:49 +00:00
Thomas Adam
a5d69ab4b0
Merge branch 'obsd-master' into master
2021-02-02 08:01:19 +00:00
jmc
5c48086e5c
article fixes; from eddie youseph
2021-02-02 07:33:29 +00:00
Thomas Adam
0242513ce7
Merge branch 'obsd-master' into master
2021-02-01 10:01:20 +00:00
nicm
509221520c
Add a no-detached choice to detach-on-destroy which detaches only if
...
there are no other detached sessions to switch to, from Sencer Selcuk in
GitHub issue 2553.
2021-02-01 08:01:14 +00:00
Thomas Adam
545a610c6b
Merge branch 'obsd-master' into master
2021-01-29 12:01:21 +00:00
nicm
255802d8d7
Trim output overwritten by later text or clears completely rather than
...
only in a few cases. This means we can better track when a line should
wrap. GitHub issue 2537.
2021-01-29 09:48:43 +00:00
Thomas Adam
0898a868c6
Merge branch 'obsd-master' into master
2021-01-22 12:01:21 +00:00
nicm
bba71f696f
Add rectangle-on and rectangle-off copy mode commands, GitHub isse 2546
...
from author at will dot party.
2021-01-22 10:24:52 +00:00
Thomas Adam
9ff017e908
Merge branch 'obsd-master' into master
2021-01-20 08:01:22 +00:00
nicm
fb774b77d0
Change so that window_flags escapes # automatically which means configs
...
will not have to change. A new format window_raw_flags contains the old
unescaped version.
2021-01-20 07:16:54 +00:00
Thomas Adam
24c15eda79
Merge branch 'obsd-master' into master
2021-01-17 18:01:21 +00:00
nicm
71c590a37f
Add -N flag to never start server even if command would normally do so,
...
GitHub issue 2523.
2021-01-17 16:17:41 +00:00
Thomas Adam
5a2db4c7e8
Merge branch 'obsd-master' into master
2021-01-04 10:01:20 +00:00
nicm
bd0fb22f0a
Add a variant of remain-on-exit that only keeps the pane if the program
...
failed, GitHub issue 2513.
2021-01-04 08:43:16 +00:00
Thomas Adam
f04cc39976
Merge branch 'obsd-master' into master
2021-01-01 10:01:21 +00:00
nicm
606bd5f8c6
Add a -C flag to run-shell to use a tmux command rather than a shell command.
2021-01-01 08:36:51 +00:00
Thomas Adam
950e982001
Merge branch 'obsd-master' into master
2020-12-15 10:01:22 +00:00
nicm
8bd29a30bf
Make synchronize-panes a pane option and add -U flag to set-option to
...
unset an option on all panes. GitHub issue 2491 from Rostislav Nesin.
2020-12-15 08:31:50 +00:00
Thomas Adam
e288ea153c
Merge branch 'obsd-master' into master
2020-12-03 08:01:22 +00:00
nicm
fd451aa796
Redraw any visible modes when status line changes so that formats like
...
the pane title are updated. GitHub issue 2487. Also a man page fix from
jmc.
2020-12-03 07:12:11 +00:00
Thomas Adam
27634645e9
Merge branch 'obsd-master' into master
2020-12-01 10:01:22 +00:00
nicm
9a74bba007
Make replacement of ##s consistent when drawing formats, whether
...
followed by [ or not. Add a flag (e) to the q: format modifier to double
up #s and use it for the window_flags format variable so it doesn't end
up escaping any following text. GitHub issue 2485.
2020-12-01 08:12:58 +00:00
Thomas Adam
70a5207bd1
Merge branch 'obsd-master' into master
2020-11-30 16:01:22 +00:00
nicm
33046ecee2
Ignore running command when checking for no-hooks flag if it is blocked.
...
GitHub issue 2483.
2020-11-30 13:37:45 +00:00
Thomas Adam
82fbff4e08
Merge branch 'obsd-master' into master
2020-11-26 10:01:21 +00:00
nicm
76cfb5f471
Add -N flag to display-panes to ignore keys, GitHub issue 2473.
2020-11-26 09:19:10 +00:00
Thomas Adam
5ddbf0c918
Merge branch 'obsd-master'
2020-11-09 10:01:27 +00:00
nicm
61e55fa50d
Change how escaping is processed for formats so that ## and # can be
...
used in styles. Also add a 'w' format modifier for the width. From Chas
J Owens IV in GitHub issue 2389.
2020-11-09 09:10:10 +00:00
Thomas Adam
dac285c92a
Merge branch 'obsd-master'
2020-11-03 10:01:21 +00:00
nicm
9d83c5e948
Expand menu and popup -x and -y as a format, from teo_paul1 at yahoo dot
...
com in GitHub issue 2442.
2020-11-03 08:09:35 +00:00
Thomas Adam
ff53eed402
Merge branch 'obsd-master'
2020-11-02 10:01:20 +00:00
nicm
ac5045a00f
Add numeric comparisons for formats, from teo_paul1 at yahoo dot com in
...
GitHub issue 2442.
2020-11-02 08:21:30 +00:00
Thomas Adam
970e8f734c
Merge branch 'obsd-master'
2020-10-30 10:01:22 +00:00
nicm
649e5970e9
Add a -O flag to display-menu to change the mouse behaviour and not
...
close the menu when the mouse is released, from teo_paul1 at yahoo dot
com.
2020-10-30 08:55:56 +00:00
Thomas Adam
30601d11a8
Merge branch 'obsd-master'
2020-10-09 22:01:22 +01:00
tim
4dc76e084b
Escape ! in Ql
...
OK jmc@ nicm@, agreement from schwarze@
2020-10-09 19:12:36 +00:00
nicm
8d9ea1b97c
Trim "s from process names; also fix a default format in man page.
2020-10-05 11:04:40 +00:00
Thomas Adam
f5b7ebc540
Merge branch 'obsd-master'
2020-10-05 12:01:23 +01:00
nicm
c8f3736b07
Use the setal capability as well as (tmux's) Setulc.
2020-10-05 09:53:01 +00:00
Nicholas Marriott
9ec68db74f
Correct break-pane default format, from Gregory Pakosz.
2020-09-30 14:17:27 +01:00
Thomas Adam
dc0c3aa391
Merge branch 'obsd-master'
2020-09-22 18:01:18 +01:00
nicm
d6680b9474
Move a sentence to the right command.
2020-09-22 15:45:20 +00:00
Thomas Adam
eea85fb4c7
Merge branch 'obsd-master'
2020-09-16 22:01:18 +01:00
nicm
3206869ea5
Add -q flag to unbind-key to hide errors, GitHub issue 2381.
2020-09-16 19:12:59 +00:00
Thomas Adam
fc9ecdc665
Merge branch 'obsd-master'
2020-09-02 16:01:20 +01:00
nicm
37b1600d9c
Add a -w flag to set- and load-buffer to send to clipboard using OSC 52.
...
GitHub issue 2363.
2020-09-02 13:46:35 +00:00
Thomas Adam
a0fee328bf
Merge branch 'obsd-master'
2020-09-01 12:01:20 +01:00
nicm
60860aced8
Add -F to set-environment and source-file; GitHub issue 2359.
2020-09-01 09:19:01 +00:00
Thomas Adam
b895ffbf37
Merge branch 'obsd-master'
2020-08-27 10:01:20 +01:00
nicm
2ab289980a
Add pane_last format, GitHub issue 2353.
2020-08-27 06:55:54 +00:00
Thomas Adam
769ae10658
Merge branch 'obsd-master'
2020-08-20 20:01:19 +01:00
nicm
d0957529ed
Add n: modifier to get length of a format, also automatically expand
...
variable name arguments again if they contain a #{.
2020-08-20 16:57:40 +00:00
Thomas Adam
2fdd5fa507
Merge branch 'obsd-master'
2020-07-27 10:01:21 +01:00
nicm
40e65c5115
Add a -d option to display-message to set delay, from theonekeyg at
...
gmail dot com in GitHub issue 2322.
2020-07-27 08:03:10 +00:00
Thomas Adam
7d6723b5f7
Merge branch 'obsd-master'
2020-07-13 10:01:18 +01:00
nicm
f26b7b7788
Clarify /tmp permissions and use, GitHub issue 2300.
2020-07-13 07:04:17 +00:00
Thomas Adam
aa4f3a9b3d
Merge branch 'obsd-master'
2020-07-06 12:01:22 +01:00
nicm
66d5e5de7a
Add a way for control mode clients to subscribe to a format and be
...
notified of changes rather than having to poll. GitHub issue 2242.
2020-07-06 09:14:20 +00:00
Thomas Adam
0fa306d73c
Merge branch 'obsd-master'
2020-07-03 10:01:20 +01:00
nicm
43e1577b5d
Missing word, from annihilannic at hotmail dot com, GitHub issue 2288.
2020-07-03 07:07:50 +00:00
Thomas Adam
6c437d45ac
Merge branch 'obsd-master'
2020-06-18 12:01:22 +01:00
nicm
2372b0fdc6
Add a flag to make a client wait for an empty line before exiting in
...
control mode to avoid stray commands ending up in the shell.
2020-06-18 08:34:22 +00:00
Thomas Adam
eb448daa1a
Merge branch 'obsd-master'
2020-06-16 10:01:21 +01:00
nicm
1bf9555e4f
d and D keys to reset to default in customize mode.
2020-06-16 08:18:34 +00:00
Thomas Adam
824efe7be4
Merge branch 'obsd-master'
2020-06-13 12:01:20 +01:00
nicm
1c78155e70
Add -b flags to insert a window before (like the existing -a for after)
...
to break-pane, move-window, new-window. GitHub issue 2261.
2020-06-13 09:05:53 +00:00
Thomas Adam
bd3fb2fb10
Merge branch 'obsd-master'
2020-06-12 10:01:19 +01:00
nicm
4c3bdc5a36
move-pane also defaults to marked pane now, reported by Ben Challenor.
2020-06-12 07:52:38 +00:00
Thomas Adam
b5c86fdc0c
Merge branch 'obsd-master'
2020-06-11 22:01:23 +01:00
nicm
63c2ed1483
Add some formats for search in copy mode (search_present, search_match).
...
GitHub issue 2268.
2020-06-11 19:43:34 +00:00
Thomas Adam
e8c99496cd
Merge branch 'obsd-master'
2020-06-11 12:01:19 +01:00
nicm
50ee41423f
Add a -A option to pause a pane manually.
2020-06-11 09:55:47 +00:00
Thomas Adam
ea4425b9bd
Merge branch 'obsd-master'
2020-06-10 10:01:20 +01:00
nicm
23d79cfda8
Instead of a buffer size limit on each pane, set a limit of 300 seconds
...
of data for each client in control mode.
2020-06-10 07:27:10 +00:00
Thomas Adam
8b673cc4f2
Merge branch 'obsd-master'
2020-06-10 08:01:19 +01:00
nicm
fddcad6957
When the pause-after flag is set, send an alternative %extended-output
...
form instead of %output with the age of the output.
2020-06-10 06:23:43 +00:00
Thomas Adam
a06cf900c7
Merge branch 'obsd-master'
2020-06-05 10:01:22 +01:00
nicm
c586208991
Add support for pausing a pane when the output buffered for a control
...
mode client gets too far behind. The pause-after flag with a time is set
on the pane with refresh-client -f and a paused pane may be resumed with
refresh-client -A. GitHub issue 2217.
2020-06-05 07:33:57 +00:00
Thomas Adam
81ba6477ff
Merge branch 'obsd-master'
2020-06-04 12:01:20 +01:00
nicm
a9bf5367da
Correct respawn-* - they don't always use the creation command.
2020-06-04 10:34:40 +00:00
Thomas Adam
b0a6025897
Merge branch 'obsd-master'
2020-06-04 10:01:20 +01:00
nicm
b3782d2dc8
Instead of using a custom parse function to process {}, treat it as a
...
set of statements and parse with yacc, then convert back to a string as
the last step. This means the rules are consistent inside and outside
{}, %if and friends work at the right time, and the final result isn't
littered with unnecessary newlines.
2020-06-04 07:12:05 +00:00
Thomas Adam
5ef790a6c4
Merge branch 'obsd-master'
2020-05-29 16:01:19 +01:00
nicm
175e45005f
Add -i to find-window to ignore case.
2020-05-29 13:42:13 +00:00
Thomas Adam
fd8652ceda
Merge branch 'obsd-master'
2020-05-26 16:01:19 +01:00
nicm
2ced370bee
Tweak some out of date bits, reported by bcgraham.
2020-05-26 13:19:21 +00:00
Thomas Adam
40126ee96c
Merge branch 'obsd-master'
2020-05-21 08:55:31 +01:00
nicm
31e3f2d530
Support code for control mode flow control: allow clients to have
...
separate offsets (used and acknowleged) into the pane buffers; turn off
reading from panes when no clients can accept the data; and add a -A
flag to refresh-client to let clients turn receiving a pane on and off.
2020-05-21 07:24:13 +00:00
nicm
0ab82d9531
Add a terminal feature for enable/disable extended keys (supported by
...
xterm and mintty) and add an option to make tmux send it. Only forward
extended keys if the application has requested them, even though we use
the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.
2020-05-16 16:44:54 +00:00
nicm
e2a26740b9
Add an option to set the pane border lines style from a choice of single
...
lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or
number (the pane numbers). Lines that won't work on a non-UTF-8 terminal
are translated back into ACS when they are output.
2020-05-16 16:26:34 +00:00
nicm
303d342d5f
Add a client flag 'active-pane' which stores the active pane in the
...
client and allows it to be changed independently from the real active
pane stored in the window. This is can be used with session groups which
allow an independent current window (although it would be nice to have a
flag for this too and remove session groups). The client active pane is
only really useful interactively, many things (hooks, window-style,
zooming) still use the window active pane.
2020-05-16 16:20:59 +00:00
nicm
ff8dd150e0
Add a mark in copy mode. Set with set-mark command (bound to 'X') by
...
default and the mark and cursor position are swapped with 'jump-to-mark'
(bound to M-x). The line containing the mark is shown in
copy-mode-mark-style with the horizontal position in reverse.
From Anindya Mukherjee in GitHub issue 2209.
2020-05-16 16:10:28 +00:00
nicm
dceb6a15d0
Add a -D flag to ask tmux not to daemonize, useful both for running a
...
debugger (lldb does not have follow-fork-mode) and for running with a
managed supervisor init system. GitHub issue 2190.
2020-05-16 16:07:55 +00:00
nicm
d67245c734
Add a customize mode where keys and options may be browsed and changed,
...
includes adding a brief description of each option. Bound to "C" by
default.
2020-05-16 16:02:24 +00:00
nicm
daa95810b5
Allow a custom time format to be given to the t format modifier.
2020-05-16 15:48:35 +00:00
nicm
367b4e4e0f
Change message log to be per server rather than per client and include
...
every command that is run.
2020-05-16 15:47:22 +00:00
nicm
4de0bd4c5c
Add M-+ and M-- to expand and collapse all items in tree mode.
2020-05-16 15:46:01 +00:00
nicm
cf9baddd6f
Change the existing client flags for control mode to apply for any
...
client, use the same mechanism for the read-only flag and add an
ignore-size flag.
refresh-client -F has become -f (-F stays for backwards compatibility)
and attach-session and switch-client now have -f flags also. A new
format "client_flags" lists the flags and is shown by list-clients by
default.
This separates the read-only flag from "ignore size" behaviour (new
ignore-size) flag - both behaviours are useful in different
circumstances.
attach -r and switchc -r remain and set or toggle both flags together.
2020-05-16 15:45:29 +00:00
nicm
469eda7e44
Only redraw popup on the client it belongs to.
2020-05-16 15:41:54 +00:00
nicm
edeb81ba9e
Add -e for new-session to set environment variables.
2020-05-16 15:25:24 +00:00
nicm
78595457f9
Add 'e' key in buffer mode to open the buffer in an editor.
2020-05-16 15:24:28 +00:00
nicm
463864f5a2
Add -W and -T flags to command-prompt to only complete a window and a
...
target, also complete aliases.
2020-05-16 15:16:36 +00:00
nicm
2391fe23ab
Copy mode search improvements:
...
- Add styles for the search marking styles (copy-mode-match-style and
copy-mode-current-match-style).
- Show the current match (the one with the cursor on it) in a different style.
- Copying without a selection will copy the current match if there is one.
2020-05-16 15:11:52 +00:00
nicm
aebeeec1e9
Add feature and capabilities for focus reporting. Also document AX and
...
XT even though they aren't tmux's, and add some bits for rxvt.
2020-05-16 14:39:40 +00:00
nicm
4e0a718666
Add extension terminfo(5) capabilities for margins.
2020-05-16 14:22:51 +00:00
nicm
471f697423
Add an attribute for ACS.
2020-05-16 14:13:37 +00:00
nicm
0dd1944206
Tweak the default choose modes formats:
...
- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.
2020-05-16 14:10:29 +00:00
Nicholas Marriott
6d92b99dbc
Add a terminal feature for enable/disable extended keys (supported by xterm and
...
mintty) and add an option to make tmux send it.
2020-05-15 16:15:24 +01:00
Nicholas Marriott
5ee4d991b6
xterm-keys has been on by default for 5 years and all other modern terminals
...
use these key sequences by default. Merge the code into the main tty and input
tree processing (convering the latter to use a tree rather than a table at the
same time) and make the option a no-op.
2020-05-15 10:31:54 +01:00
Nicholas Marriott
31621036ad
Add an option to set the pane border lines style from a choice of single lines
...
(ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the
pane numbers). Lines that won't work on a non-UTF-8 terminal are translated
back into ACS when they are output.
2020-05-14 16:49:08 +01:00
Nicholas Marriott
0bdbf47ef9
Add a client flag 'active-pane' which stores the active pane in the client and
...
allows it to be changed independently from the real active pane stored in the
window. This is can be used with session groups which allow an independent
current window (although it would be nice to have a flag for this too and
remove session groups). The client active pane is only really useful
interactively, many things (hooks, window-style, zooming) still use the window
active pane.
2020-05-14 11:18:19 +01:00
Nicholas Marriott
6214cd0726
Add a mark in copy mode. Set with set-mark command (bound to 'X') by default
...
and the mark and cursor position are swapped with 'jump-to-mark' (bound to
M-x). The line containing the mark is shown in copy-mode-mark-style with the
horizontal position in reverse.
From Anindya Mukherjee in GitHub issue 2209.
2020-05-13 06:29:57 +01:00
Nicholas Marriott
5a34f51d33
Include key bindings in customize mode.
2020-05-12 08:57:55 +01:00
Nicholas Marriott
d01e7aac89
Add a -D flag to ask tmux not to daemonize, useful both for running a debugger
...
(lldb does not have follow-fork-mode) and for running with a managed supervisor
init system. GitHub issue 2190.
2020-05-10 16:52:46 +01:00
Nicholas Marriott
a61cbf1c33
Add a customize mode where options may be browsed and changed, includes adding
...
a brief description of each option. Bound to "C" by default.
2020-05-08 19:10:09 +01:00
Nicholas Marriott
708e9bc072
Allow a custom time format to be given to the t format modifier.
2020-05-07 11:04:43 +01:00
Nicholas Marriott
7a95e9bf7e
Change message log to be per server rather than per client and include every
...
command that is run.
2020-05-06 13:43:22 +01:00
Nicholas Marriott
c80fc6bf9e
Add M-+ and M-- to expand and collapse all items in tree mode.
2020-05-05 16:33:58 +01:00
Nicholas Marriott
2f89d2e7d8
Change the existing client flags for control mode to apply for any client, use
...
the same mechanism for the read-only flag and add an ignore-size flag.
refresh-client -F has become -f (-F stays for backwards compatibility) and
attach-session and switch-client now have -f flags also. A new format
"client_flags" lists the flags and is shown by list-clients by default.
This separates the read-only flag from "ignore size" behaviour (new
ignore-size) flag - both behaviours are useful in different circumstances.
attach -r and switchc -r remain and set or toggle both flags together.
2020-05-05 15:42:20 +01:00
Nicholas Marriott
23b4e1b9d8
pane_path is not #T, from Chris Rawnsley.
2020-05-05 11:35:33 +01:00
Nicholas Marriott
af21e76fdb
Add -e for new-session.
2020-05-01 12:01:58 +01:00
Nicholas Marriott
5c888e168e
Typo in man page.
2020-05-01 09:05:56 +01:00
Nicholas Marriott
cc19203be2
Add 'e' key in buffer mode to open the buffer in an editor.
2020-05-01 09:02:44 +01:00
Nicholas Marriott
25487757bc
Add -W and -T flags to command-prompt to only complete a window and a target.
2020-04-30 12:02:21 +01:00
Nicholas Marriott
6f700904a9
Copy mode search improvements:
...
- Add styles for the search marking styles (copy-mode-match-style and
copy-mode-current-match-style).
- Show the current match (the one with the cursor on it) in a different style.
- Copying without a selection will copy the current match if there is one.
2020-04-29 18:08:21 +01:00
Nicholas Marriott
61550ac2e0
Add feature and capabilities for focus reporting. Also document AX and XT even
...
though they aren't tmux's.
2020-04-24 07:37:11 +01:00
Nicholas Marriott
5d69b9c4a7
Add a feature for bracketed paste.
2020-04-24 07:13:02 +01:00
Nicholas Marriott
8650f44340
Move terminal features into a single file.
2020-04-24 06:40:51 +01:00
Thomas Adam
ca13208b6b
Merge branch 'obsd-master'
2020-04-24 00:01:27 +01:00
jmc
18886cb510
ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;
2020-04-23 21:28:09 +00:00
Nicholas Marriott
ac91635f82
Add extension terminfo(5) capabilities for margins.
2020-04-23 12:12:02 +01:00
Nicholas Marriott
1a612a5936
Add an attribute for ACS.
2020-04-23 07:15:17 +01:00
Nicholas Marriott
106e5d07be
Tweak the default choose modes formats:
...
- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.
2020-04-23 06:30:15 +01:00
Thomas Adam
cf5f93b2b3
Merge branch 'obsd-master'
2020-04-23 02:01:33 +01:00
nicm
950af33636
Improve join-pane, move-pane and break-pane:
...
- There is no need for join-pane and move-pane to be different.
- break-pane can just behave like move-window if the source has only one
pane, instead of failing.
- Add -a to break-pane like move-window.
Also add missing man page bits for previous window-tree.c changes.
GitHub issue 2176.
2020-04-22 21:15:33 +00:00
Thomas Adam
4a31eedc26
Merge branch 'obsd-master'
2020-04-22 22:01:35 +01:00
nicm
662728d6c7
Add a session_marked format like window_marked.
2020-04-22 20:47:00 +00:00
Thomas Adam
8ae3915cc2
Merge branch 'obsd-master'
2020-04-22 12:01:38 +01:00
nicm
de5163a634
Change so main-pane-width and height can be given as a percentage.
2020-04-22 06:57:13 +00:00
Thomas Adam
32c3fe40eb
Merge branch 'obsd-master'
2020-04-20 17:43:20 +01:00
Thomas Adam
c706aadf52
Merge branch 'obsd-master'
2020-04-20 17:42:29 +01:00
nicm
2083a6ea20
Change how sync works to always send the end sequence after all output
...
is done when we are returning to the event loop (since we always move
the cursor at that point). Also a man fix from jmc.
2020-04-20 14:59:31 +00:00
nicm
135bb1edee
Change the Sync capability to be a string instead of a flag.
2020-04-20 13:38:48 +00:00
nicm
c91b4b2e14
Tidy up the terminal detection and feature code and add named sets of
...
terminal features, each of which are defined in one place and map to a
builtin set of terminfo(5) capabilities. Features can be specified based
on TERM with a new terminal-features option or with the -T flag when
running tmux. tmux will also detect a few common terminals from the DA
and DSR responses.
This is intended to make it easier to configure tmux's use of
terminfo(5) even in the presence of outdated ncurses(3) or terminfo(5)
databases or for features which do not yet have a terminfo(5) entry.
Instead of having to grok terminfo(5) capability names and what they
should be set to in the terminal-overrides option, the user can
hopefully just give tmux a feature name and let it do the right thing.
The terminal-overrides option remains both for backwards compatibility
and to allow tweaks of individual capabilities.
tmux already did much of this already, this makes it tidier and simpler
to configure.
2020-04-20 13:25:36 +00:00
Thomas Adam
e1799ed7c8
Merge branch 'obsd-master'
2020-04-18 10:01:31 +01:00
nicm
e153b928ff
Add formats for pane written/skipped bytes for debugging.
2020-04-18 07:19:28 +00:00
Thomas Adam
413c4cfd1b
Merge branch 'obsd-master'
2020-04-17 10:01:38 +01:00
nicm
5aba26f2cb
Add a copy-command option and change copy-pipe and friends to pipe to it
...
if used without arguments, allows all copy key bindings to be changed to
pipe with one option.
2020-04-17 08:03:22 +00:00
Thomas Adam
5e38d26257
Merge branch 'obsd-master'
2020-04-16 16:01:35 +01:00
nicm
b2443aa2f9
Add support for the iTerm2 sychronized updates escape sequence which
...
drastically reduces flickering.
2020-04-16 13:35:24 +00:00
Thomas Adam
b117c3b812
Merge branch 'obsd-master'
2020-04-13 10:30:00 +01:00
nicm
9cbe9675ea
Change so that the appropriate hooks for windows and panes belong to
...
pane/window options rather than all being session options. This is
useful for example to create a pane that is automatically closed on some
condition. From Anindya Mukherjee.
2020-04-13 07:25:33 +00:00
nicm
de6b30a51c
Mention RGB, pointed out by Jody Frankowski.
2020-04-12 20:16:36 +00:00
nicm
756591b4ca
Add a -f filter argument to the list commands like choose-tree.
2020-04-12 08:36:18 +00:00
nicm
70534cfde6
Clarify a couple of style options.
2020-04-12 08:13:41 +00:00
nicm
1c433f1354
Remove unused define, also a man fix from jmc.
2020-04-10 20:53:54 +00:00
nicm
c0602f357d
Now that copy mode copies the pane content rather than keeping a
...
reference to it, it isn't necessary that the pane in copy mode is the
same as the one copying from. Add a -s flag to copy-mode to specify a
different pane for the source content. This means it is possible to view
two places in a pane's history at the same time in different panes, or
copy from a pane's history into an editor or shell in the same pane.
From Anindya Mukherjee.
2020-04-10 07:44:26 +00:00
Thomas Adam
9e0e860031
Merge branch 'obsd-master'
2020-04-09 13:41:59 +01:00
nicm
ff135b34a4
Mention paste at same place as copy, suggested by John Boyle.
2020-04-09 06:28:55 +00:00
nicm
5d0eb619f1
Restore pane_current_path format from portable tmux, it is no longer
...
used by default and is very useful.
2020-04-08 11:26:07 +00:00
Thomas Adam
8fa0b0cd26
Merge branch 'obsd-master'
2020-04-06 20:01:33 +01:00
nicm
77b827f879
Change copy mode to make copy of the pane history so it does not need to
...
freeze updates (which does not play nicely with some applications, a
longstanding problem) and will allow some other changes later. From
Anindya Mukherjee.
2020-04-06 17:51:34 +00:00
Thomas Adam
71ab50eddd
Merge branch 'obsd-master'
2020-04-06 04:01:42 +01:00
nicm
fccce69cf0
Add an argument to list-commands to show only a single command.
2020-04-05 08:40:31 +00:00
Thomas Adam
9bcf5c0b90
Merge branch 'obsd-master'
2020-04-02 08:01:29 +01:00
nicm
90f4e149c1
Add a W position to display-menu -y to use the line above (or below) the
...
status line containing the window list. Leave S meaning above (or below)
all status lines. GitHub issue 2145.
2020-04-02 05:35:15 +00:00
Thomas Adam
e54d4e7fe0
Merge branch 'obsd-master'
2020-04-01 10:01:30 +01:00
nicm
46ed81fc45
Performance improvements for regex searching, most notably:
...
- Use the grid data directly instead of copying it.
- Special case the most typical one byte character cells and use memcmp
for multiple bytes instead of a handrolled loop.
- Hoist regcomp out of the loop into the calling functions.
GitHub issue 2143.
Also a man page from from jmc@.
2020-04-01 07:35:10 +00:00
Thomas Adam
dfd29977e0
Merge branch 'obsd-master'
2020-03-31 20:01:34 +01:00
nicm
38f1546a66
Add a way to mark environment variables as "hidden" so they can be used
...
by tmux but are not passed into the environment of new panes.
2020-03-31 17:14:40 +00:00
nicm
cc8b41f294
Add a way to mark environment variables as "hidden" so they can be used
...
by tmux but are not passed into the environment of new panes.
2020-03-31 17:14:40 +00:00
nicm
e221ef203c
Add a -T flag to resize-pane to trim lines below the cursor, moving
...
lines out of the history. GitHub issue 2134.
2020-03-31 17:13:20 +00:00
nicm
e6cddcf752
Add a -T flag to resize-pane to trim lines below the cursor, moving
...
lines out of the history. GitHub issue 2134.
2020-03-31 17:13:20 +00:00
nicm
e6d1b6770c
Add non-regex search variants to avoid the performance cost for people
...
with large histories or long lines.
2020-03-31 16:53:23 +00:00
nicm
2624edde46
Add non-regex search variants to avoid the performance cost for people
...
with large histories or long lines.
2020-03-31 16:53:23 +00:00
Thomas Adam
0bb1a50b88
Merge branch 'obsd-master'
2020-03-31 16:01:29 +01:00
nicm
2ca95840d1
Add session_path from Chris Ruegge in GitHub issue 2142.
2020-03-31 11:58:05 +00:00
nicm
2a4714e76b
Add session_path from Chris Ruegge in GitHub issue 2142.
2020-03-31 11:58:05 +00:00
nicm
0dd4977d5c
Add a "second click" key type which is fired for the second click of a
...
double click, even if the timer hasn't expired to confirm it isn't
actually a triple click. Provides a way for people who don't care about
triple clicks or can make their commands have no side effects to avoid
the double click timer delay.
2020-03-31 11:38:35 +00:00
nicm
01b3bb8e2c
Add a "second click" key type which is fired for the second click of a
...
double click, even if the timer hasn't expired to confirm it isn't
actually a triple click. Provides a way for people who don't care about
triple clicks or can make their commands have no side effects to avoid
the double click timer delay.
2020-03-31 11:38:35 +00:00
Thomas Adam
374f5ea60c
Merge branch 'obsd-master'
2020-03-28 14:01:28 +00:00
Thomas Adam
88ca500546
Merge branch 'obsd-master'
2020-03-28 10:01:27 +00:00
nicm
593fddf84b
Make two -E only close popup automatically if the command exited with 0.
2020-03-28 09:51:12 +00:00
nicm
e0b17e796b
Add formats for top paste buffer by default. Also a tmux.1 fix from jmc.
2020-03-28 09:39:27 +00:00
Thomas Adam
8a57d14f4b
Merge branch 'obsd-master'
2020-03-26 11:11:37 +00:00
nicm
8a838b0372
Add support for overlay popup boxes to show text or output temporarily
...
above the normal layout. These work similarly to menus and are created
with the display-popup command.
2020-03-24 08:09:43 +00:00
Thomas Adam
e4efd59fe0
Merge branch 'obsd-master'
2020-03-20 20:01:34 +00:00
nicm
06c3079d66
Make the mouse_word and mouse_line formats work in copy mode and enable
...
the default pane menu in copy mode.
2020-03-20 17:59:39 +00:00
Thomas Adam
17e4f2394a
Merge branch 'obsd-master'
2020-03-19 14:01:31 +00:00
nicm
581ed718e7
Add C position for terminal centre with display-menu -x and -y.
2020-03-19 13:32:49 +00:00
Thomas Adam
c91a0948e3
Merge branch 'obsd-master'
2020-03-12 16:01:28 +00:00
Thomas Adam
6385bd1e08
Merge branch 'obsd-master'
2020-03-12 14:01:29 +00:00
nicm
6571dd50f8
Tidy up the default mouse key bindings and:
...
- Add double and triple click bindings to copy a word or line outside
copy mode. The text is selected for a short period to show what has
been copied. This is in line with the existing mouse selection where
the text is copied and the selection is cleared when the mouse button
is released.
- Change the existing double and triple click bindings in copy mode to
behave in the same way.
- Add a button 2 binding to paste the top buffer.
2020-03-12 13:48:32 +00:00
nicm
516f6099fc
Add a -d flag to run-shell to wait for delay before running the command,
...
also allow run-shell to accept no command to just delay.
2020-03-12 13:25:45 +00:00
nicm
7863445e5d
Add a copy-mode -H flag to hide the position marker in the top right.
2020-03-12 13:19:20 +00:00
Thomas Adam
5625c62044
Merge branch 'obsd-master'
2020-03-12 12:01:25 +00:00
nicm
b8b48e2e37
Add C-g to cancel command prompt with vi(1) keys as well as emacs, and q
...
in command mode.
2020-03-12 09:49:43 +00:00
Thomas Adam
e512a3642a
Merge branch 'obsd-master'
...
Also add a check for -lm via AC_SEARCH_LIBS in configure.ac for
portablility fixes.
2020-03-11 17:23:38 +00:00
nicm
c820585dd0
Add some number operators for formats, from Tyler Culp.
2020-03-11 14:17:55 +00:00
Thomas Adam
4694afbed4
Merge branch 'obsd-master'
2020-02-20 10:01:29 +00:00
nicm
229be034fb
Add selection_active format for when the selection is present but not
...
moving with the cursor, from Mark Kelly.
2020-02-20 07:34:57 +00:00
Thomas Adam
0c6c8c4efc
Merge branch 'obsd-master'
2020-02-15 16:01:25 +00:00
nicm
a1f6bd55b6
Add -a to list-keys to also list keys without notes with -N, suggested
...
by Shehu Dikko.
2020-02-15 15:08:08 +00:00
Thomas Adam
a4d8437bc2
Merge branch 'obsd-master'
2020-02-11 08:01:30 +00:00
nicm
dc882adb2e
Remove unused variables from Ben Boeckel, and a Pp from jmc.
2020-02-11 07:01:08 +00:00
Thomas Adam
54553903de
Merge branch 'obsd-master'
2020-02-05 14:01:26 +00:00
nicm
fb29242168
Make list-keys description clearer in tmux.1 and remove an unused variable.
2020-02-05 13:06:49 +00:00
Thomas Adam
8b22da69b6
Merge branch 'obsd-master'
2020-01-29 10:01:25 +00:00
nicm
7a15d10bf4
Remove extra Pp (from jmc) and add a missing word.
2020-01-29 08:28:17 +00:00
nicm
f165221dc4
Reduce a difference with portable tmux by adding the -V flag and
...
#{version} format; on OpenBSD these just report the OpenBSD version.
2020-01-28 10:44:30 +00:00
Thomas Adam
f3ea318a04
Merge branch 'obsd-master'
2020-01-27 10:01:27 +00:00
nicm
2c38e01b54
Expand description of start-server.
2020-01-27 09:04:47 +00:00
nicm
d0b8d036be
Add support for adding a note to a key binding (with bind-key -N) and
...
use this to add descriptions to the default key bindings. A new -N flag
to list-keys shows key bindings with notes rather than the default
bind-key command used to create them. Change the default ? binding to
use this to show a readable summary of keys.
Also extend command-prompt to return the name of the key pressed and add
a default binding (/) to show the note for the next key pressed
Suggested by Alex Tremblay in GitHub issue 2000.
2020-01-27 08:53:13 +00:00
Thomas Adam
0eb7b54731
Merge branch 'obsd-master'
2020-01-25 18:01:26 +00:00
nicm
9169ee0e87
Mention swap-window -d, GitHub issue 2068.
2020-01-25 16:40:32 +00:00
Thomas Adam
e9b1294331
Merge branch 'obsd-master'
2020-01-12 22:01:26 +00:00
nicm
193e637de0
The terminal type was never as much use as I expected so remove it in
...
favour of a couple of flags for the features used (DECSLRM and DECFRA).
Also rename the flag for no xenl to be more obvious while here.
2020-01-12 21:07:07 +00:00
Thomas Adam
7110226b96
Merge branch 'obsd-master'
2020-01-02 00:01:29 +00:00
nicm
ac85a3e0d3
Document client exit messages.
2020-01-01 22:12:05 +00:00
Thomas Adam
b931bbb319
Merge branch 'obsd-master'
2019-12-26 12:01:26 +00:00
nicm
817d199cbb
Add a number of new formats to inspect what sessions and clients a
...
window is present or active in. From Tyler Culp in GitHub issue 2034.
2019-12-26 11:04:58 +00:00
Thomas Adam
67d2408279
Merge branch 'obsd-master'
2019-12-24 12:01:25 +00:00
nicm
07e37479c2
Fix name of option, GitHub issue 2030.
2019-12-24 09:57:11 +00:00
Thomas Adam
5f5f029e3b
Merge branch 'obsd-master'
2019-11-28 12:18:41 +00:00
nicm
2349b1dbef
Make a best effort to set xpixel and ypixel for each pane and add
...
formats for them.
2019-11-28 09:45:15 +00:00
nicm
067604bf8c
Store xpixel/ypixel from TIOCGWINSZ and add formats.
2019-11-28 09:05:34 +00:00
Thomas Adam
daa93b3fdc
Merge branch 'obsd-master'
2019-11-25 16:01:27 +00:00
nicm
1ebd8c1234
Add p format modifier for padding to width.
2019-11-25 15:04:15 +00:00
Thomas Adam
0d3f306c8e
Merge branch 'obsd-master'
2019-11-18 10:01:25 +00:00
nicm
350a434939
Add -f for full size to join-pane (like split-window), from Theo Buehler.
2019-11-18 09:43:31 +00:00
Thomas Adam
dbdff241b2
Merge branch 'obsd-master'
2019-11-15 12:01:27 +00:00
nicm
f3dc38dcae
Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).
2019-11-15 11:16:53 +00:00
Thomas Adam
518a687886
Merge branch 'obsd-master'
2019-11-14 10:01:29 +00:00
nicm
08b07b1a08
Add an option to set the key sent by backspace for those whose system
...
uses ^H rather than ^?. GitHub issue 1969.
2019-11-14 07:55:01 +00:00
Thomas Adam
eb215d3d3f
Merge branch 'obsd-master'
2019-11-07 08:01:26 +00:00
nicm
c225262e13
Add -F flag to send-keys to expand formats in search-backward and
...
forward copy mode commands, this makes it easier to use the cursor_word
and cursor_line formats. From Anindya Mukherjee in GitHub issue 1964.
2019-11-07 07:11:25 +00:00
Thomas Adam
4e5f80dc62
Merge branch 'obsd-master'
2019-10-23 16:01:25 +01:00
nicm
6700018ce5
Document Any key, from Jason Felice.
2019-10-23 14:10:13 +00:00
Thomas Adam
b5de0a20d8
Merge branch 'obsd-master'
2019-10-23 10:01:27 +01:00
nicm
f7fb5df543
Use the existing code in format.c to add foramts for word and line at
...
cursor position in copy mode, from Anindya Mukherjee.
2019-10-23 07:42:05 +00:00
Thomas Adam
004ee66227
Merge branch 'obsd-master'
2019-10-19 22:01:25 +01:00
nicm
56e5067c46
Add formats for cursor and selection position in copy mode, from Jason Felice.
2019-10-19 19:20:14 +00:00
Thomas Adam
fb7ce5b5d5
Merge branch 'obsd-master'
2019-10-15 10:01:28 +01:00
nicm
0c5e9c6efa
Add support for percentage sizes for resize-pane ("-x 10%"). Also change
...
split-window and join-pane -l to accept similar percentages and
deprecate -p. From Anindya Mukherjee.
2019-10-15 08:25:37 +00:00
Thomas Adam
24ab1bc714
Merge branch 'obsd-master'
2019-09-19 12:01:30 +01:00
nicm
647887b794
Add a "latest" window-size option which tries to size windows based on
...
the most recently used client. From Tommie Gannert in GitHub issue 1869
based on earlier changes from me.
2019-09-19 09:02:30 +00:00
Thomas Adam
d346d692eb
Merge branch 'obsd-master'
2019-09-16 00:01:25 +01:00
nicm
63e07b245f
Add push-default and pop-default in styles to change the default colours
...
and attributes and use them to restore the previous behaviour of
window-status-style being the default for window-status-format in the
status line. From John Drouhard in GitHub issue 1912.
2019-09-15 21:42:57 +00:00
Thomas Adam
a5e36a4bd6
Merge branch 'obsd-master'
2019-09-13 04:01:25 +01:00
Thomas Adam
658ecb0777
Merge branch 'obsd-master'
2019-09-11 16:48:58 +01:00
nicm
a23ce1b45f
Add window_marked_flag, GitHub issue 1887.
2019-09-11 06:43:17 +00:00
nicm
b6b7486423
Clarify server options slightly.
2019-09-09 11:47:25 +00:00
Thomas Adam
2e90841f2e
Merge branch 'obsd-master'
2019-09-09 12:02:32 +01:00
nicm
b31515fec3
Add cursor-down-and-cancel, from Mark Kelly.
2019-09-09 08:01:21 +00:00
Thomas Adam
2db9a18362
Merge branch 'obsd-master'
2019-08-16 17:02:29 +01:00
nicm
37583f0a69
Add a flag to reverse sort in the various choose modes, from Benjamin
...
Poirier in GitHub issue 1875.
2019-08-16 11:49:12 +00:00
Thomas Adam
ed0f2831b4
Merge branch 'obsd-master'
2019-08-15 11:02:48 +01:00
nicm
0f243f0388
Add -Z flag to rotate-window, select-pane, swap-pane, switch-client to
...
preserve zoomed state. GitHub issue 1839.
2019-08-14 09:58:31 +00:00
Thomas Adam
11315c589a
Merge branch 'obsd-master'
2019-08-01 11:02:26 +01:00
nicm
2db5f9c215
Add -N to capture-pane to preserve trailing spaces, from Leon Winter.
2019-08-01 08:42:34 +00:00
Thomas Adam
900e583c7a
Merge branch 'obsd-master'
2019-07-30 13:02:26 +01:00