File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ command VimuxCloseWindows :call VimuxCloseWindows()
16
16
command VimuxInspectRunner :call VimuxInspectRunner ()
17
17
command VimuxInterruptRunner :call VimuxInterruptRunner ()
18
18
command VimuxPromptCommand :call VimuxPromptCommand ()
19
+ command VimuxClearRunnerHistory :call VimuxClearRunnerHistory ()
19
20
20
21
" DEPRECATED
21
22
command RunLastVimTmuxCommand :call VimuxRunLastCommand ()
@@ -148,6 +149,10 @@ function PromptVimTmuxCommand()
148
149
endfunction
149
150
150
151
152
+ function VimuxClearRunnerHistory ()
153
+ ruby CurrentTmuxSession.new .clear_runner_history
154
+ endfunction
155
+
151
156
ruby << EOF
152
157
class TmuxSession
153
158
def initialize (session, window , pane)
@@ -173,6 +178,10 @@ class TmuxSession
173
178
Vim.command (" unlet g:_VimTmuxRunnerPane" )
174
179
end
175
180
181
+ def clear_runner_history
182
+ _run (" clear-history -t #{target(:pane => runner_pane)}" )
183
+ end
184
+
176
185
def height
177
186
if Vim.evaluate (' exists("g:VimuxHeight")' ) != 0
178
187
Vim.evaluate (' g:VimuxHeight' )
You can’t perform that action at this time.
0 commit comments