History log of /openbsd-src/usr.bin/tmux/cmd-save-buffer.c (Results 1 – 25 of 56)
Revision Date Author Comments
# 3a775927 22-Nov-2024 nicm <nicm@openbsd.org>

Do not strvis output to terminal from commands.


# f260bbaa 07-Dec-2022 nicm <nicm@openbsd.org>

Process escape sequences in show-buffer, GitHub issue 3401.


# a51dead1 21-Aug-2021 nicm <nicm@openbsd.org>

Add args parsing callback for some future work, currently unused.


# 1693b10b 20-Aug-2021 nicm <nicm@openbsd.org>

Hide struct args behind a couple of accessor functions.


# 18dfbca4 11-Feb-2021 nicm <nicm@openbsd.org>

O_TRUNC is needed in case file exists.


# 6523adaf 21-Jul-2020 nicm <nicm@openbsd.org>

Fix show-buffer when run from inside tmux, GitHub issue 2314.


# 035dc73d 13-Apr-2020 nicm <nicm@openbsd.org>

Make client -c and -t handling common in cmd-queue.c and try to be
clearer about whether the client is the target client (must have a
session) or not.


# 040343ae 13-Apr-2020 nicm <nicm@openbsd.org>

Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
use more clearly defined and preparation for some future work).


# 90d7ba38 13-Apr-2020 nicm <nicm@openbsd.org>

Make struct cmd local to cmd.c and move it out of tmux.h.


# f4bc7c7a 12-Dec-2019 nicm <nicm@openbsd.org>

Rewrite the code for reading and writing files. Now, if the client is
not attached, the server process asks it to open the file, similar to
how works for stdin, stdout, stderr. This makes special fil

Rewrite the code for reading and writing files. Now, if the client is
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.

show more ...


# a32bfec9 13-Jun-2019 nicm <nicm@openbsd.org>

Use the right client when working out where to save or load the buffer,
reported by kn@.


# d8443b7b 31-Jul-2018 nicm <nicm@openbsd.org>

Do not leak path or use it after free.


# 980ca567 11-Jul-2018 nicm <nicm@openbsd.org>

Expand formats in load-buffer and save-buffer.


# fb807b18 22-Apr-2017 nicm <nicm@openbsd.org>

Memory leaks, from David CARLIER.


# 527df7dd 14-Feb-2017 nicm <nicm@openbsd.org>

Make source-file look for files relative to the client working directory
(like load-buffer and save-buffer), from Chris Pickel. Also break the
where-is-this-file code out into its own function for lo

Make source-file look for files relative to the client working directory
(like load-buffer and save-buffer), from Chris Pickel. Also break the
where-is-this-file code out into its own function for loadb and saveb.

show more ...


# 07a4101d 06-Jan-2017 nicm <nicm@openbsd.org>

Nits found with clang.


# 68e0a7f2 16-Oct-2016 nicm <nicm@openbsd.org>

Mass rename struct cmd_q to struct cmdq_item and related.


# 7a61a8dd 14-Oct-2016 nicm <nicm@openbsd.org>

Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.


# dc1f0f5f 10-Oct-2016 nicm <nicm@openbsd.org>

Add static in cmd-* and fix a few other nits.


# b0cf51d7 05-Mar-2016 nicm <nicm@openbsd.org>

Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel.


# c057646b 13-Dec-2015 nicm <nicm@openbsd.org>

Use member names in cmd_entry definitions so I stop getting confused
about the order.


# 3447b427 13-Dec-2015 nicm <nicm@openbsd.org>

Instead of every command resolving the target (-t or -s) itself, prepare
the state (client, session, winlink, pane) for it it before entering the
command. Each command provides some flags that tell t

Instead of every command resolving the target (-t or -s) itself, prepare
the state (client, session, winlink, pane) for it it before entering the
command. Each command provides some flags that tell the prepare step
what it is expecting.

This is a requirement for having hooks on commands (for example, if you
hook "select-window -t1:2", the hook command should to operate on window
1:2 not whatever it thinks is the current window), and should allow some
other target improvements.

The old cmd_find_* functions remain for the moment but that layer will
be dropped later.

Joint work with Thomas Adam.

show more ...


# eb843181 14-Nov-2015 nicm <nicm@openbsd.org>

Push stdout and stderr to clients more aggressively, and add an event to
continue if the send fails.


# f1973d0b 10-Nov-2015 nicm <nicm@openbsd.org>

If realpath() fails just try the original path.


# e35bfb07 10-Nov-2015 nicm <nicm@openbsd.org>

Handle absolute paths properly, and don't use resolved path in
realpath() fails.


123