|
|
@ -5,6 +5,7 @@ end
|
|
|
|
command RunLastVimTmuxCommand :call RunLastVimTmuxCommand()
|
|
|
|
command RunLastVimTmuxCommand :call RunLastVimTmuxCommand()
|
|
|
|
command CloseVimTmuxWindows :call CloseVimTmuxWindows()
|
|
|
|
command CloseVimTmuxWindows :call CloseVimTmuxWindows()
|
|
|
|
command InspectVimTmuxRunner :call InspectVimTmuxRunner()
|
|
|
|
command InspectVimTmuxRunner :call InspectVimTmuxRunner()
|
|
|
|
|
|
|
|
command InterruptVimTmuxRunner :call InterruptVimTmuxRunner()
|
|
|
|
command PromptVimTmuxCommand :call PromptVimTmuxCommand()
|
|
|
|
command PromptVimTmuxCommand :call PromptVimTmuxCommand()
|
|
|
|
|
|
|
|
|
|
|
|
function! RunVimTmuxCommand(command)
|
|
|
|
function! RunVimTmuxCommand(command)
|
|
|
@ -31,6 +32,10 @@ function! CloseVimTmuxWindows()
|
|
|
|
call ClearVimTmuxWindow()
|
|
|
|
call ClearVimTmuxWindow()
|
|
|
|
endfunction
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function! InterruptVimTmuxRunner()
|
|
|
|
|
|
|
|
ruby CurrentTmuxSession.new.interrupt_runner
|
|
|
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
|
|
function! InspectVimTmuxRunner()
|
|
|
|
function! InspectVimTmuxRunner()
|
|
|
|
ruby CurrentTmuxSession.new.inspect_runner
|
|
|
|
ruby CurrentTmuxSession.new.inspect_runner
|
|
|
|
endfunction
|
|
|
|
endfunction
|
|
|
@ -110,6 +115,10 @@ class TmuxSession
|
|
|
|
runner_pane
|
|
|
|
runner_pane
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def interrupt_runner
|
|
|
|
|
|
|
|
run("send-keys -t #{target(:pane => runner_pane)} ^c")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def run_shell_command(command)
|
|
|
|
def run_shell_command(command)
|
|
|
|
send_command(command, target(:pane => runner_pane))
|
|
|
|
send_command(command, target(:pane => runner_pane))
|
|
|
|
move_up_pane
|
|
|
|
move_up_pane
|
|
|
|