File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ command VimuxScrollDownInspect :call VimuxScrollDownInspect()
12
12
command VimuxInterruptRunner :call VimuxInterruptRunner ()
13
13
command VimuxPromptCommand :call VimuxPromptCommand ()
14
14
command VimuxClearRunnerHistory :call VimuxClearRunnerHistory ()
15
+ command VimuxTogglePane :call VimuxTogglePane ()
15
16
16
17
function ! VimuxRunLastCommand ()
17
18
if exists (" g:VimuxRunnerIndex" )
@@ -80,6 +81,18 @@ function! VimuxCloseRunner()
80
81
endif
81
82
endfunction
82
83
84
+ function ! VimuxTogglePane ()
85
+ if exists (" g:VimuxRunnerIndex" )
86
+ if _VimuxRunnerType () == " window"
87
+ call system (" tmux join-pane -d -s " .g: VimuxRunnerIndex ." -p " ._VimuxOption (" g:VimuxHeight" , 20 ))
88
+ let g: VimuxRunnerType = " pane"
89
+ elseif _VimuxRunnerType () == " pane"
90
+ call system (" tmux break-pane -d -t " .g: VimuxRunnerIndex )
91
+ let g: VimuxRunnerType = " window"
92
+ endif
93
+ endif
94
+ endfunction
95
+
83
96
function ! VimuxZoomRunner ()
84
97
if exists (" g:VimuxRunnerIndex" )
85
98
if _VimuxRunnerType () == " pane"
You can’t perform that action at this time.
0 commit comments