summaryrefslogtreecommitdiffstats
path: root/cmd.c
AgeCommit message (Collapse)Author
2023-08-17Merge branch 'obsd-master'Thomas Adam
2023-08-17Add a session, pane and user mouse range types for the status line andnicm
add format variables for mouse_status_line and mouse_status_range so they can be associated with different commands in the key bindings. GitHub issue 3652.
2022-05-30Add an ACL list for users connecting to the tmux socket. Users may benicm
forbidden from attaching, forced to attach read-only, or allowed to attach read-write. A new command, server-access, configures the list. tmux gets the user using getpeereid(3) of the client socket. Users must still configure file system permissions manually. From Dallas Lyons and others.
2022-04-06Add an ACL list for users connecting to the tmux socket. Users may be forbiddenNicholas Marriott
from attaching, forced to attach read-only, or allowed to attach read-write. A new command, server-access, configures the list. tmux gets the user using getpeereid(3) of the client socket. Users must still configure file system permissions manually.
2021-09-10Merge branch 'obsd-master' into masterThomas Adam
2021-09-09Keep -? as usage.nicm
2021-08-27Merge branch 'obsd-master' into masterThomas Adam
2021-08-27Replace %% in command lists (by copying them) for template arguments ,nicm
this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
2021-08-25Merge branch 'obsd-master' into masterThomas Adam
2021-08-25Validate command argument types (string or command list) and give morenicm
useful error messages.
2021-08-22Merge branch 'obsd-master' into masterThomas Adam
2021-08-21Pass typed arguments out of the parser into the arguments list and letnicm
it convert them into strings.
2021-08-21Merge branch 'obsd-master' into masterThomas Adam
2021-08-21Remove some members of struct cmd which are no longer used.nicm
2021-08-21Preserve command group when moving temporary list to current list beingnicm
buit.
2021-08-21Merge branch 'obsd-master' into masterThomas Adam
2021-08-21Wrap command argument definitions in their own struct.nicm
2021-08-20Merge branch 'obsd-master' into masterThomas Adam
2021-08-20Hide struct args behind a couple of accessor functions.nicm
2021-08-20Add a couple of const and fix some warnings.nicm
2021-06-10Add different command historys for different types of promptsnicm
("command", "search" etc). From Anindya Mukherjee.
2021-05-03Add different command historys for different types of prompts ("command",Nicholas Marriott
"search" etc). From Anindya Mukherjee.
2020-06-29Merge branch 'obsd-master'Thomas Adam
2020-06-29Replace TAILQ concatenation loop with TAILQ_CONCATbket
As a result remove unneeded variables OK @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-16Add a customize mode where keys and options may be browsed and changed,nicm
includes adding a brief description of each option. Bound to "C" by default.
2020-05-08Add a customize mode where options may be browsed and changed, includes addingNicholas Marriott
a brief description of each option. Bound to "C" by default.
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-13When parsing strings, put all commands in one group even if there arenicm
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).
2020-04-13When adding a list of commands to the queue, instead of automaticallynicm
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).
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-13Make struct cmd local to cmd.c and move it out of tmux.h.nicm
2020-03-26Merge branch 'obsd-master'Thomas Adam
2020-03-24Add support for overlay popup boxes to show text or output temporarilynicm
above the normal layout. These work similarly to menus and are created with the display-popup command.
2020-01-04Merge branch 'obsd-master'Thomas Adam
2020-01-04Add ~ to quoted characters for %%%, reported by tb@.nicm
2019-10-03Merge branch 'obsd-master'Thomas Adam
2019-10-03Do not lazily use BUFSIZ for "I don't care what size" when buildingnicm
strings because it is only guaranteed to be 256 bytes and even the default 1024 is not always enough. Reported by Gregory Pakosz.
2019-08-29Merge branch 'obsd-master'Thomas Adam
2019-08-29It is not longer necessary to double-escape ; in %%%, problem reportednicm
by Theo Buehler.
2019-07-06Merge branch 'obsd-master'Thomas Adam
2019-07-06Correctly adjust mouse position if the status line is at the top andnicm
more than one line. GitHub issue 1822.
2019-06-14Restore missing functions.Nicholas Marriott
2019-05-25Merge branch 'obsd-master'Thomas Adam
2019-05-25Use client name when logging command queue.nicm
2019-05-25Make cmd_log_argv take a printf-like format for the prefix.nicm
2019-05-23Merge branch 'obsd-master'Thomas Adam
2019-05-23Replace the split parser code (cfg.c and cmd-string.c) with a singlenicm
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.
2019-05-10Merge branch 'obsd-master'Thomas Adam