Thomas Adam
25e2e1d671
Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
...
* refs/remotes/tmux-openbsd/master:
build: don't exit
build: always attempt portable merge
build: capture openbsd-base before filtering
build: fetch cutover master before merge
Use _exit in child after fork, from Yayo Razo in GitHub issue 5376.
Add missing calloc check and use fatal. Prompted by a similar change from Yayo Razo.
actions: use published openbsd-git as base update
github actions: automate updates
Do not make pty fds blocking again until all the data has been consumed or control mode clients can get stuck, GitHub issue 5356 from Ben Maurer.
Add formats and events for OSC 133 commmands, as well as a -T flag to set-hook -B to only fire when the format is true.
Replace the notification system with events. Events can carry a payload of additional payload (to reduce problems with lifetime of objects) and are delivered to one or more event sinks. This is more powerful and reduces the complex dependencies between control mode and hooks. Events are now used for hooks, control mode notifications and for monitors (set-hook -B).
2026-07-13 09:22:25 +01:00
nicm
d29aa12117
Replace the notification system with events. Events can carry a payload of
...
additional payload (to reduce problems with lifetime of objects) and are
delivered to one or more event sinks. This is more powerful and reduces the
complex dependencies between control mode and hooks. Events are now used for
hooks, control mode notifications and for monitors (set-hook -B).
wait-for can now wait for an event to fire (-E flag, with -F to for filter),
with -v to print the payload, as well as listing (-l) waiting clients on an
event and forcing one to wake (-w).
A few additional hooks are also now available (pane-created, pane-resized, etc)
and some of the existing ones have additional format variables available.
2026-07-10 13:38:45 +00:00
Thomas Adam
348f16093c
Merge branch 'obsd-master'
2025-11-18 10:01:07 +00:00
nicm
2a3ec87887
Make -v to source-file pass through to subsequent source-file commands,
...
GitHub issue 4216.
2025-11-18 08:42:09 +00:00
Thomas Adam
410abb5afb
Merge branch 'obsd-master'
2025-10-28 14:01:08 +00:00
nicm
b4ba6e49af
Do not realpath() everything since it is pointless and breaks symlinks.
...
GitHub issue 4427.
2025-10-28 10:51:30 +00:00
Thomas Adam
010394ab63
Merge branch 'obsd-master'
2025-10-28 10:01:07 +00:00
nicm
aa420cd54a
Tweak error messages so that file name isn't modified when we capitalize
...
the first letter, from Pavel Roskin in GitHub issue 4666.
2025-10-28 07:32:26 +00:00
Thomas Adam
d4f129b513
Merge branch 'obsd-master'
2025-09-08 14:01:08 +01:00
nicm
c62fe6dac8
The client can be NULL, fixes -v in config file.
2025-09-08 11:21:29 +00:00
Thomas Adam
418bf148e0
Merge branch 'obsd-master'
2025-09-08 10:01:08 +01:00
nicm
d73196750f
Change so that source-file errors are reported correctly in control
...
mode, from Sergei Nizovtsev in GitHub issue 4626.
2025-09-08 07:30:15 +00:00
Thomas Adam
093754db3f
Merge branch 'obsd-master'
2025-09-07 18:01:08 +01:00
nicm
7cc15969ff
Quote cwd for glob in a way that actually works, from Pavel Roskin in
...
GitHub issue 4623.
2025-09-07 14:17:25 +00:00
Thomas Adam
190ddda572
Merge branch 'obsd-master'
2024-12-16 12:01:12 +00:00
nicm
6b32d195e8
Add a nesting limit to source-file, from Fadi Afani in GitHub issue
...
4223.
2024-12-16 09:13:09 +00:00
Thomas Adam
cb00e869ea
Merge branch 'obsd-master'
2024-10-12 12:01:09 +01:00
nicm
f8b56fdc3f
Call realpath on the source file to match -f on the command line, GitHub
...
issue 4180.
2024-10-12 08:20:32 +00:00
Thomas Adam
9f9156c030
Merge branch 'obsd-master'
2023-09-15 10:01:11 +01:00
nicm
d394293ba5
Add -t to source-file, GitHub issue 3473.
2023-09-15 06:31:49 +00:00
Thomas Adam
95a374d7d2
Merge branch 'obsd-master' into master
2021-08-23 16:06:46 +01:00
nicm
4a753dbefc
Fix a few memory leaks.
2021-08-23 11:04:21 +00:00
Thomas Adam
03054598df
Merge branch 'obsd-master' into master
2021-08-22 16:01:19 +01:00
nicm
72d905f32c
Do not double free expanded path in source-file, also remove some
...
unnecessary assignments.
2021-08-22 13:48:29 +00:00
Thomas Adam
62036121fa
Merge branch 'obsd-master' into master
2021-08-21 12:01:41 +01:00
nicm
08e6360f23
Add args parsing callback for some future work, currently unused.
2021-08-21 10:22:38 +00:00
Thomas Adam
b0da0cee4d
Merge branch 'obsd-master' into master
2021-08-20 22:01:46 +01:00
nicm
5f32b7d961
Hide struct args behind a couple of accessor functions.
2021-08-20 19:50:16 +00:00
nicm
77bd6b9ec3
Do not use NULL client when source-file finishes, GitHub issue 2707.
2021-06-10 07:53:19 +00:00
Nicholas Marriott
f03b27c72b
Do not use NULL client when source-file finishes, GitHub issue 2707.
2021-05-12 07:08:58 +01: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
8f2b5d714a
Merge branch 'obsd-master'
2020-04-13 14:01:45 +01:00
nicm
04cdd03525
Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
...
use more clearly defined and preparation for some future work).
2020-04-13 10:59:58 +00:00
Thomas Adam
b117c3b812
Merge branch 'obsd-master'
2020-04-13 10:30:00 +01:00
nicm
c20eb0c0ae
Make struct cmd local to cmd.c and move it out of tmux.h.
2020-04-13 08:26:27 +00:00
Thomas Adam
a6b1cbba02
Merge branch 'obsd-master'
2019-12-21 18:01:24 +00:00
tim
5cd00eda0b
Restore source-file -q behaviour, broken in r1.42; OK nicm@
2019-12-21 17:30:48 +00:00
Thomas Adam
745233d6a1
Merge branch 'obsd-master'
2019-12-19 10:01:26 +00:00
nicm
1764f66b7d
When adding a list with multiple commands to the queue, the next item to
...
insert after needs to be the last one added, not the first. Reported by
Jason Kim in GitHub issue 2023.
2019-12-19 09:22:33 +00:00
Thomas Adam
d0cd68d5e4
Merge branch 'obsd-master'
2019-12-18 08:01:23 +00:00
nicm
ef54a08080
Do not rely on errno after glob(3) fails.
2019-12-18 07:48:56 +00:00
Thomas Adam
7922f4ee7b
Merge branch 'obsd-master'
2019-12-12 14:33:47 +00:00
nicm
5134666702
Change source-file to use new file code which allows it to read from
...
stdin.
2019-12-12 12:49:36 +00:00
Thomas Adam
c91680822d
Merge branch 'obsd-master'
2019-06-05 23:02:26 +01:00
nicm
8f40796f05
Add a -v flag to source-file to show the commands and line numbers.
2019-06-05 20:00:53 +00:00
Thomas Adam
b8360504f3
Merge branch 'obsd-master'
2019-05-28 15:02:26 +01:00
nicm
299d4f3aaa
Exit 1 correctly if source-file fails.
2019-05-28 12:20:28 +00:00
nicm
0ec410689c
Allow source-file to take multiple arguments.
2019-05-28 11:46:30 +00:00
Thomas Adam
75aeb733f2
Merge branch 'obsd-master'
2019-05-23 13:02:27 +01:00