Skip to content

Sending a newline/cr-character to tmux #1

@00tau

Description

@00tau

Dear Christian,

I am using your script for sending commands to a running python-REPL. I use the following definitions for sending either the current selection, paragraph or line to tmux.

au FileType python vnoremap "+y:call SendToTmux('%paste')< cr >
au FileType python nnoremap V}"+y:call SendToTmux('%paste')< cr >
au FileType python nnoremap yy:call SendToTmux(@")< cr >j

I have been tinkering for ages now, what I should add to the SendToTmux('%paste') such that this line is in fact evaluated, too. Currently, I always have to switch to the tmux-session in order to press < cr >. The SendToTmux(@") is catching the EOL, so this works like a bliss.

I would be grateful for your help. Thanks for writing this immensely useful script.

Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions