summaryrefslogtreecommitdiffstats
path: root/cmd-show-options.c
AgeCommit message (Collapse)Author
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Still need to walk the options tree for user options.nicm
2019-06-20Add a per-pane option set. Pane options inherit from window options (sonicm
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.
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Add a helper function to work out option table from name.nicm
2019-06-20Add a -A flag to show-options to show parent options as well.nicm
2019-05-23Merge branch 'obsd-master'Thomas Adam
2019-05-23Use the same argument escaping code for options as well.nicm
2019-05-22Merge branch 'obsd-master'Thomas Adam
2019-05-22Fix crash if window doesn't exist, GitHub issue 1751.nicm
2019-05-12Merge branch 'obsd-master'Thomas Adam
2019-05-12Oops, removed too much in last change.nicm
2019-05-12Fix some indentation and dead assignments.nicm
2019-04-30Merge branch 'obsd-master'Thomas Adam
2019-04-30Fix user options after show-hooks merge, GitHub issue 1704.nicm
2019-04-27Merge branch 'obsd-master'Thomas Adam
2019-04-26Merge hooks into options and make each one an array option. This allowsnicm
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).
2019-04-25Merge branch 'obsd-master'Thomas Adam
2019-04-25Make options_tostring allocate its result instead of using a stacknicm
buffer (needed for something in the future).
2019-04-18Merge branch 'obsd-master'Thomas Adam
2019-04-18Copy the code to infer the option type to show-options and document it.nicm
2019-04-05Merge branch 'obsd-master'Thomas Adam
2019-04-05Fix some warnings, from Thomas Adam.nicm
2019-03-19Merge branch 'obsd-master'Thomas Adam
2019-03-18The individual -fg, -bg and -attr options have been deprecated (innicm
favour of -style), undocumented and hidden from show-options since 2014. Remove them, except for status-fg and status-bg.
2019-03-18Merge branch 'obsd-master'Thomas Adam
2019-03-18Make array options a sparse tree instead of an array of char * andnicm
remove the size limit.
2017-05-10Merge branch 'obsd-master'Thomas Adam
2017-05-10Expand formats in option names and add -F flag to do so in option values as ↵nicm
well.
2017-04-22Merge branch 'obsd-master'Thomas Adam
2017-04-22Get rid of the extra layer of flags and cmd_prepare() and just store thenicm
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
2017-01-31Merge branch 'obsd-master'Thomas Adam
2017-01-30When a flag option is used in a format, it should use the number formnicm
not string.
2017-01-24Merge branch 'obsd-master'Thomas Adam
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-18Merge branch 'obsd-master'Thomas Adam
2017-01-18Plain stravis() because it will mangle UTF-8 characters, so addnicm
utf8_stravis() which calls our existing utf8_strvis() and use it instead
2017-01-18Merge branch 'obsd-master'Thomas Adam
2017-01-18options_match needs to explicitly check for user options.nicm
2017-01-16Merge branch 'obsd-master'Thomas Adam
2017-01-16getopt() has a struct option so just return to using options_entry.nicm
2017-01-16Remove vis.h which comes from compat.Nicholas Marriott
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.
2016-10-16Mass rename struct cmd_q to struct cmdq_item and related.nicm
2016-10-14Add CMD_AFTERHOOK flag to the easy commands that don't need any special ↵nicm
handling.
2016-10-10Add static in cmd-* and fix a few other nits.nicm
2016-03-03show-* and set-* need to handle a missing target.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm