#
926caf46 |
| 16-Dec-2024 |
nicm <nicm@openbsd.org> |
Add a nesting limit to source-file, from Fadi Afani in GitHub issue 4223.
|
#
38cf620f |
| 12-Oct-2024 |
nicm <nicm@openbsd.org> |
Call realpath on the source file to match -f on the command line, GitHub issue 4180.
|
#
04d313c5 |
| 15-Sep-2023 |
nicm <nicm@openbsd.org> |
Add -t to source-file, GitHub issue 3473.
|
#
1d297f78 |
| 23-Aug-2021 |
nicm <nicm@openbsd.org> |
Fix a few memory leaks.
|
#
80b5a9d1 |
| 22-Aug-2021 |
nicm <nicm@openbsd.org> |
Do not double free expanded path in source-file, also remove some unnecessary assignments.
|
#
a51dead1 |
| 21-Aug-2021 |
nicm <nicm@openbsd.org> |
Add args parsing callback for some future work, currently unused.
|
#
1693b10b |
| 20-Aug-2021 |
nicm <nicm@openbsd.org> |
Hide struct args behind a couple of accessor functions.
|
#
f7302605 |
| 10-Jun-2021 |
nicm <nicm@openbsd.org> |
Do not use NULL client when source-file finishes, GitHub issue 2707.
|
#
9f04068a |
| 01-Sep-2020 |
nicm <nicm@openbsd.org> |
Add -F to set-environment and source-file; GitHub issue 2359.
|
#
040343ae |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
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).
|
#
90d7ba38 |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
Make struct cmd local to cmd.c and move it out of tmux.h.
|
#
20066256 |
| 21-Dec-2019 |
tim <tim@openbsd.org> |
Restore source-file -q behaviour, broken in r1.42; OK nicm@
|
#
95cd24f8 |
| 19-Dec-2019 |
nicm <nicm@openbsd.org> |
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.
|
#
b58687ef |
| 18-Dec-2019 |
nicm <nicm@openbsd.org> |
Do not rely on errno after glob(3) fails.
|
#
2ea347cc |
| 12-Dec-2019 |
nicm <nicm@openbsd.org> |
Change source-file to use new file code which allows it to read from stdin.
|
#
5304b409 |
| 05-Jun-2019 |
nicm <nicm@openbsd.org> |
Add a -v flag to source-file to show the commands and line numbers.
|
#
45fe3463 |
| 28-May-2019 |
nicm <nicm@openbsd.org> |
Exit 1 correctly if source-file fails.
|
#
e88cca1e |
| 28-May-2019 |
nicm <nicm@openbsd.org> |
Allow source-file to take multiple arguments.
|
#
df6ab229 |
| 23-May-2019 |
nicm <nicm@openbsd.org> |
Replace the split parser code (cfg.c and cmd-string.c) with a single parser using yacc(1). This is a major change but is clearer and simpler and allows some edge cases to be made more consistent, as
Replace the split parser code (cfg.c and cmd-string.c) with a single parser using yacc(1). This is a major change but is clearer and simpler and allows some edge cases to be made more consistent, as well as tidying up how aliases are handled. It will also allow some further improvements later.
Entirely the same parser is now used for parsing the configuration file and for string commands. This means that constructs previously only available in .tmux.conf, such as %if, can now be used in string commands (for example, those given to if-shell - not commands invoked from the shell, they are still parsed by the shell itself).
The only syntax change I am aware of is that #{} outside quotes or a comment is now considered a format and not a comment, so #{ is now a syntax error (notably, if it is at the start of a line).
This also adds two new sections to the man page documenting the syntax and outlining how parsing and command execution works.
Thanks to everyone who sent me test configs (they still all parse without errors - but this doesn't mean they still work as intended!).
Thanks to Avi Halachmi for testing and man page improvements, also to jmc@ for reviewing the man page changes.
show more ...
|
#
44c91ad4 |
| 20-May-2019 |
nicm <nicm@openbsd.org> |
Fix ordering of source-file with multiple files and add flags to load_cfg.
|
#
8a00c84c |
| 24-May-2018 |
nicm <nicm@openbsd.org> |
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.
|
#
da3dc5d4 |
| 19-Apr-2017 |
nicm <nicm@openbsd.org> |
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
|
#
527df7dd |
| 14-Feb-2017 |
nicm <nicm@openbsd.org> |
Make source-file look for files relative to the client working directory (like load-buffer and save-buffer), from Chris Pickel. Also break the where-is-this-file code out into its own function for lo
Make source-file look for files relative to the client working directory (like load-buffer and save-buffer), from Chris Pickel. Also break the where-is-this-file code out into its own function for loadb and saveb.
show more ...
|
#
cd61bdb2 |
| 29-Jan-2017 |
nicm <nicm@openbsd.org> |
Add -n to break-pane.
|
#
147fa935 |
| 09-Jan-2017 |
nicm <nicm@openbsd.org> |
source-file -q needs to apply to glob(3) too.
|