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
nicm
c13f2e1135
Redraw status line and borders on pane enable/disable, GitHub issue 2554.
2021-02-04 14:02:24 +00:00
nicm
f0546b0ff8
Fix popup mouse position.
2021-02-02 13:03:03 +00:00
jmc
5c48086e5c
article fixes; from eddie youseph
2021-02-02 07:33:29 +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
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
nicm
8156d9ba41
Flush pending output before entering or exiting alternate screen rather
...
than leaking it, oss-fuzz issue 29959.
2021-01-27 10:42:52 +00:00
nicm
d6542c333d
Always resize the original screen before copying when exiting the
...
alternate screen, GitHub issue 2536.
2021-01-26 09:32:52 +00:00
nicm
9fcf413d87
Revert clear changes to writing as they don't work properly, better
...
change to come.
2021-01-22 11:28:33 +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
nicm
8d185395e4
Fix some cursor movement commands, from Anindya Mukherjee.
2021-01-22 10:21:24 +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
nicm
0730dce5ab
Hide some warnings on newer GCC versions, GitHUb issue 2525.
2021-01-18 11:14:23 +00:00
nicm
91d112bf12
There is no need to clear every line entirely before drawing to it, this
...
means moving the cursor and messes up wrapping. Better to just clear the
sections that aren't written over. GitHub issue 2537.
2021-01-18 10:27:54 +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
nicm
a75aca4d6a
Missed from last commit.
2021-01-08 10:09:44 +00:00
nicm
b96c5e3687
With incremental search, start empty and only repeat the previous search
...
if the user tries to search again with an empty prompt. This matches
emacs behaviour more closely.
2021-01-08 08:22:10 +00:00
nicm
199689954b
Insert joined pane before the target pane with -b, like for split. From
...
Takeshi Banse.
2021-01-06 07:32:23 +00:00
nicm
ccb8b9eb2a
Remove unused variable, from Ben Boeckel.
2021-01-06 07:29:49 +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
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
nicm
f97305af31
Use right format for session loop, GitHub issue 2519.
2020-12-30 18:29:40 +00:00
nicm
a98ee00dd9
Do not list user options with show-hooks.
2020-12-28 09:40:27 +00:00
nicm
c68baaad98
Remove current match indicator which can't work anymore since we only
...
search the visible region. From Anindya Mukherjee, GitHub issue 2508.
2020-12-28 09:36:26 +00:00
nicm
c43f2dce1b
Break cursor movement in grid into a common set of functions that can
...
handle line wrapping and so on in one place and use them for the obvious
copy mode commands. From Anindya Mukherjee.
2020-12-22 09:22:14 +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