#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 ''
|
echom ''
|
||||||
call s:EchoCommandHistory()
|
call s:EchoCommandHistory()
|
||||||
endfunction
|
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.
|
" Define command to get information about current filetype.
|
||||||
command! ALEInfo :call ale#debugging#Info()
|
command! ALEInfo :call ale#debugging#Info()
|
||||||
|
" The same, but copy output to your clipboard.
|
||||||
|
command! ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
|
||||||
|
|
||||||
" <Plug> mappings for commands
|
" <Plug> mappings for commands
|
||||||
nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return>
|
nnoremap <silent> <Plug>(ale_previous) :ALEPrevious<Return>
|
||||||
|
Loading…
Reference in New Issue
Block a user