aboutsummaryrefslogtreecommitdiff
path: root/cfg.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master' into masterThomas Adam2021-08-21
|\
| * Stop caring about empty commands, just treat as a null command.nicm2021-08-21
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-04-07
|\|
| * Add a current_file format for the config file being parsed. Originallynicm2021-04-07
| | | | | | | | suggested by kn@, also GitHub issue 2638.
* | Merge branch 'obsd-master' into masterThomas Adam2021-02-22
|\|
| * Move config file path expansion much earlier, keep the list of pathsnicm2021-02-22
| | | | | | | | | | around rather than freeing later, and add a config_files format variable containing it. Suggested by kn@ a while back.
| * Build list of paths and weed out duplicates before loading configs, andnicm2020-05-16
| | | | | | | | add TMUX_SOCK like TMUX_PATH for the socket directory.
* | Build list of paths and weed out duplicates before loading configs.Nicholas Marriott2020-04-23
| |
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * When adding a list of commands to the queue, instead of automaticallynicm2020-04-13
| | | | | | | | | | | | | | creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. This means the current target works even with list with multiple groups (which can happen if they are defined with newlines).
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Now that copy mode copies the pane content rather than keeping anicm2020-04-10
| | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2019-12-19
|\|
| * When adding a list with multiple commands to the queue, the next item tonicm2019-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 Adam2019-12-12
|\|
| * Change source-file to use new file code which allows it to read fromnicm2019-12-12
| | | | | | | | stdin.
* | Merge branch 'obsd-master'Thomas Adam2019-12-10
|\|
| * Make TMUX_CONF a list of files and expand leading $FOO or ~.nicm2019-12-10
| |
* | Merge branch 'obsd-master'Thomas Adam2019-06-20
|\|
| * Expand command formats in %if and move the config file loading later (tonicm2019-06-20
| | | | | | | | | | when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
* | Merge branch 'obsd-master'Thomas Adam2019-06-18
|\|
| * Add a cmdq_continue function rather than twiddling the flag directly.nicm2019-06-18
| |
* | Merge branch 'obsd-master'Thomas Adam2019-06-05
|\|
| * Add a -v flag to source-file to show the commands and line numbers.nicm2019-06-05
| |
* | Merge branch 'obsd-master'Thomas Adam2019-05-23
|\|
| * Fix line numbers - commands are added after the line ends so they need tonicm2019-05-23
| | | | | | | | get line - 1.
* | Merge branch 'obsd-master'Thomas Adam2019-05-23
|\|
| * Replace the split parser code (cfg.c and cmd-string.c) with a singlenicm2019-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 Adam2019-05-20
|\|
| * Fix ordering of source-file with multiple files and add flags to load_cfg.nicm2019-05-20
| |
* | Merge branch 'obsd-master'Thomas Adam2019-05-03
|\|
| * Fix order of insertion in load_cfg.nicm2019-05-03
| |
* | Merge branch 'obsd-master'Thomas Adam2019-04-18
|\|
| * Pass target client and session to load_cfg from source-file so formatsnicm2019-04-18
| | | | | | | | work. Reported by Thomas Sattler.
* | Merge branch 'obsd-master'Thomas Adam2019-04-03
|\|
| * Do not load /etc/tmux.conf if given -f.nicm2019-04-03
| |
* | Merge branch 'obsd-master'Thomas Adam2019-03-12
|\|
| * Allow multiple modes to be open in a pane. A stack of open modes is keptnicm2019-03-12
| | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2019-03-08
|\|
| * Make the mode used to view command output (a variant of copy mode) usenicm2019-03-08
| | | | | | | | | | its own mode definition struct with a different init function rather than calling special setup functions.
* | Merge branch 'obsd-master'Thomas Adam2019-03-07
|\|
| * Tidy changing the mode into window_copy_init_for_output.nicm2019-03-07
| |
* | Merge branch 'obsd-master'Thomas Adam2019-02-16
|\|
| * Use starting client cwd in config file, GitHub issue 1606.nicm2019-02-16
| |
* | Merge branch 'obsd-master'Thomas Adam2018-01-17
|\|
| * Some unused code, GitHub issue 1219.nicm2018-01-15
| |
* | Merge branch 'obsd-master'Thomas Adam2017-10-06
|\|
| * Support %else in config files to match %if, from Brad Town in GitHubnicm2017-10-06
| | | | | | | | issue 1071.
* | Differences to OpenBSD.Nicholas Marriott2017-05-31
| |
* | Merge branch 'obsd-master'Thomas Adam2017-05-31
|\| | | | | | | | | | | | | Conflicts: Makefile.am cfg.c server-client.c