#254 Add a command for copying ALEInfo to your clipboard quickly

This commit is contained in:
w0rp 2017-02-14 23:45:22 +00:00
parent ed370667c8
commit 0131526261
2 changed files with 10 additions and 0 deletions

View File

@ -107,3 +107,11 @@ function! ale#debugging#Info() abort
echom ''
call s:EchoCommandHistory()
endfunction
function! ale#debugging#InfoToClipboard() abort
redir @+>
silent call ale#debugging#Info()
redir END
echom 'ALEInfo copied to your clipboard'
endfunction

View File

@ -199,6 +199,8 @@ command! ALEToggle :call s:ALEToggle()
" Define command to get information about current filetype.
command! ALEInfo :call ale#debugging#Info()
" The same, but copy output to your clipboard.
command! ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
" <Plug> mappings for commands
nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return>