⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

VimuxInterruptRunner using wrong sendkeys  #159

@kimperator

Description

@kimperator

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>   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions