turnip.el icon indicating copy to clipboard operation
turnip.el copied to clipboard

Send current line (with a new line character) to a tmux pane

Open zxcvbn97 opened this issue 9 years ago • 1 comments

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!

zxcvbn97 avatar Sep 17 '15 17:09 zxcvbn97

You could try replacing (end-of-line) with (beginning-of-line 2). This should include the newline character.

kljohann avatar Sep 17 '15 20:09 kljohann