Nicholas Marriott
baf71480d0
Merge remote-tracking branch 'origin/master' into command_parser
...
# Conflicts:
# cmd-queue.c
# notify.c
# options.c
2026-07-13 11:12:46 +01:00
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
Nicholas Marriott
1853c220a4
Only print one line by default.
2026-07-01 08:22:21 +01:00
Nicholas Marriott
a97912a4f8
Simplify args stuff.
2026-06-30 17:19:37 +01:00
Your Name
b30f5f82e0
Switch over args stuff.
2026-06-30 16:30:09 +01:00
Nicholas Marriott
b48e2ea8e9
Handle key binding.
2026-06-30 11:20:04 +01:00
Your Name
9e8cf6f0e2
Stub out all users of old API.
2026-06-30 09:39:45 +01:00
Thomas Adam
391f880d07
Merge branch 'obsd-master'
2026-06-26 11:15:06 +01:00
nicm
dd2fef6673
Do not count arguments starting - as optional arguments, makes old
...
resize-pane syntax work. GitHub issue 5275, based on a changed from Dane
Jensen.
2026-06-26 09:54:56 +00:00
Thomas Adam
6643acb375
Merge branch 'obsd-master'
2026-06-23 11:00:09 +01:00
nicm
9dba08ac8b
Allow -p more than 100%, and account for borders when sizing new panes.
...
From Dane Jensen.
2026-06-23 09:29:26 +00:00
Thomas Adam
363d9c401e
Merge branch 'obsd-master'
2024-05-13 14:01:10 +01:00
nicm
8643ece345
Fix memory leak, from Fadi Afani.
2024-05-13 11:45:05 +00:00
Thomas Adam
036d8993e6
Merge branch 'obsd-master'
2024-04-15 12:01:11 +01:00
nicm
e8530c9fee
Fixes for memory leaks reported by Lu Ming Yin, fixes from Howard Chu.
2024-04-15 08:19:55 +00:00
Thomas Adam
bdf8e614af
Merge branch 'obsd-master'
2023-11-14 22:01:09 +00:00
nicm
4dea352dee
Don't strdup NULL filename.
2023-11-14 20:01:11 +00:00
Thomas Adam
151875d144
Merge branch 'obsd-master'
2023-11-14 18:01:10 +00:00
nicm
88fd1f00b8
Handle NULL client (in config file) when showing a status message; also
...
copy the file when processing if-shell since it may be freed. GitHub
issue 3746.
2023-11-14 15:59:49 +00:00
Thomas Adam
9cf58d1a52
Merge branch 'obsd-master'
2023-07-01 02:01:10 +01:00
nicm
a2a02fd7d7
Change a few types to fix warnings, from Thomas Klausner.
2023-06-30 21:55:08 +00:00
Thomas Adam
1d0f68dee9
Merge branch 'obsd-master'
2023-03-15 10:01:10 +00:00
nicm
ac4bb89d43
Fix command prompt not to always append argument but only if there has
...
actually been expansion. GitHub issue 3493.
2023-03-15 08:15:39 +00:00
Thomas Adam
c1a30ed995
Merge branch 'obsd-master'
2023-01-09 02:01:10 +00:00
nicm
565de3f54b
Fix parsing of optional arguments so that and accept a - starting an
...
argument.
2023-01-08 23:34:46 +00:00
Thomas Adam
21e00e4635
Merge branch 'obsd-master'
2023-01-06 09:02:00 +00:00
nicm
3b3f42053a
Add send-keys -K to handle keys directly as if typed (so look up in key
...
table). GitHub issue 3361.
2022-12-16 08:13:40 +00:00
Thomas Adam
9a2fdf8fd4
Merge branch 'obsd-master'
2022-08-02 12:01:09 +01:00
nicm
33c59100ae
Fix validation of missing percentage arguments.
2022-08-02 09:23:34 +00:00
Thomas Adam
be2eb57d62
Merge branch 'obsd-master'
2022-06-07 14:01:09 +01:00
nicm
c07d582e24
Expand arguments to some commands where it makes sense, GitHub issue
...
3204 from Anindya Mukherjee.
2022-06-07 10:02:19 +00:00
nicm
006a529db1
Check if args_strtonum argument is NULL or not a string, from Anindya
...
Mukherjee.
2022-05-30 13:04:24 +00:00
Nicholas Marriott
2cad9a6af8
Check if args_strtonum argument is NULL or not a string, from Anindya
...
Mukherjee.
2022-05-14 20:13:52 +01:00
Thomas Adam
f84f1c0cfe
Merge branch 'obsd-master' into master
2022-03-03 10:01:09 +00:00
nicm
7d4224f207
Allow optional arguments.
2022-03-03 08:24:12 +00:00
Thomas Adam
1fc0d1b74f
Merge branch 'obsd-master' into master
2021-11-02 14:01:11 +00:00
nicm
200b6536e1
fatalx on unknown enum members in a couple of places, from Ben Boeckel.
2021-11-02 10:57:04 +00:00
Thomas Adam
31a6e5eff4
Merge branch 'obsd-master' into master
2021-09-10 02:01:12 +01:00
nicm
768fb9080f
Keep -? as usage.
2021-09-09 21:55:03 +00:00
Thomas Adam
732288c489
Merge branch 'obsd-master' into master
2021-09-09 16:01:09 +01:00
nicm
34312fd6ee
Expand argument to run-shell again.
2021-09-09 13:38:32 +00:00
Thomas Adam
d776c9acfc
Merge branch 'obsd-master' into master
2021-09-02 10:01:09 +01:00
nicm
329c2c2a91
Change copying arguments to that flags without arguments are inserted
...
correctly and empty arguments lists do not crash. Fixes crash reported
by & ok mpi@.
2021-09-02 07:11:03 +00:00
Thomas Adam
609baea95e
Merge branch 'obsd-master' into master
2021-08-27 20:01:11 +01:00
nicm
daec63e5e6
Replace %% in command lists (by copying them) for template arguments ,
...
this means they can be used with {} as well. Also make argument
processing from an existing vector preserve commands. GitHub issue 2858.
2021-08-27 17:25:55 +00:00
Thomas Adam
c6375a0d40
Merge branch 'obsd-master' into master
2021-08-25 12:01:11 +01:00
nicm
03d173cbd8
Validate command argument types (string or command list) and give more
...
useful error messages.
2021-08-25 08:51:55 +00:00
Thomas Adam
7fe3588e49
Merge branch 'obsd-master' into master
2021-08-23 20:01:09 +01:00
nicm
841ce74b43
args_make_commands_now needs to take an extra reference to the returned
...
command list since it will be freed already.
2021-08-23 17:05:43 +00:00