bew / dotfiles

All my dotfiles in one place!
39 stars 3 forks source link

Universal alphanum identifier completion, bypassing iskeyword #66

Open bew opened 3 years ago

bew commented 3 years ago

Is it possible?

A completion provider that bypass iskeyword and suggests completions from universal identifiers in the buffer.

This would allow a huge gitgutter#hunk#close_hunk_previ| to be completed if close_hunk_preview_window is present in the buffer, even if iskeyword includes #.

Bonus points: work with fuzzy matching, with input like gitgutter#hunk#clhpre|

I'd like to see it ONLY (?) if there are no other completion candidates available.

bew commented 2 years ago

Make multiple tries: If nothing can match with alphanumeric chars only, add _ to possible chars, if no match, add -, etc..

bew commented 5 months ago

IDEA: this could be mapped to a dedicated key (e.g. C-b ?), so I get full control on the completion sources here without adding usually-useless sources for usual auto-completion.