-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hi,
as this plugin
- only supports fzf.vim
- invisible chars (like control codes in the lower ascii range) needs different output (as in the UnicodeTable)
- additional infos like html tags would be welcome
- the chosen console colour code does not match my liking
I need access to some internal functions / variables or have a new public function like
fu! unicode#FuzzySource() abort "{{{2
if !filereadable(s:data_cache_file) | exe 'UnicodeCache' | endif
if !filereadable(s:data_cache_file)
let s:fuzzy_source = []
return s:WarningMsg('Failed to create the cache file')
endif
exe 'source ' . s:data_cache_file
let l:fuzzydict = {}
for [value,name] in items(g:unicode#unicode#data)
let value += 0
let l:fuzzydict[value] = {
\ 'dec': value,
\ 'char': strtrans(nr2char(value)),
\ 'dig': <sid>GetDigraphChars(value),
\ 'html': <sid>GetHtmlEntity(value, 0),
\ 'codep': printf('U+%04X', value),
\ 'name': g:unicode#unicode#data[value]
\}
endfor
return l:fuzzydict
endfuwhat do you think, should I make a PR for it?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels