File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,13 @@ function! run#RunKillAll() abort
361
361
endfor
362
362
endfunction
363
363
364
+ function ! run#RunShow () abort
365
+ let cmd = " find " . g: rundir . " -type f | sort -r" .
366
+ \ " | head -n 1"
367
+ let lastfile = trim (system (cmd))
368
+ exec ' split ' .lastfile
369
+ endfunction
370
+
364
371
function ! run#RunListToggle () abort
365
372
if run#is_qf_open ()
366
373
silent call run#closelist ()
Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ COMMANDS *vim-run-commands*
104
104
:RunKillAll *:RunKillAll*
105
105
Sends a SIGKILL signal to all running jobs.
106
106
107
+ :RunShow *:RunShow*
108
+ Opens the output file of the last | Run | job in a split buffer.
109
+
107
110
:RunListToggle *:RunListToggle*
108
111
Opens or closes the | RunList | - a | quickfix | menu that shows all jobs,
109
112
their status, and their log files. The list is updated every time jobs
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ command -nargs=* -complete=file RunSendKeys :call run#RunSendKeys(<q-args>)
62
62
command -nargs =? -complete =custom ,run#list_running_jobs RunKill :call run#RunKill (<q-args> )
63
63
command RunKillAll :call run#RunKillAll ()
64
64
65
+ command RunShow :call run#RunShow ()
65
66
command RunListToggle :call run#RunListToggle ()
66
67
command RunClear :call run#RunClear ([' DONE' , ' FAILED' , ' KILLED' ])
67
68
command RunClearDone :call run#RunClear ([' DONE' ])
You can’t perform that action at this time.
0 commit comments