aboutsummaryrefslogtreecommitdiff
path: root/cmd-queue.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2023-01-06
|\
| * Query the client terminal for foreground and background colours and ifnicm2023-01-03
| | | | | | | | | | | | OSC 10 or 11 is received but no colour has been set inside tmux, return the colour from the first attached client (probably most people will have all light or or all dark terminals).
| * Do not escape tabs in output (iTerm2 needs them). GitHub issue 3414.nicm2022-12-16
| |
* | No vis.h in portable.Nicholas Marriott2022-12-07
|/
* Process escape sequences in show-buffer, GitHub issue 3401.nicm2022-12-07
|
* Add a way for lines added to copy mode to be passed through the parsernicm2022-05-30
| | | | to handle escape sequences and use it for run-shell, GitHub issue 3156.
* Stop caring about empty commands, just treat as a null command.nicm2021-08-21
|
* Rename a member to match what it will be in future.nicm2021-08-21
|
* Hide struct args behind a couple of accessor functions.nicm2021-08-20
|
* Expose args_value struct (will be needed soon) and add some missing frees.nicm2021-08-20
|
* Move hook format setup earlier and add a hook_client, GitHub issue 2809.nicm2021-08-12
|
* Add a flag to disable keys to close a message, GitHub issue 2625.nicm2021-04-12
|
* Add a current_file format for the config file being parsed. Originallynicm2021-04-07
| | | | suggested by kn@, also GitHub issue 2638.
* Ignore running command when checking for no-hooks flag if it is blocked.nicm2020-11-30
| | | | GitHub issue 2483.
* Add a -d option to display-message to set delay, from theonekeyg atnicm2020-07-27
| | | | gmail dot com in GitHub issue 2322.
* Instead of sending all data to control mode clients as fast as possible,nicm2020-06-01
| | | | | | add a limit of how much data will be sent to the client and try to use it for panes with some degree of fairness. GitHub issue 2217, with George Nachman.
* Separate key flags and modifiers, log key flags, make the "xterm" flagnicm2020-05-16
| | | | more explicit and fix M- keys with a leading escape.
* Add a client flag 'active-pane' which stores the active pane in thenicm2020-05-16
| | | | | | | | | client and allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane.
* Expand target from client and use it to expand the prompt.nicm2020-05-16
|
* Support embedded styles in the display-message message, GitHub issuenicm2020-05-16
| | | | 2206.
* Change message log to be per server rather than per client and includenicm2020-05-16
| | | | every command that is run.
* Add formats for after hook command arguments.nicm2020-05-16
|
* Fix a couple of memory leaks, one when creating a new pane and one whennicm2020-04-23
| | | | adding formats onto the queue item.
* Provide an accessor for the running queue item and use it to not letnicm2020-04-14
| | | | hooks recurse.
* Make client -c and -t handling common in cmd-queue.c and try to benicm2020-04-13
| | | | | clearer about whether the client is the target client (must have a session) or not.
* 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).
* Move cmdq_state into cmd-queue.c.nicm2020-04-13
|
* Rename cmdq_shared to cmdq_state which will better reflect what it isnicm2020-04-13
| | | | (going to be) used for.
* Store a key event not a mouse event in the shared data.nicm2020-04-13
|
* Move the NOHOOKS flag into the shared flags.nicm2020-04-13
|
* Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm2020-04-13
| | | | use more clearly defined and preparation for some future work).
* Make struct cmd local to cmd.c and move it out of tmux.h.nicm2020-04-13
|
* Now that copy mode copies the pane content rather than keeping anicm2020-04-10
| | | | | | | | | | reference to it, it isn't necessary that the pane in copy mode is the same as the one copying from. Add a -s flag to copy-mode to specify a different pane for the source content. This means it is possible to view two places in a pane's history at the same time in different panes, or copy from a pane's history into an editor or shell in the same pane. From Anindya Mukherjee.
* Stop logging the entire command queue every time we add something,nicm2020-04-03
| | | | spotted by tb & sthen.
* Send errors to stdout in control mode so they don't get reordered withnicm2020-01-05
| | | | other output, reported by George Nachman in GitHub issue 2048.
* When adding a list with multiple commands to the queue, the next item tonicm2019-12-19
| | | | | insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023.
* Use the message that has already been built rather than the va_list.nicm2019-12-17
|
* Rewrite the code for reading and writing files. Now, if the client isnicm2019-12-12
| | | | | | | | | not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.
* Set up format tree for %if, GitHub issue 1896.nicm2019-09-10
|
* Add a cmdq_continue function rather than twiddling the flag directly.nicm2019-06-18
|
* Fix warnings, from Ben Boeckel.nicm2019-05-31
|
* The line number needs to be updated only after the \n is processed bynicm2019-05-29
| | | | | the parser, so store a flag and update it next time around. Also each new line needs its own shared data.
* Client name can actually be NULL, so use address in that case.nicm2019-05-25
|
* Use client name when logging command queue.nicm2019-05-25
|
* Don't remove group items for group 0 (no group).nicm2019-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.
* Replace the various identical error callbacks with a single one in cmd-queue.c.nicm2019-05-20
|
* Move the single command flag (CMD_CONTROL) into the shared flags.nicm2019-05-18
|
* Insert after the right element on queue.nicm2019-05-03
|
* Correct ordering when adding after an existing item.nicm2019-05-03
|