Close #1439 - Add an :ALEInfoToFile command

This commit is contained in:
w0rp
2018-04-08 19:04:07 +01:00
parent 1123669839
commit 7cf3ddf6c4
5 changed files with 51 additions and 3 deletions

View File

@@ -211,3 +211,14 @@ function! ale#debugging#InfoToClipboard() abort
call s:Echo('ALEInfo copied to your clipboard')
endfunction
function! ale#debugging#InfoToFile(filename) abort
let l:expanded_filename = expand(a:filename)
redir => l:output
silent call ale#debugging#Info()
redir END
call writefile(split(l:output, "\n"), l:expanded_filename)
call s:Echo('ALEInfo written to ' . l:expanded_filename)
endfunction