summaryrefslogtreecommitdiffstats
path: root/options.c
AgeCommit message (Collapse)Author
2017-08-09Fix filtering so it works after the change to only show windows if theynicm
have multiple panes.
2017-05-31Style and spacing nits.nicm
2017-04-22Memory leaks, from David CARLIER.nicm
2017-03-08Handle empty options correctly.nicm
2017-01-30When a flag option is used in a format, it should use the number formnicm
not string.
2017-01-24If given an array option without an index either show or set all items,nicm
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).
2017-01-18Do not reset idx, it has just been set.nicm
2017-01-18options_match needs to explicitly check for user options.nicm
2017-01-16Correctly handle -style options without all of a corresponding -fg/-bg/-attr.nicm
2017-01-16getopt() has a struct option so just return to using options_entry.nicm
2017-01-15Major tidy up and rework of options tree and set-option/show-optionsnicm
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.
2017-01-15Append needs to go old,new not new,old...nicm
2017-01-13options_get_style return const too.nicm
2017-01-12Simplify appending to string options.nicm
2017-01-11Some tidying and tweaks to options code.nicm
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-09-26Support set -a (append) with user options, suggested by Xandor Schiefer.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-12-11We cannot do hooks_find and then hooks_remove because it might have comenicm
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).
2015-12-08Spacing nits.nicm
2015-11-18Sync the entire xmalloc.[ch] with the other users, but with the additionnicm
of xrealloc, xvasprintf, xvsnprintf.
2015-11-13Log option names in fatal() for missing option.nicm
2015-10-27Move struct options into options.c.nicm
2015-02-18When given an invalid style, don't set the option to the default. Fixnicm
from J Raynor. Also make style_parse not alter the grid_cell when it fails.
2014-10-20Better format for printf format attributes.nicm
2014-01-28Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm
options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
2014-01-09Style and comment fixes from Tiago Cunha.nicm
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-01-21Use RB trees not SPLAY.Nicholas Marriott
2012-01-21Drop the ability to have a list of keys in the prefix in favour of twoNicholas Marriott
separate options, prefix and prefix2. This simplifies the code and gets rid the data options type which was only used for this one option. Also add a -2 flag to send-prefix to send the secondary prefix key, fixing a cause of minor irritation. People who want three prefix keys are out of luck :-).
2009-09-22Permit multiple prefix keys to be defined, separated by commas, for example:Nicholas Marriott
set -g prefix ^a,^b Any key in the list acts as the prefix. The send-prefix command always sends the first key in the list.
2009-09-21Use option print function for info messages as well.Nicholas Marriott
2009-09-21Drop tiny union from option struct.Nicholas Marriott
2009-07-21Make some functions which return unused values void (mostly found by lint) andNicholas Marriott
tweak a redundant expression in window_pane_set_mode.
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti