File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,14 @@ Move into the tmux runner pane created by `RunVimTmuxCommand` and enter copy mod
56
56
map <Leader>ri :InspectVimTmuxRunner<CR>
57
57
```
58
58
59
+ ### CloseVimTmuxRunner
60
+ Close the tmux runner created by ` RunVimTmuxCommand `
61
+
62
+ ``` viml
63
+ " Close vim tmux runner opened by RunVimTmuxCommand
64
+ map <Leader>rq :CloseVimTmuxRunner<CR>
65
+ ```
66
+
59
67
### CloseVimTmuxPanes
60
68
Close all other tmux panes in the current window.
61
69
@@ -90,6 +98,9 @@ map <Leader>ri :InspectVimTmuxRunner<CR>
90
98
" Close all other tmux panes in current window
91
99
map <Leader>rx :CloseVimTmuxPanes<CR>
92
100
101
+ " Close vim tmux runner opened by RunVimTmuxCommand
102
+ map <Leader>rq :CloseVimTmuxRunner<CR>
103
+
93
104
" Interrupt any command running in the runner pane
94
105
map <Leader>rs :InterruptVimTmuxRunner<CR>
95
106
```
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ if !has("ruby")
8
8
end
9
9
10
10
command RunLastVimTmuxCommand :call RunLastVimTmuxCommand ()
11
+ command CloseVimTmuxRunner :call CloseVimTmuxRunner ()
11
12
command CloseVimTmuxPanes :call CloseVimTmuxPanes ()
12
13
command CloseVimTmuxWindows :call CloseVimTmuxWindows ()
13
14
command InspectVimTmuxRunner :call InspectVimTmuxRunner ()
@@ -50,6 +51,11 @@ function CloseVimTmuxWindows()
50
51
echoerr " CloseVimTmuxWindows is deprecated, use CloseVimTmuxPanes"
51
52
endfunction
52
53
54
+ function CloseVimTmuxRunner ()
55
+ ruby CurrentTmuxSession.new .close_runner_pane
56
+ call ClearVimTmuxWindow ()
57
+ endfunction
58
+
53
59
function CloseVimTmuxPanes ()
54
60
ruby CurrentTmuxSession.new .close_other_panes
55
61
call ClearVimTmuxWindow ()
@@ -169,6 +175,10 @@ class TmuxSession
169
175
_move_up_pane
170
176
end
171
177
178
+ def close_runner_pane
179
+ _run (" kill-pane -t #{target(:pane => runner_pane)}" )
180
+ end
181
+
172
182
def close_other_panes
173
183
if _run (" list-panes" ).split (" \n " ).length > 1
174
184
_run (" kill-pane -a" )
You can’t perform that action at this time.
0 commit comments