File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -361,6 +361,13 @@ function! run#RunKillAll() abort
361361 endfor
362362endfunction
363363
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+
364371function ! run#RunListToggle () abort
365372 if run#is_qf_open ()
366373 silent call run#closelist ()
Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ COMMANDS *vim-run-commands*
104104:RunKillAll *:RunKillAll*
105105 Sends a SIGKILL signal to all running jobs.
106106
107+ :RunShow *:RunShow*
108+ Opens the output file of the last | Run | job in a split buffer.
109+
107110:RunListToggle *:RunListToggle*
108111 Opens or closes the | RunList | - a | quickfix | menu that shows all jobs,
109112 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>)
6262command -nargs =? -complete =custom ,run#list_running_jobs RunKill :call run#RunKill (<q-args> )
6363command RunKillAll :call run#RunKillAll ()
6464
65+ command RunShow :call run#RunShow ()
6566command RunListToggle :call run#RunListToggle ()
6667command RunClear :call run#RunClear ([' DONE' , ' FAILED' , ' KILLED' ])
6768command RunClearDone :call run#RunClear ([' DONE' ])
You can’t perform that action at this time.
0 commit comments