Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Merge branch 'obsd-master' into master | Thomas Adam | 2021-08-23 |
|\ | |||
| * | Fix a few memory leaks. | nicm | 2021-08-23 |
| | | |||
* | | Merge branch 'obsd-master' into master | Thomas Adam | 2021-08-22 |
|\| | |||
| * | Do not double free expanded path in source-file, also remove some | nicm | 2021-08-22 |
| | | | | | | | | unnecessary assignments. | ||
* | | Merge branch 'obsd-master' into master | Thomas Adam | 2021-08-21 |
|\| | |||
| * | Add args parsing callback for some future work, currently unused. | nicm | 2021-08-21 |
| | | |||
* | | Merge branch 'obsd-master' into master | Thomas Adam | 2021-08-20 |
|\| | |||
| * | Hide struct args behind a couple of accessor functions. | nicm | 2021-08-20 |
| | | |||
| * | Do not use NULL client when source-file finishes, GitHub issue 2707. | nicm | 2021-06-10 |
| | | |||
* | | Do not use NULL client when source-file finishes, GitHub issue 2707. | Nicholas Marriott | 2021-05-12 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2020-09-01 |
|\| | |||
| * | Add -F to set-environment and source-file; GitHub issue 2359. | nicm | 2020-09-01 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2020-04-13 |
|\| | |||
| * | Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its | nicm | 2020-04-13 |
| | | | | | | | | use more clearly defined and preparation for some future work). | ||
* | | Merge branch 'obsd-master' | Thomas Adam | 2020-04-13 |
|\| | |||
| * | Make struct cmd local to cmd.c and move it out of tmux.h. | nicm | 2020-04-13 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-12-21 |
|\| | |||
| * | Restore source-file -q behaviour, broken in r1.42; OK nicm@ | tim | 2019-12-21 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-12-19 |
|\| | |||
| * | When adding a list with multiple commands to the queue, the next item to | nicm | 2019-12-19 |
| | | | | | | | | | | insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023. | ||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-12-18 |
|\| | |||
| * | Do not rely on errno after glob(3) fails. | nicm | 2019-12-18 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-12-12 |
|\| | |||
| * | Change source-file to use new file code which allows it to read from | nicm | 2019-12-12 |
| | | | | | | | | stdin. | ||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-06-05 |
|\| | |||
| * | Add a -v flag to source-file to show the commands and line numbers. | nicm | 2019-06-05 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-05-28 |
|\| | |||
| * | Exit 1 correctly if source-file fails. | nicm | 2019-05-28 |
| | | |||
| * | Allow source-file to take multiple arguments. | nicm | 2019-05-28 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-05-23 |
|\| | |||
| * | Replace the split parser code (cfg.c and cmd-string.c) with a single | nicm | 2019-05-23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||
* | | Merge branch 'obsd-master' | Thomas Adam | 2019-05-20 |
|\| | |||
| * | Fix ordering of source-file with multiple files and add flags to load_cfg. | nicm | 2019-05-20 |
| | | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2018-05-24 |
|\| | |||
| * | Make server_client_get_cwd used (almost) everywhere we need to work out | nicm | 2018-05-24 |
| | | | | | | | | | | the cwd, and do not fall back to "." as it is pretty useless. GitHub issue 1331. | ||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-19 |
|\| | |||
| * | load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi. | nicm | 2017-04-19 |
| | | |||
* | | Remove vis.h. | Nicholas Marriott | 2017-02-15 |
|/ | |||
* | Make source-file look for files relative to the client working directory | nicm | 2017-02-14 |
| | | | | | (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. | ||
* | Add -n to break-pane. | nicm | 2017-01-29 |
| | |||
* | source-file -q needs to apply to glob(3) too. | nicm | 2017-01-09 |
| | |||
* | Run the source-file pattern through glob(3). | nicm | 2017-01-09 |
| | |||
* | Mass rename struct cmd_q to struct cmdq_item and related. | nicm | 2016-10-16 |
| | |||
* | Rewrite command queue handling. Each client still has a command queue, | nicm | 2016-10-16 |
| | | | | | | | | | | | | | | | but there is also now a global command queue. Instead of command queues being dispatched on demand from wherever the command happens to be added, they are now all dispatched from the top level server loop. Command queues may now also include callbacks as well as commands, and items may be inserted after the current command as well as at the end. This all makes command queues significantly more predictable and easier to use, and avoids the complex multiple nested command queues used by source-file, if-shell and friends. A mass rename of struct cmdq to a better name (cmdq_item probably) is coming. | ||
* | source-file and some other commands can recurse back into cmdq_continue, | nicm | 2016-10-14 |
| | | | | | | | which could potentially free the currently running command, so we need to take a reference to it in cmdq_continue_one. Fixes problem reported by Theo Buehler. | ||
* | Trying to do hooks generically is way too complicated and unreliable and | nicm | 2016-10-13 |
| | | | | | | | | | | | | | | | | | | confusing, particularly trying to automatically figure out what target hooks should be using. So simplify it: - drop before hooks entirely, they don't seem to be very useful; - commands with special requirements now fire their own after hook (for example, if they change session or window, or if they have -t and -s and need to choose which one the hook uses as current target); - commands with no special requirements can have the CMD_AFTERHOOK flag added and they will use the -t state. At the moment new-session, new-window, split-window fire their own hook, and display-message uses the flag. The remaining commands still need to be looked at. | ||
* | Add static in cmd-* and fix a few other nits. | nicm | 2016-10-10 |
| | |||
* | - Rework load_cfg() error handling a little. | tim | 2016-05-12 |
| | | | | | | - Add -q to source-file to suppress errors about nonexistent files. Input and OK nicm@ | ||
* | Final parts of command hooks, add before- and after- hooks to each command. | nicm | 2016-04-29 |
| | |||
* | Use member names in cmd_entry definitions so I stop getting confused | nicm | 2015-12-13 |
| | | | | about the order. |