aboutsummaryrefslogtreecommitdiff
path: root/options.c
Commit message (Collapse)AuthorAge
* Stop caring about empty commands, just treat as a null command.nicm2021-08-21
|
* Break the colour palette into a struct rather than just a single arraynicm2021-08-11
| | | | | | and use that to support the OSC palette-setting sequences in popups. Also add a pane-colours array option to specify the defaults. GitHub issue 2815.
* Add split-window -Z to start the pane zoomed, GitHub issue 2591.nicm2021-03-11
|
* Hide some warnings on newer GCC versions, GitHUb issue 2525.nicm2021-01-18
|
* Allow colour to be spelt as color, from Boris Verkhovsky. GitHub issuenicm2020-08-25
| | | | 2317.
* d and D keys to reset to default in customize mode.nicm2020-06-16
|
* Separate key flags and modifiers, log key flags, make the "xterm" flagnicm2020-05-16
| | | | more explicit and fix M- keys with a leading escape.
* Add a customize mode where keys and options may be browsed and changed,nicm2020-05-16
| | | | | includes adding a brief description of each option. Bound to "C" by default.
* Drop having a separate type for style options and make them all strings,nicm2020-05-16
| | | | | | | | | | | | | | | | | which allows formats to be expanded. Any styles without a '#{' are still validated when they are set but any with a '#{' are not. Formats are not expanded usefully in many cases yet, that will be changed later. To make this work, a few other changes: - set-option -a with a style option automatically appends a ",". - OSC 10 and 11 don't set the window-style option anymore, instead the fg and bg are stored in the pane struct and act as the defaults that can be overridden by window-style. - status-fg and -bg now override status-style instead of trying to keep them in sync.
* Style nits in function arguments.nicm2019-12-03
|
* Rewrite options_array_set to be clearer and remove a spurious warningnicm2019-10-15
| | | | with newer GCC. From Ben Boeckel.
* Memory leaks, from Igor Wong in GitHub issue 1934.nicm2019-10-14
|
* Do not always set scope for panes because the window check might fail,nicm2019-06-23
| | | | GitHub issue 1810.
* FIx return of options_scope_from_name on error.nicm2019-06-20
|
* Add a per-pane option set. Pane options inherit from window options (sonicm2019-06-20
| | | | | | | | | | | | there should be no change to existing behaviour) and are set and shown with set-option -p and show-options -p. Change remain-on-exit and window-style/window-active-style to be pane options (some others will be changed later). This makes select-pane -P and -g unnecessary so no longer document them (they still work) and no longer document set-window-option and show-window-options in favour of set-option -w and show-options -w.
* Add a helper function to work out option table from name.nicm2019-06-20
|
* Do not try to parse command when unsetting, GitHub issue 1788.nicm2019-06-08
|
* Remove a leftover abort and some fixes from cppcheck.nicm2019-05-30
|
* Break the argument escaping code into a separate function and use it tonicm2019-05-23
| | | | escape key bindings in list-keys. Also escape ~ and ; and $ properly.
* 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.
* Fix some indentation and dead assignments.nicm2019-05-12
|
* Merge hooks into options and make each one an array option. This allowsnicm2019-04-26
| | | | | | | multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
* Make options_tostring allocate its result instead of using a stacknicm2019-04-25
| | | | buffer (needed for something in the future).
* Indicate an array option with a flag rather than a special type so thatnicm2019-04-23
| | | | in future will not have to be strings.
* The individual -fg, -bg and -attr options have been deprecated (innicm2019-03-18
| | | | | favour of -style), undocumented and hidden from show-options since 2014. Remove them, except for status-fg and status-bg.
* Make array options a sparse tree instead of an array of char * andnicm2019-03-18
| | | | remove the size limit.
* Add a way to set individual defaults for an array option.nicm2019-03-15
|
* Add a wrapper (struct style) around styles rather than using thenicm2019-03-14
| | | | grid_cell directly. There will be some non-cell members soon.
* Fix filtering so it works after the change to only show windows if theynicm2017-08-09
| | | | have multiple panes.
* Style and spacing nits.nicm2017-05-31
|
* Memory leaks, from David CARLIER.nicm2017-04-22
|
* Handle empty options correctly.nicm2017-03-08
|
* When a flag option is used in a format, it should use the number formnicm2017-01-30
| | | | not string.
* If given an array option without an index either show or set all items,nicm2017-01-24
| | | | | | and support -a for array options. Allow the separator for set to be specified in the options table (will be used for backwards compatibility later).
* Do not reset idx, it has just been set.nicm2017-01-18
|
* options_match needs to explicitly check for user options.nicm2017-01-18
|
* Correctly handle -style options without all of a corresponding -fg/-bg/-attr.nicm2017-01-16
|
* getopt() has a struct option so just return to using options_entry.nicm2017-01-16
|
* Major tidy up and rework of options tree and set-option/show-optionsnicm2017-01-15
| | | | | | | | commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped.
* Append needs to go old,new not new,old...nicm2017-01-15
|
* options_get_style return const too.nicm2017-01-13
|
* Simplify appending to string options.nicm2017-01-12
|
* Some tidying and tweaks to options code.nicm2017-01-11
|
* Loads more static, except for cmd-*.c and window-*.c.nicm2016-10-10
|
* Support set -a (append) with user options, suggested by Xandor Schiefer.nicm2016-09-26
|
* I no longer use my SourceForge address so replace it.nicm2016-01-19
|
* We cannot do hooks_find and then hooks_remove because it might have comenicm2015-12-11
| | | | | | | from the parent (global) tree, instead make it remove by name like options. While here, also tidy up a few bits of options and hooks handling (use RB_FOREACH_SAFE, and a helper function for the free).
* Spacing nits.nicm2015-12-08
|
* Sync the entire xmalloc.[ch] with the other users, but with the additionnicm2015-11-18
| | | | of xrealloc, xvasprintf, xvsnprintf.
* Log option names in fatal() for missing option.nicm2015-11-13
|