Nicholas Marriott
16064a410e
Merge branch 'master' into command_parser
2026-07-21 08:34:58 +01:00
nicm
1ce000062a
Remove the active-pane flag for now, there are some gaps in how this
...
works and I don't like it. May come back in a different form (maybe just
for windows).
2026-07-17 14:08:08 +00:00
Nicholas Marriott
66e6b2e1c3
Merge master into command_parser
2026-07-15 10:34:14 +01:00
nicm
1a02c9957c
Convert display-panes away from an overlay and into a mode. This is
...
another step on the road of getting rid of overlays altogether (they are
full of special cases; popups and menus are to go also eventually). We
lose some of the styling of borders but gain the ability to run
display-panes in another pane (perhaps not hugely useful but one never
knows). The -b flag goes away as no longer useful.
2026-07-14 19:57:30 +00:00
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
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
e935342702
More cleanup.
2026-06-30 22:32:36 +01:00
Nicholas Marriott
c92720e3b0
Preserve file and flags.
2026-06-30 17:37:15 +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
nicm
3bff7a9e62
Allow run-shell arguments after a shell command to be expanded as #1 , #2
...
and so on. From Rasmus Thystrup Karstensen in GitHub issue 5121.
2026-06-01 08:27:37 +00:00
nicm
ec58272b95
Do not hang run-shell when job_run fails, from Barrett Ruth in GitHub
...
issue 5037.
2026-04-28 08:34:15 +00:00
nicm
1ce1e7ef27
Add -E to run-shell to forward stderr as well as stdout, from github at
...
jyn dot dev in GitHub issue 4246.
2025-05-12 10:16:42 +00:00
nicm
68ffe65499
Fix documentation around optional arguments. This includes:
...
- Syncing between the usage string in code and in the man page.
- Adding optional arguments that were not mentioned (such as
shell-command arguments).
- Adding square brackets around arguments that are actually optional.
From Julian Prein (julian at druck dot dev) in GitHub issue 4419.
2025-04-09 07:03:04 +00:00
nicm
80eb460fc9
Add display-message -C flag to update pane while message is displayed,
...
GitHub issue 4363 from Vitaly Ostrosablin.
2025-02-10 08:14:32 +00:00
nicm
fb37d52dde
Restore previous behaviour or writing to stdout if available.
2024-05-14 07:33:01 +00:00
nicm
71d453f169
Add -c to run-shell to set working directory, from someone in GitHub
...
issue 3661.
2023-08-23 08:40:25 +00:00
nicm
18838fbc87
Do not attempt to use client in config file (it will be NULL), GitHub
...
issue 3206.
2022-06-02 21:19:32 +00:00
nicm
cd89000c1d
Add a way for lines added to copy mode to be passed through the parser
...
to handle escape sequences and use it for run-shell, GitHub issue 3156.
2022-05-30 13:00:18 +00:00
nicm
759efe1b33
Add -e flag to set environment for popup, from Alexis Hildebrandt in
...
GitHub issue 2924.
2021-10-11 10:55:30 +00:00
nicm
3c3d371f99
Fix run-shell -d with no command, GitHub issue 2885.
2021-09-16 06:39:22 +00:00
nicm
a19cac5c46
For the moment, restore if-shell and run-shell to parsing at the last
...
moment (when the shell command completes) rather than when first
invoked, GitHub issue 2872.
2021-09-15 07:38:30 +00:00
nicm
34312fd6ee
Expand argument to run-shell again.
2021-09-09 13:38:32 +00: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
nicm
210e71edf3
Move command argument parsing common functions and don't bother to parse
...
again if given a command rather than a string.
2021-08-23 12:33:55 +00:00
nicm
08e6360f23
Add args parsing callback for some future work, currently unused.
2021-08-21 10:22:38 +00:00
nicm
5f32b7d961
Hide struct args behind a couple of accessor functions.
2021-08-20 19:50:16 +00:00
nicm
a2b8506917
Set return code for confirm-before and make command-prompt also block,
...
GitHub issue 2822.
2021-08-13 06:50:42 +00:00
nicm
e6abe55134
Add a flag to disable keys to close a message, GitHub issue 2625.
2021-04-12 09:36:12 +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
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
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
d52ac7d027
Do not wait on shutdown for commands started with run -b.
2020-06-12 10:31:12 +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
3f7f9a0e20
Make client -c and -t handling common in cmd-queue.c and try to be
...
clearer about whether the client is the target client (must have a
session) or not.
2020-04-13 20:51:57 +00: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
nicm
c20eb0c0ae
Make struct cmd local to cmd.c and move it out of tmux.h.
2020-04-13 08:26:27 +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
nicm
5aeab5ab40
Preserve exit status from run-shell and pass to the client.
2020-03-21 13:15:38 +00:00
nicm
e8273a993e
Add a flag to run a background process in a pty as well, not used for
...
anything yet.
2020-03-19 13:43:18 +00:00
nicm
fa36e9bc88
Do not add a reference to the session if no session is present.
2020-03-13 06:19:33 +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
9272fe36e2
Add a cmdq_continue function rather than twiddling the flag directly.
2019-06-18 11:08:42 +00:00
nicm
3f6bfbaf2b
Allow multiple modes to be open in a pane. A stack of open modes is kept
...
and the previous restored when the top is exited. If a mode that is
already on the stack is entered, the existing instance is moved to the
top as the active mode rather than being opened new.
2019-03-12 11:16:49 +00:00
nicm
de730f68a4
Make the mode used to view command output (a variant of copy mode) use
...
its own mode definition struct with a different init function rather
than calling special setup functions.
2019-03-08 10:34:20 +00:00
nicm
3c24bc5617
Tidy changing the mode into window_copy_init_for_output.
2019-03-07 19:34:22 +00:00
nicm
79d2351ce8
Memory leaks, from Gang Fan in GitHub issue 1453.
2018-08-27 11:03:34 +00:00
nicm
bceccc6b63
Move job struct into job.c.
2018-08-23 15:45:05 +00:00
nicm
b9a6162d2f
Make server_client_get_cwd used (almost) everywhere we need to work out
...
the cwd, and do not fall back to "." as it is pretty useless. GitHub
issue 1331.
2018-05-24 09:42:49 +00:00
nicm
19f3a5c612
Add a missing client-detached hook when the server shuts down, and do
...
not exit until jobs started from run-shell/if-shell have finished (add a
job flags member and a flag to indicate other jobs). GitHub issue 1245.
2018-03-08 08:09:10 +00:00