aboutsummaryrefslogtreecommitdiff
path: root/cmd-save-buffer.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2022-12-07
|\
| * Process escape sequences in show-buffer, GitHub issue 3401.nicm2022-12-07
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-21
|\|
| * Add args parsing callback for some future work, currently unused.nicm2021-08-21
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-08-20
|\|
| * Hide struct args behind a couple of accessor functions.nicm2021-08-20
| |
* | Merge branch 'obsd-master' into masterThomas Adam2021-02-17
|\|
| * O_TRUNC is needed in case file exists.nicm2021-02-11
| |
* | Merge branch 'obsd-master'Thomas Adam2020-07-21
|\|
| * Fix show-buffer when run from inside tmux, GitHub issue 2314.nicm2020-07-21
| |
* | Merge branch 'obsd-master'Thomas Adam2020-04-14
|\|
| * 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.
* | Merge branch 'obsd-master'Thomas Adam2020-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).
* | 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 Adam2019-12-12
|\|
| * 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.
| * Use the right client when working out where to save or load the buffer,nicm2019-06-13
| | | | | | | | reported by kn@.
* | Use the right client when working out where to save or load the buffer,nicm2019-06-14
| | | | | | | | reported by kn@.
* | Merge branch 'obsd-master'Thomas Adam2018-07-31
|\|
| * Do not leak path or use it after free.nicm2018-07-31
| |
* | Merge branch 'obsd-master'Thomas Adam2018-07-11
|\|
| * Expand formats in load-buffer and save-buffer.nicm2018-07-11
| |
* | Merge branch 'obsd-master'Thomas Adam2017-04-22
|\|
| * Memory leaks, from David CARLIER.nicm2017-04-22
| |
* | Merge branch 'obsd-master'Thomas Adam2017-02-14
|\|
| * Make source-file look for files relative to the client working directorynicm2017-02-14
| | | | | | | | | | (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.
* | Merge branch 'obsd-master'Thomas Adam2017-01-06
|\|
| * Nits found with clang.nicm2017-01-06
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|
| * Mass rename struct cmd_q to struct cmdq_item and related.nicm2016-10-16
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-15
|\|
| * Add CMD_AFTERHOOK flag to the easy commands that don't need any special ↵nicm2016-10-14
| | | | | | | | handling.
* | Merge branch 'obsd-master'Thomas Adam2016-10-12
|\| | | | | | | | | | | Conflicts: format.c osdep-openbsd.c
| * Add static in cmd-* and fix a few other nits.nicm2016-10-10
| |
* | Merge branch 'obsd-master'Thomas Adam2016-03-05
|\|
| * Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel.nicm2016-03-05
| |
* | Merge branch 'obsd-master'Thomas Adam2015-12-13
|\|
| * Use member names in cmd_entry definitions so I stop getting confusednicm2015-12-13
| | | | | | | | about the order.
* | Merge branch 'obsd-master'Thomas Adam2015-12-13
|\|
| * Instead of every command resolving the target (-t or -s) itself, preparenicm2015-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2015-11-14
|\| | | | | | | | | | | Conflicts: server.c tmux.c
| * Push stdout and stderr to clients more aggressively, and add an event tonicm2015-11-14
| | | | | | | | continue if the send fails.
* | Merge branch 'obsd-master'Thomas Adam2015-11-11
|\| | | | | | | | | Conflicts: utf8.c
| * If realpath() fails just try the original path.nicm2015-11-10
| |
| * Handle absolute paths properly, and don't use resolved path innicm2015-11-10
| | | | | | | | realpath() fails.
* | Merge branch 'obsd-master'Thomas Adam2015-10-31
|\|
| * Because pledge(2) does not allow us to pass directory file descriptorsnicm2015-10-31
| | | | | | | | | | | | | | | | | | around, we can't use file descriptors for the working directory because we will be unable to pass it to a privileged process to tell it where to read or write files or spawn children. So move tmux back to using strings for the current working directory. We try to check it exists with access() when it is set but ultimately fall back to ~ if it fails at time of use (or / if that fails too).
* | Merge branch 'obsd-master'Thomas Adam2015-08-30
|\| | | | | | | | | | | Conflicts: Makefile format.c