Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Expand arguments to some commands where it makes sense, GitHub issue | nicm | 2022-06-07 |
| | | | | 3204 from Anindya Mukherjee. | ||
* | Check if args_strtonum argument is NULL or not a string, from Anindya | nicm | 2022-05-30 |
| | | | | Mukherjee. | ||
* | Allow optional arguments. | nicm | 2022-03-03 |
| | |||
* | fatalx on unknown enum members in a couple of places, from Ben Boeckel. | nicm | 2021-11-02 |
| | |||
* | Keep -? as usage. | nicm | 2021-09-09 |
| | |||
* | Expand argument to run-shell again. | nicm | 2021-09-09 |
| | |||
* | Change copying arguments to that flags without arguments are inserted | nicm | 2021-09-02 |
| | | | | | correctly and empty arguments lists do not crash. Fixes crash reported by & ok mpi@. | ||
* | Replace %% in command lists (by copying them) for template arguments , | nicm | 2021-08-27 |
| | | | | | this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858. | ||
* | Validate command argument types (string or command list) and give more | nicm | 2021-08-25 |
| | | | | useful error messages. | ||
* | args_make_commands_now needs to take an extra reference to the returned | nicm | 2021-08-23 |
| | | | | command list since it will be freed already. | ||
* | Move command argument parsing common functions and don't bother to parse | nicm | 2021-08-23 |
| | | | | again if given a command rather than a string. | ||
* | Free value properly. | nicm | 2021-08-21 |
| | |||
* | Pass typed arguments out of the parser into the arguments list and let | nicm | 2021-08-21 |
| | | | | it convert them into strings. | ||
* | Rename a member to match what it will be in future. | nicm | 2021-08-21 |
| | |||
* | Wrap command argument definitions in their own struct. | nicm | 2021-08-21 |
| | |||
* | A couple more spacing fixes. | nicm | 2021-08-20 |
| | |||
* | Hide struct args behind a couple of accessor functions. | nicm | 2021-08-20 |
| | |||
* | Expose args_value struct (will be needed soon) and add some missing frees. | nicm | 2021-08-20 |
| | |||
* | Add a way to create an empty arguments set. | nicm | 2021-08-20 |
| | |||
* | Fix quoting with newlines and single quotes. | nicm | 2020-06-12 |
| | |||
* | Instead of using a custom parse function to process {}, treat it as a | nicm | 2020-06-04 |
| | | | | | | | 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. | ||
* | Fix some error strings, from Kris Katterjohn. | nicm | 2020-05-25 |
| | |||
* | Add formats for after hook command arguments. | nicm | 2020-05-16 |
| | |||
* | Change so main-pane-width and height can be given as a percentage. | nicm | 2020-04-22 |
| | |||
* | Print empty arguments properly. | nicm | 2020-04-12 |
| | |||
* | Break code to convert an argument as a percentage into a common function. | nicm | 2020-03-21 |
| | |||
* | getopt is not required to set optarg to NULL when there is no argument | nicm | 2020-03-17 |
| | | | | and some do not, so set it explicitly each time. | ||
* | Add a -H flag to send-keys to send literal keys given as hex numbers | nicm | 2019-07-09 |
| | | | | | | (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. | ||
* | Add a -A flag to show-options to show parent options as well. | nicm | 2019-06-20 |
| | |||
* | Use VIS_CSTYLE for the arguments and add the missing escapes it can | nicm | 2019-05-29 |
| | | | | generate to the parser. | ||
* | Do not read past the end of the argument string if it is empty. | nicm | 2019-05-28 |
| | |||
* | Add an additional {} syntax for defining strings in the configuration | nicm | 2019-05-27 |
| | | | | | | | 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. | ||
* | Break the argument escaping code into a separate function and use it to | nicm | 2019-05-23 |
| | | | | escape key bindings in list-keys. Also escape ~ and ; and $ properly. | ||
* | Support multiple occurances of the same argument. Use this for a new | nicm | 2019-04-28 |
| | | | | | | 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. | ||
* | Run alert hooks based on the options rather than unconditionally, from | nicm | 2017-08-23 |
| | | | | Brad Town. | ||
* | Rewrite of choose mode, both to simplify and tidy the code and to add | nicm | 2017-05-30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||
* | Do not need getopt.h. | nicm | 2017-04-22 |
| | |||
* | Plain stravis() because it will mangle UTF-8 characters, so add | nicm | 2017-01-18 |
| | | | | utf8_stravis() which calls our existing utf8_strvis() and use it instead | ||
* | Run arguments through vis() as well when printing them. | nicm | 2017-01-18 |
| | |||
* | Add static in window-*.c and move some internal functions out of tmux.h. | nicm | 2016-10-11 |
| | |||
* | Some more static. | nicm | 2016-10-10 |
| | |||
* | I no longer use my SourceForge address so replace it. | nicm | 2016-01-19 |
| | |||
* | Do not set a limit on the length of commands when printing them. | nicm | 2015-11-27 |
| | |||
* | struct args_entry can go into arguments.c. | nicm | 2015-08-29 |
| | |||
* | Tidy up some includes. | nicm | 2014-10-20 |
| | |||
* | Don't blindly increase offsets by the return value of snprintf, if there | nicm | 2014-04-11 |
| | | | | | wasn't enough space this will go off the end. Instead clamp to the available space. Fixes crash reported by Julien Rebetez. | ||
* | Couple of fixes from cppcheck via Tiago Cunha. | nicm | 2014-01-15 |
| | |||
* | Simplify args_set, from Tiago Cunha. | nicm | 2014-01-09 |
| | |||
* | Include unistd.h as it is the standard location for getopt(). | okan | 2013-11-17 |
| | | | | OK millert@ | ||
* | Instead of eating 1024 bytes or so for the arguments of each command, | Nicholas Marriott | 2013-05-31 |
| | | | | save memory by using an RB tree. From Tiago Cunha. |