|
|
|
@ -12,6 +12,7 @@ command VimuxScrollDownInspect :call VimuxScrollDownInspect()
|
|
|
|
|
command VimuxInterruptRunner :call VimuxInterruptRunner()
|
|
|
|
|
command VimuxPromptCommand :call VimuxPromptCommand()
|
|
|
|
|
command VimuxClearRunnerHistory :call VimuxClearRunnerHistory()
|
|
|
|
|
command VimuxTogglePane :call VimuxTogglePane()
|
|
|
|
|
|
|
|
|
|
function! VimuxRunLastCommand()
|
|
|
|
|
if exists("g:VimuxRunnerIndex")
|
|
|
|
@ -80,6 +81,18 @@ function! VimuxCloseRunner()
|
|
|
|
|
endif
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function! VimuxTogglePane()
|
|
|
|
|
if exists("g:VimuxRunnerIndex")
|
|
|
|
|
if _VimuxRunnerType() == "window"
|
|
|
|
|
call system("tmux join-pane -d -s ".g:VimuxRunnerIndex." -p "._VimuxOption("g:VimuxHeight", 20))
|
|
|
|
|
let g:VimuxRunnerType = "pane"
|
|
|
|
|
elseif _VimuxRunnerType() == "pane"
|
|
|
|
|
let g:VimuxRunnerIndex=substitute(system("tmux break-pane -d -t ".g:VimuxRunnerIndex." -P -F '#{window_index}'"), "\n", "", "")
|
|
|
|
|
let g:VimuxRunnerType = "window"
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function! VimuxZoomRunner()
|
|
|
|
|
if exists("g:VimuxRunnerIndex")
|
|
|
|
|
if _VimuxRunnerType() == "pane"
|
|
|
|
|