vimux icon indicating copy to clipboard operation
vimux copied to clipboard

VimuxInterruptRunner using wrong sendkeys

Open kimperator opened this issue 8 years ago • 2 comments

Hello I got some problem with the VimuxInterruptRunner

First of all my Use-Case:

execute VimuxRunCommand to execute "build.sh" to build and run server component. Since it's a server component ant blocking this shell is now executing this program.

For recompiling I want to interrupt the running server (sending Ctrl+c to the pane) and restarting the last server so I use a key-mapping for killing the current build using VimuxInterruptRunner and VimuxRunLastCommand

Problem:

This is currently not working, because VimuxInterruptRunner is sending the key "^c" instead of "C-c".

Questions for implementing a solution

Is this key valid in other terminals, or is this simple a bug? on the one side we could simply edit change the sended keys, otherwise we have to make it variable.

Which one would you prefer?

Used toolset: Archlinuxarm for raspberry pi 2 Vim 8.0 tmux 2.6

Workarround

Calling Vimux SendKeys directly

nnoremap <C-e> :call VimuxOpenRunner()<CR>:sleep 10m<CR>:call VimuxSendKeys("C-c")<CR>:sleep 20m<CR>:VimuxPromptCommand<CR>
nnoremap <C-l> :call VimuxSendKeys("C-c")<CR>:sleep 50m<CR>:VimuxRunLastCommand<CR>   

kimperator avatar Oct 12 '17 11:10 kimperator

:VimuxInterruptRunner does work for me.

On: Vim 8.0.1176 tmux 2.6 Zsh 5.4.2 as well as on bash 4.4.12(1) termite v12 Arch Linux 4.13.6-1

alfunx avatar Oct 16 '17 22:10 alfunx

Is this still a confirmed issue? If so is there any way we could work up a minimal test case with some dummy shell command so we can figure out who it does and doesn't work for with as little setup as possible?

alerque avatar Feb 14 '21 07:02 alerque