bew / dotfiles

All my dotfiles in one place!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Universal alphanum identifier completion, bypassing iskeyword

bew opened this issue · comments

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.

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

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.