summaryrefslogtreecommitdiffstats
path: root/arguments.c
AgeCommit message (Collapse)Author
2020-06-12Merge branch 'obsd-master'Thomas Adam
2020-06-12Fix quoting with newlines and single quotes.nicm
2020-06-04Merge branch 'obsd-master'Thomas Adam
2020-06-04Instead of using a custom parse function to process {}, treat it as anicm
set of statements and parse with yacc, then convert back to a string as the last step. This means the rules are consistent inside and outside {}, %if and friends work at the right time, and the final result isn't littered with unnecessary newlines.
2020-05-26Merge branch 'obsd-master'Thomas Adam
2020-05-25Fix some error strings, from Kris Katterjohn.nicm
2020-05-16Add formats for after hook command arguments.nicm
2020-05-05Add formats for after hook command arguments.Nicholas Marriott
2020-04-22Merge branch 'obsd-master'Thomas Adam
2020-04-22Change so main-pane-width and height can be given as a percentage.nicm
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-12Print empty arguments properly.nicm
2020-03-21Merge branch 'obsd-master'Thomas Adam
2020-03-21Break code to convert an argument as a percentage into a common function.nicm
2020-03-17Merge branch 'obsd-master'Thomas Adam
2020-03-17getopt is not required to set optarg to NULL when there is no argumentnicm
and some do not, so set it explicitly each time.
2019-07-09Merge branch 'obsd-master'Thomas Adam
2019-07-09Add a -H flag to send-keys to send literal keys given as hex numbersnicm
(needed for control clients to send mouse sequences). Also add some format flags for UTF-8 and SGR mouse mode. Requested by Bradley Smith in GitHub issues 1832 and 1833.
2019-06-20Merge branch 'obsd-master'Thomas Adam
2019-06-20Add a -A flag to show-options to show parent options as well.nicm
2019-05-29Merge branch 'obsd-master'Thomas Adam
2019-05-29Use VIS_CSTYLE for the arguments and add the missing escapes it cannicm
generate to the parser.
2019-05-28Merge branch 'obsd-master'Thomas Adam
2019-05-28Do not read past the end of the argument string if it is empty.nicm
2019-05-27Merge branch 'obsd-master'Thomas Adam
2019-05-27Add an additional {} syntax for defining strings in the configurationnicm
file, making it much tidier to define commands that contain other tmux or shell commands (like if-shell). Also tweak bind-key to expect a string if it is only given one argument, so {} can be used with it as well. From Avi Halachmi.
2019-05-23Merge branch 'obsd-master'Thomas Adam
2019-05-23Break the argument escaping code into a separate function and use it tonicm
escape key bindings in list-keys. Also escape ~ and ; and $ properly.
2019-04-28Merge branch 'obsd-master'Thomas Adam
2019-04-28Support multiple occurances of the same argument. Use this for a newnicm
flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697.
2017-08-23Merge branch 'obsd-master'Thomas Adam
2017-08-23Run alert hooks based on the options rather than unconditionally, fromnicm
Brad Town.
2017-05-31Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile.am cfg.c server-client.c
2017-05-30Rewrite of choose mode, both to simplify and tidy the code and to addnicm
some modern features. Now the common code is in mode-tree.c, which provides an API used by the three modes now separated into window-{buffer,client,tree}.c. Buffer mode shows buffers, client mode clients and tree mode a tree of sessions, windows and panes. Each mode has a common set of key bindings plus a few that are specific to the mode. Other changes are: - each mode has a preview pane: for buffers this is the buffer content (very useful), for others it is a preview of the pane; - items may be sorted in different ways ('O' key); - multiple items may be tagged and an operation applied to all of them (for example, to delete multiple buffers at once); - in tree mode a command may be run on the selected item (session, window, pane) or on tagged items (key ':'); - displayed items may be filtered in tree mode by using a format (this is used to implement find-window) (key 'f'); - the custom format (-F) for the display is no longer available; - shortcut keys change from 0-9, a-z, A-Z which was always a bit weird with keys used for other uses to 0-9, M-a to M-z. Now that the code is simpler, other improvements will come later. Primary key bindings for each mode are documented under the commands in the man page (choose-buffer, choose-client, choose-tree). Parts written by Thomas Adam.
2017-04-22Do not need getopt.h.nicm
2017-01-18vis.h comes from compat.h.Nicholas Marriott
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-18Run arguments through vis() as well when printing them.nicm
2016-10-12Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c osdep-openbsd.c
2016-10-11Add static in window-*.c and move some internal functions out of tmux.h.nicm
2016-10-10Merge branch 'obsd-master'Thomas Adam
2016-10-10Some more static.nicm
2016-01-19Merge branch 'obsd-master'Thomas Adam
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-11-27Merge branch 'obsd-master'Thomas Adam
2015-11-27Do not set a limit on the length of commands when printing them.nicm
2015-08-30Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile format.c
2015-08-29struct args_entry can go into arguments.c.nicm
2015-07-13Check for flock in libbsd for AIX, and remove some getopt.h includes. From JNicholas Marriott
Raynor.