Rivoreo Source Code Repositories
src.rivoreo.one
/
tmux
/
3.1a
/
cmd-if-shell.c
tag
fb256e46343f0d8b7df01855b76a77476d4244e5
tagger
Nicholas Marriott <nicholas.marriott@gmail.com>
Mon Apr 27 09:38:25 2020 +0100
object
d0fa5207889ee9ee4db45ac3684c882109f91e5b
3.1a
f6a9f6b
Use the right client for if -b.
by nicm
· 5 years ago
9272fe3
Add a cmdq_continue function rather than twiddling the flag directly.
by nicm
· 5 years ago
b12df01
Pass target on to new commands with if -F.
by nicm
· 5 years ago
6b0fa14
Fix error handling in if-shell.
by nicm
· 5 years ago
723010b
Replace the split parser code (cfg.c and cmd-string.c) with a single
by nicm
· 5 years ago
79d2351
Memory leaks, from Gang Fan in GitHub issue 1453.
by nicm
· 6 years ago
bceccc6
Move job struct into job.c.
by nicm
· 6 years ago
b9a6162
Make server_client_get_cwd used (almost) everywhere we need to work out
by nicm
· 6 years ago
19f3a5c
Add a missing client-detached hook when the server shuts down, and do
by nicm
· 7 years ago
eb6fd6f
if-shell doesn't need to queue its error message into a callback, and in
by nicm
· 7 years ago
ee45a8a
Get rid of the extra layer of flags and cmd_prepare() and just store the
by nicm
· 7 years ago
30348ed
Fix if-shell without a client (so in the config file). Reported by Theo Buehler.
by nicm
· 7 years ago
bba5887
Store state shared between multiple commands in the queue in a shared structure.
by nicm
· 7 years ago
0b44ad9
If a #() command doesn't exit, use its most recent line of output (it
by nicm
· 7 years ago
6b2009a
Add a helper function for the most common format_create/defaults/expand pattern.
by nicm
· 8 years ago
7d23d01
Add a window or pane id "tag" to each format tree and use it to separate
by nicm
· 8 years ago
52847a9
It is silly for cmd_list_parse to return an integer error when it could
by nicm
· 8 years ago
b342bd0
Mass rename struct cmd_q to struct cmdq_item and related.
by nicm
· 8 years ago
ddc4512
Rewrite command queue handling. Each client still has a command queue,
by nicm
· 8 years ago
4289a1e
Trying to do hooks generically is way too complicated and unreliable and
by nicm
· 8 years ago
a81685b
Add static in cmd-* and fix a few other nits.
by nicm
· 8 years ago
1db6d6f
Pass file/line to new command for if-shell so that errors appear sensibly.
by nicm
· 8 years ago
975aa3c
Expand client formats (like run-shell), from Stephen M Coakley.
by nicm
· 8 years ago
0d84fdd
Final parts of command hooks, add before- and after- hooks to each command.
by nicm
· 8 years ago
f0239a8
Remove some more unused variables, and use RB_FOREACH_SAFE in
by nicm
· 9 years ago
a3129fd
Instead of combined flags for -c, -s, -t, split into different sets
by nicm
· 9 years ago
ecfeee2
Use member names in cmd_entry definitions so I stop getting confused
by nicm
· 9 years ago
4a4daf1
Instead of every command resolving the target (-t or -s) itself, prepare
by nicm
· 9 years ago
01831da
Add cmdq as an argument to format_create and add a format for the
by nicm
· 9 years ago
e0f26dc
Remove format_create_flags and just pass flags to format_create.
by nicm
· 9 years ago
933929c
Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.
by nicm
· 9 years ago
01defc9
Because pledge(2) does not allow us to pass directory file descriptors
by nicm
· 9 years ago
a4b4b29
Rename cmd_q dead flag to a general flags bitmask (will be more flags later).
by nicm
· 9 years ago
583b4ab
Set working directory for run-shell and if-shell.
by nicm
· 9 years ago
d16b640
The free callback could end up being fired before the done callback
by nicm
· 9 years ago
bc3786e
Pass mouse events through to commands for if-shell.
by nicm
· 9 years ago
bf635e7
Rewrite of tmux mouse support which was a mess. Instead of having
by nicm
· 10 years ago
4946f74
Wrap all the individual format_* calls in a single format_defaults functions.
by nicm
· 10 years ago
54ca7b2
Add -F to if-shell to allow it to be used to check for format or option
by nicm
· 10 years ago
45dfc5a
Instead of setting up the default keys by building the key struct
by nicm
· 10 years ago
fc54bfe
Make cmdq->client_exit a tristate (-1 means "not set") so that if
by nicm
· 11 years ago
972da2d
Try to establish client for run-shell and if-shell if no -t.
by Nicholas Marriott
· 12 years ago
d28a39d
Extend jobs to support writing and use that for copy-pipe instead of
by Nicholas Marriott
· 12 years ago
20636d9
Add a command queue to standardize and simplify commands that call other
by Nicholas Marriott
· 12 years ago
66edb33
Expand format variables in the run-shell and if-shell shell commands,
by Nicholas Marriott
· 12 years ago
d1e6ce2
Add functions to allocate and free command contexts rather than doing it
by Nicholas Marriott
· 12 years ago
a194430
Remove dead code, from Sean Estabrooks.
by Nicholas Marriott
· 12 years ago
ede8312
Make command exec functions return an enum rather than -1/0/1 values and
by Nicholas Marriott
· 12 years ago
df912e3
xfree is not particularly helpful, remove it. From Thomas Adam.
by Nicholas Marriott
· 12 years ago
5ed3daf
Didn't really think the else behaviour through - requiring argv to
by Nicholas Marriott
· 13 years ago
6821ccc
Add an else clause for if-shell, from "arno-" on SourceForge.
by Nicholas Marriott
· 13 years ago
70d2322
Nuke a redundant if statement, from Tiago Cunha.
by Nicholas Marriott
· 13 years ago
db7a89b
Simplify the way jobs work and drop the persist type, so all jobs are
by Nicholas Marriott
· 14 years ago
7502cb3
Clean up and simplify tmux command argument parsing.
by Nicholas Marriott
· 14 years ago
c87187f
When changing so that the client passes its stdout and stderr as well as
by Nicholas Marriott
· 14 years ago
b9c873c
Return the command client return code with MSG_EXIT now that MSG_ERROR and
by Nicholas Marriott
· 14 years ago
76ef877
Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the
by Nicholas Marriott
· 15 years ago
2f813ef
Add a flag for jobs that shouldn't be freed after they've died and use it for
by Nicholas Marriott
· 15 years ago
325e20d
Convert if-shell over to the background job framework as well.
by Nicholas Marriott
· 15 years ago
6fab9a3
Use KEYC_NONE constant instead of 0 on init.
by Nicholas Marriott
· 15 years ago
34a82e7
Make all messages sent between the client and server fixed size.
by Nicholas Marriott
· 15 years ago
5f108d9
Having fixed flags for single-character getopt options is a bit hard to
by Nicholas Marriott
· 15 years ago
81181bf
New command, if-shell (alias if). Executes the tmux command in the second
by Nicholas Marriott
· 15 years ago