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
nicm
73cbe46f8d
Change a type to fix a warning with some compilers.
2021-04-09 07:02:00 +00:00
nicm
30fb628388
Log the key written to the terminal as well as tmux's idea of what it
...
is.
2021-04-08 14:16:12 +00:00
nicm
efb5e58c38
Restore previous behaviour so that C-X remains the same as C-x. Instead,
...
translate incoming extended keys so that they are consistent.
2021-04-07 15:46:12 +00: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
nicm
1ac47400d2
When display-message used in config file, show the message after the
...
config file finishes. GitHub issue 2637.
2021-04-07 12:49:33 +00:00
nicm
ba99996676
Fixes for extended keys: 1) allow C-x and C-X to be bound separately
...
since some terminals report them differently 2) use the "backspace"
option to translate backspace 3) map ctrl which are have the ctrl
implied (such as C-x) properly when the terminal reports both the key
and the modifier.
Note that any key bindings for C-X where C-x is meant must now be
changed.
2021-04-07 07:30:02 +00:00
nicm
10470cea67
Move client-detached into server_client_lost so it is fired even if a
...
client is closed unexpectedly.
2021-04-05 14:11:05 +00:00
nicm
5900b164a4
Fix a couple of edge cases with the jump-back-xxx commands, and also
...
update back-to-indentation to use grid_reader, thereby fixing line
wrapping issues. From Anindya Mukherjee, GitHub issue 2633.
2021-04-05 08:43:48 +00:00
nicm
28cd956729
Change search-again with vi keys to work like actual vi(1), also some
...
other fixes. From Aaron Jensen with help from Anindya Mukherjee.
2021-04-01 06:46:12 +00:00
nicm
6c98f222e9
Missing commas, from Vipul Kumar.
2021-04-01 06:37:46 +00:00
nicm
a4b9b5a1e5
Do not exit if cannot write to normal log file, GitHub issue 2630.
2021-03-31 08:37:48 +00:00
nicm
8b800b41c9
Add client-detached notification in control mode, from Mohsin Kaleem.
2021-03-16 09:14:58 +00:00
nicm
9017af2355
Do not crash if there is no item to show command error, from Anindya
...
Mukherjee.
2021-03-15 13:06:33 +00:00
nicm
e8224fb0d1
Fix so tmux correctly sends the cvvis (cursor very visible) capability
...
rather than sending it and then immediately undoing it with cnorm. Also
turn it off when the cursor shape is changed like xterm.
2021-03-12 08:39:17 +00:00
nicm
ee0df1b8f8
Tidy old jobs every hour instead of every 30 seconds.
2021-03-11 07:08:18 +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
nicm
7f87280cd5
Allow cursor to be just after match if copying, GitHub issue 2602.
2021-03-09 13:07:50 +00:00
nicm
81e5736510
Copy mode improvements from Anindya Mukherjee:
...
- Fix word and word-end for wrapped lines.
- Fix copying of selection end on wrapped lines.
- Fix wrapped word selection edge case.
- Update select-line to respect wrapped lines.
- Update window_copy_..._pos() functions to use grid_reader.
GitHub issue 2605.
2021-03-09 08:24:09 +00:00
nicm
81f9a23d25
Do not use NULL active window; also do not leak window name. GitHub
...
issue 2590 from Chester Liu.
2021-03-02 11:00:38 +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
jmc
de3a898e8a
escape quotes and remove some unneccessary Pp; ok nicm
2021-03-01 17:49:08 +00:00
nicm
8a4a2153fd
There is no need to call del_curterm in the server anymore.
2021-03-01 10:50:14 +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
nicm
40ad11b2b5
Handle NULL term_type.
2021-02-27 06:28:16 +00:00
nicm
583aaebc0a
Check session, window, pane in the right order when working out format type.
2021-02-26 21:53:41 +00:00
nicm
dd7006c850
Add a couple of format variables for active and last window index.
2021-02-26 07:53:26 +00:00
nicm
6aaef3e705
Correct client_prefix so it returns 1 if in prefix, not 0.
2021-02-24 09:22:15 +00:00
nicm
6d8efe9319
expand_paths needs the global environment to be set up, do that first.
2021-02-22 11:42:50 +00:00
nicm
5f425ee318
Fix regex searching with wrapped lines, from Anindya Mukherjee; GitHub
...
issue 2570.
2021-02-22 08:31:19 +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
nicm
e858270006
There are many format variables now so allocating all the default ones
...
each time a tree is created is too expensive. Instead, convert them all
into callbacks and put them in a static table so they only allocate on
demand. The tree remains for the moment for extra (non-default)
variables added by for example copy mode or popups. Also reduce
expensive calls to localtime_r/strftime. GitHub issue 2253.
2021-02-22 07:09:06 +00:00
nicm
8986c8dfcd
Move jump commands to grid reader, make them UTF-8 aware, and tidy up,
...
from Anindya Mukherjee.
2021-02-22 06:53:04 +00:00
nicm
b04f8acb70
Check return value of chdir() to stop a silly warning with some
...
compilers, GitHub issue 2573.
2021-02-19 09:09:16 +00:00
nicm
fb42ae3071
Reduce len when moving past spaces in OSC 11 parameter.
2021-02-18 13:30:24 +00:00
nicm
af3ffa9c41
Move the call to setupterm() into the client and have it pass the
...
results to the server over imsg, means the server does not need to enter
ncurses or read terminfo db. Old clients will not work with a new
server.
2021-02-17 07:18:36 +00:00
nicm
d768fc2553
Make SGR 6 (rapid blink) the same as SGR 5 (blink) and make SGR 21 to
...
the same as SGR 4:2, it is an old alternative. GitHub issue 2567.
2021-02-15 14:22:35 +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
nicm
632636dba5
Do not care about the server socket closing if exiting anyway.
2021-02-12 06:52:48 +00:00
nicm
2b58c226db
Add a couple of helper functions, and flush imsgs on exit.
2021-02-11 09:39:29 +00:00
nicm
79e1984962
O_TRUNC is needed in case file exists.
2021-02-11 09:03:38 +00:00
nicm
e40831a002
Move file handling protocol stuff all into file.c so it can be reused
...
more easily.
2021-02-11 08:28:45 +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
nicm
1492ae11a5
Do not expand times and #() inside #().
2021-02-09 14:25:40 +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
nicm
c579be1f2a
Include "focused" in client flags, from Dan Aloni in GitHub issue 2558.
2021-02-08 08:33:54 +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
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