summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
AgeCommit message (Collapse)Author
2024-04-23Merge branch 'obsd-master'Thomas Adam
2024-04-23correct indentation; no functional changejsg
ok tb@
2023-09-15Merge branch 'obsd-master'Thomas Adam
2023-09-15Add -t to source-file, GitHub issue 3473.nicm
2023-02-06Merge branch 'obsd-master'Thomas Adam
2023-02-05Extend display-message to work for control clients. GitHub issue 3449.nicm
2023-01-06Merge branch 'obsd-master'Thomas Adam
2023-01-03Query the client terminal for foreground and background colours and ifnicm
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).
2022-12-16Do not escape tabs in output (iTerm2 needs them). GitHub issue 3414.nicm
2022-12-07No vis.h in portable.Nicholas Marriott
2022-12-07Process escape sequences in show-buffer, GitHub issue 3401.nicm
2022-05-30Add a way for lines added to copy mode to be passed through the parsernicm
to handle escape sequences and use it for run-shell, GitHub issue 3156.
2021-08-21Stop caring about empty commands, just treat as a null command.nicm
2021-08-21Rename a member to match what it will be in future.nicm
2021-08-20Hide struct args behind a couple of accessor functions.nicm
2021-08-20Expose args_value struct (will be needed soon) and add some missing frees.nicm
2021-08-12Move hook format setup earlier and add a hook_client, GitHub issue 2809.nicm
2021-04-12Add a flag to disable keys to close a message, GitHub issue 2625.nicm
2021-04-07Add a current_file format for the config file being parsed. Originallynicm
suggested by kn@, also GitHub issue 2638.
2020-11-30Ignore running command when checking for no-hooks flag if it is blocked.nicm
GitHub issue 2483.
2020-07-27Add a -d option to display-message to set delay, from theonekeyg atnicm
gmail dot com in GitHub issue 2322.
2020-06-01Instead of sending all data to control mode clients as fast as possible,nicm
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.
2020-05-16Separate key flags and modifiers, log key flags, make the "xterm" flagnicm
more explicit and fix M- keys with a leading escape.
2020-05-16Add a client flag 'active-pane' which stores the active pane in thenicm
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.
2020-05-16Expand target from client and use it to expand the prompt.nicm
2020-05-16Support embedded styles in the display-message message, GitHub issuenicm
2206.
2020-05-16Change message log to be per server rather than per client and includenicm
every command that is run.
2020-05-16Add formats for after hook command arguments.nicm
2020-04-23Fix a couple of memory leaks, one when creating a new pane and one whennicm
adding formats onto the queue item.
2020-04-14Provide an accessor for the running queue item and use it to not letnicm
hooks recurse.
2020-04-13Make client -c and -t handling common in cmd-queue.c and try to benicm
clearer about whether the client is the target client (must have a session) or not.
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-13Move cmdq_state into cmd-queue.c.nicm
2020-04-13Rename cmdq_shared to cmdq_state which will better reflect what it isnicm
(going to be) used for.
2020-04-13Store a key event not a mouse event in the shared data.nicm
2020-04-13Move the NOHOOKS flag into the shared flags.nicm
2020-04-13Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm
use more clearly defined and preparation for some future work).
2020-04-13Make struct cmd local to cmd.c and move it out of tmux.h.nicm
2020-04-10Now that copy mode copies the pane content rather than keeping anicm
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.
2020-04-03Stop logging the entire command queue every time we add something,nicm
spotted by tb & sthen.
2020-01-05Send errors to stdout in control mode so they don't get reordered withnicm
other output, reported by George Nachman in GitHub issue 2048.
2019-12-19When adding a list with multiple commands to the queue, the next item tonicm
insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023.
2019-12-17Use the message that has already been built rather than the va_list.nicm
2019-12-12Rewrite the code for reading and writing files. Now, if the client isnicm
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.
2019-09-10Set up format tree for %if, GitHub issue 1896.nicm
2019-06-18Add a cmdq_continue function rather than twiddling the flag directly.nicm
2019-05-31Fix warnings, from Ben Boeckel.nicm
2019-05-29The line number needs to be updated only after the \n is processed bynicm
the parser, so store a flag and update it next time around. Also each new line needs its own shared data.
2019-05-25Client name can actually be NULL, so use address in that case.nicm
2019-05-25Use client name when logging command queue.nicm