You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we use startsWith() to filter completion items. It is fast, but it is case-sensitive and does not allow imprecise matches with the first few characters.
Maybe we should allow some fuzziness and case-insensitivity?
The text was updated successfully, but these errors were encountered:
renkun-ken
changed the title
Case-insensitive and fuzzy completion
Case-insensitive and fuzzy match in completion
Mar 29, 2021
The easiest is to use built-in agrep() but the completion request is sent by the first few or one character on type, any fuzzy matching will result in too many results. The editor (e.g. vscode) already does some fuzzy matching given a list of completion items.
I tried using grep(ignore.case = TRUE) to filter the result, and it works quite well and there's no notable drop on performance from the experience.
Currently, we use
startsWith()
to filter completion items. It is fast, but it is case-sensitive and does not allow imprecise matches with the first few characters.Maybe we should allow some fuzziness and case-insensitivity?
The text was updated successfully, but these errors were encountered: