#254 Add a command for copying ALEInfo to your clipboard quickly
This commit is contained in:
parent
ed370667c8
commit
0131526261
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user