Const
Save a tmux paste buffer to a file (tmux save-buffer).
tmux save-buffer
The buffer contents when path is -, otherwise an empty string.
-
await tmux.saveBuffer("./notes.txt", { bufferName: "notes" }); Copy
await tmux.saveBuffer("./notes.txt", { bufferName: "notes" });
Save a tmux paste buffer to a file (
tmux save-buffer).