|
|
|
@ -8,6 +8,7 @@ if !has("ruby")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
command RunLastVimTmuxCommand :call RunLastVimTmuxCommand()
|
|
|
|
|
command CloseVimTmuxRunner :call CloseVimTmuxRunner()
|
|
|
|
|
command CloseVimTmuxPanes :call CloseVimTmuxPanes()
|
|
|
|
|
command CloseVimTmuxWindows :call CloseVimTmuxWindows()
|
|
|
|
|
command InspectVimTmuxRunner :call InspectVimTmuxRunner()
|
|
|
|
@ -50,6 +51,11 @@ function CloseVimTmuxWindows()
|
|
|
|
|
echoerr "CloseVimTmuxWindows is deprecated, use CloseVimTmuxPanes"
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function CloseVimTmuxRunner()
|
|
|
|
|
ruby CurrentTmuxSession.new.close_runner_pane
|
|
|
|
|
call ClearVimTmuxWindow()
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function CloseVimTmuxPanes()
|
|
|
|
|
ruby CurrentTmuxSession.new.close_other_panes
|
|
|
|
|
call ClearVimTmuxWindow()
|
|
|
|
@ -169,6 +175,10 @@ class TmuxSession
|
|
|
|
|
_move_up_pane
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def close_runner_pane
|
|
|
|
|
_run("kill-pane -t #{target(:pane => runner_pane)}")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def close_other_panes
|
|
|
|
|
if _run("list-panes").split("\n").length > 1
|
|
|
|
|
_run("kill-pane -a")
|
|
|
|
|