aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master' into masterThomas Adam2021-09-10
|\
| * Keep -? as usage.nicm2021-09-09
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-27
|\|
| * Replace %% in command lists (by copying them) for template arguments ,nicm2021-08-27
| | | | | | | | | | this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-25
|\|
| * Validate command argument types (string or command list) and give morenicm2021-08-25
| | | | | | | | useful error messages.
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-22
|\|
| * Pass typed arguments out of the parser into the arguments list and letnicm2021-08-21
| | | | | | | | it convert them into strings.
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-21
|\|
| * Remove some members of struct cmd which are no longer used.nicm2021-08-21
| |
| * Preserve command group when moving temporary list to current list beingnicm2021-08-21
| | | | | | | | buit.
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-21
|\|
| * Wrap command argument definitions in their own struct.nicm2021-08-21
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-20
|\|
| * Hide struct args behind a couple of accessor functions.nicm2021-08-20
| |
| * Add a couple of const and fix some warnings.nicm2021-08-20
| |
| * Add different command historys for different types of promptsnicm2021-06-10
| | | | | | | | ("command", "search" etc). From Anindya Mukherjee.
* | Add different command historys for different types of prompts ("command",Nicholas Marriott2021-05-03
| | | | | | | | "search" etc). From Anindya Mukherjee.
* | Merge branch 'obsd-master'Thomas Adam2020-06-29
|\|
| * Replace TAILQ concatenation loop with TAILQ_CONCATbket2020-06-29
| | | | | | | | | | | | As a result remove unneeded variables OK @nicm
* | Merge branch 'obsd-master'Thomas Adam2020-06-04
|\|
| * Instead of using a custom parse function to process {}, treat it as anicm2020-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.
| * 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.
* | Add a customize mode where options may be browsed and changed, includes addingNicholas Marriott2020-05-08
| | | | | | | | a brief description of each option. Bound to "C" by default.
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * When parsing strings, put all commands in one group even if there arenicm2020-04-13
| | | | | | | | | | | | newlines. This means that for example bind q { a \n b } and bind q "a ; b" are the same. Also log commands in different groups separated by ;; rather than ; (a command list like this should never be user visible).
| * When adding a list of commands to the queue, instead of automaticallynicm2020-04-13
| | | | | | | | | | | | | | creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. This means the current target works even with list with multiple groups (which can happen if they are defined with newlines).
* | Merge branch 'obsd-master'Thomas Adam2020-04-13
|\|
| * Make struct cmd local to cmd.c and move it out of tmux.h.nicm2020-04-13
| |
* | Merge branch 'obsd-master'Thomas Adam2020-03-26
|\|
| * Add support for overlay popup boxes to show text or output temporarilynicm2020-03-24
| | | | | | | | | | above the normal layout. These work similarly to menus and are created with the display-popup command.
* | Merge branch 'obsd-master'Thomas Adam2020-01-04
|\|
| * Add ~ to quoted characters for %%%, reported by tb@.nicm2020-01-04
| |
* | Merge branch 'obsd-master'Thomas Adam2019-10-03
|\|
| * Do not lazily use BUFSIZ for "I don't care what size" when buildingnicm2019-10-03
| | | | | | | | | | strings because it is only guaranteed to be 256 bytes and even the default 1024 is not always enough. Reported by Gregory Pakosz.
* | Merge branch 'obsd-master'Thomas Adam2019-08-29
|\|
| * It is not longer necessary to double-escape ; in %%%, problem reportednicm2019-08-29
| | | | | | | | by Theo Buehler.
* | Merge branch 'obsd-master'Thomas Adam2019-07-06
|\|
| * Correctly adjust mouse position if the status line is at the top andnicm2019-07-06
| | | | | | | | more than one line. GitHub issue 1822.
* | Restore missing functions.Nicholas Marriott2019-06-14
| |
* | Merge branch 'obsd-master'Thomas Adam2019-05-25
|\|
| * Use client name when logging command queue.nicm2019-05-25
| |
| * Make cmd_log_argv take a printf-like format for the prefix.nicm2019-05-25
| |
* | Merge branch 'obsd-master'Thomas Adam2019-05-23
|\|
| * 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.
* | Merge branch 'obsd-master'Thomas Adam2019-05-10
|\|
| * Add support for simple menus usable with mouse or keyboard. New commandnicm2019-05-10
| | | | | | | | | | display-menu shows a menu (bound to the mouse on status line by default) and a couple of extra formats for the default menus.
* | Merge branch 'obsd-master'Thomas Adam2019-05-08
|\|
| * Adjust how mouse targets are found so they always have a session, windownicm2019-05-08
| | | | | | | | and pane.
* | Merge branch 'obsd-master'Thomas Adam2019-05-03
|\|