mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
feat(clipboard): add log for clipboard
This commit is contained in:
parent
3bacbcd4ef
commit
664c6d7259
6
bundle/vim-clipboard/autoload/clipboard.vim
vendored
6
bundle/vim-clipboard/autoload/clipboard.vim
vendored
@ -6,7 +6,10 @@
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
let s:LOGGER =SpaceVim#logger#derive('FlyGrep')
|
||||
|
||||
" This script is based on kamilkrz (Kamil Krześ)'s idea about using clipboard.
|
||||
|
||||
function! s:set_command() abort
|
||||
let yank = ''
|
||||
let paste = ''
|
||||
@ -91,5 +94,6 @@ function! s:get_selection_text()
|
||||
endif
|
||||
return join(lines, "\n") . lastchar . (visualmode() ==# 'V' ? "\n" : '')
|
||||
endfunction
|
||||
|
||||
let [s:yank_cmd, s:paste_cmd] = s:set_command()
|
||||
call s:LOGGER.info('yank_cmd is:' . string(s:yank_cmd))
|
||||
call s:LOGGER.info('paste_cmd is:' . string(s:paste_cmd))
|
||||
|
Loading…
Reference in New Issue
Block a user