summaryrefslogtreecommitdiffstats
path: root/cfg.c
AgeCommit message (Collapse)Author
2023-09-15Merge branch 'obsd-master'Thomas Adam
2023-09-15Add -t to source-file, GitHub issue 3473.nicm
2022-06-20Merge branch 'obsd-master'Thomas Adam
2022-06-20Do not display configuration file errors in a pane when in control mode,nicm
instead report them with a %config-error notification. GitHub issue 3193.
2022-05-30Add a way for lines added to copy mode to be passed through the parsernicm
to handle escape sequences and use it for run-shell, GitHub issue 3156.
2022-04-18Add a way for lines added to copy mode to be passed through the parser toNicholas Marriott
handle escape sequences and use it for run-shell, GitHub issue 3156.
2021-08-21Merge branch 'obsd-master' into masterThomas Adam
2021-08-21Stop caring about empty commands, just treat as a null command.nicm
2021-04-07Merge branch 'obsd-master' into masterThomas Adam
2021-04-07Add a current_file format for the config file being parsed. Originallynicm
suggested by kn@, also GitHub issue 2638.
2021-02-22Merge branch 'obsd-master' into masterThomas Adam
2021-02-22Move config file path expansion much earlier, keep the list of pathsnicm
around rather than freeing later, and add a config_files format variable containing it. Suggested by kn@ a while back.
2020-05-16Build list of paths and weed out duplicates before loading configs, andnicm
add TMUX_SOCK like TMUX_PATH for the socket directory.
2020-04-23Build list of paths and weed out duplicates before loading configs.Nicholas Marriott
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-13When adding a list of commands to the queue, instead of automaticallynicm
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).
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-10Now that copy mode copies the pane content rather than keeping anicm
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.
2019-12-19Merge branch 'obsd-master'Thomas Adam
2019-12-19When adding a list with multiple commands to the queue, the next item tonicm
insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023.
2019-12-12Merge branch 'obsd-master'Thomas Adam
2019-12-12Change source-file to use new file code which allows it to read fromnicm
stdin.
2019-12-10Merge branch 'obsd-master'Thomas Adam
2019-12-10Make TMUX_CONF a list of files and expand leading $FOO or ~.nicm
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Expand command formats in %if and move the config file loading later (tonicm
when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
2019-06-18Merge branch 'obsd-master'Thomas Adam
2019-06-18Add a cmdq_continue function rather than twiddling the flag directly.nicm
2019-06-05Merge branch 'obsd-master'Thomas Adam
2019-06-05Add a -v flag to source-file to show the commands and line numbers.nicm
2019-05-23Merge branch 'obsd-master'Thomas Adam
2019-05-23Fix line numbers - commands are added after the line ends so they need tonicm
get line - 1.
2019-05-23Merge branch 'obsd-master'Thomas Adam
2019-05-23Replace the split parser code (cfg.c and cmd-string.c) with a singlenicm
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.
2019-05-20Merge branch 'obsd-master'Thomas Adam
2019-05-20Fix ordering of source-file with multiple files and add flags to load_cfg.nicm
2019-05-03Merge branch 'obsd-master'Thomas Adam
2019-05-03Fix order of insertion in load_cfg.nicm
2019-04-18Merge branch 'obsd-master'Thomas Adam
2019-04-18Pass target client and session to load_cfg from source-file so formatsnicm
work. Reported by Thomas Sattler.
2019-04-03Merge branch 'obsd-master'Thomas Adam
2019-04-03Do not load /etc/tmux.conf if given -f.nicm
2019-03-12Merge branch 'obsd-master'Thomas Adam
2019-03-12Allow multiple modes to be open in a pane. A stack of open modes is keptnicm
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-08Merge branch 'obsd-master'Thomas Adam
2019-03-08Make the mode used to view command output (a variant of copy mode) usenicm
its own mode definition struct with a different init function rather than calling special setup functions.
2019-03-07Merge branch 'obsd-master'Thomas Adam
2019-03-07Tidy changing the mode into window_copy_init_for_output.nicm
2019-02-16Merge branch 'obsd-master'Thomas Adam
2019-02-16Use starting client cwd in config file, GitHub issue 1606.nicm