turnip.el
turnip.el copied to clipboard
Send current line (with a new line character) to a tmux pane
Hi there,
I'm trying to send the current line (with a new line character) to a tmux pane. However, only the current line is sent, and the line couldn't be executed.
This is my function.
(defun my/turnip-send-line() "Send current line to the last tmux pane." (interactive) (turnip-send-region (save-excursion (beginning-of-line) (point) ) (save-excursion (end-of-line) (point) ) turnip:last-pane )
(message "sent")
)
Please help. Thanks!
You could try replacing (end-of-line)
with (beginning-of-line 2)
. This should include the newline character.