Skip to content

Feature Request: Smart In-word completion #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adaszko opened this issue Oct 11, 2024 · 1 comment
Closed

Feature Request: Smart In-word completion #88

adaszko opened this issue Oct 11, 2024 · 1 comment

Comments

@adaszko
Copy link

adaszko commented Oct 11, 2024

It'd be nice if completion candidates were filtered not only based on the prefix but also consider the suffix if completing in the middle of a word (e.g. foo_<TAB>_baz). If there's a space after the cursor, this feature doesn't apply.

Behavior specification:

Let's assume I'm completing foo_|_baz with the cursor positition indicated by |.

Case 1. I have foo_bar_baz somewhere in completion sources. The completion should result in foo_bar_baz.
Case 2. I don't have anything matching the wildcard foo_*_baz in the completion sources but have foo_quux. The completion should then fallback to matching just the prefix and result in completing to foo_quux_baz.

@Saghen Saghen closed this as completed in 815f4df Oct 16, 2024
@Saghen
Copy link
Owner

Saghen commented Oct 18, 2024

This one has been moved from config.fuzzy.keyword_range to config.trigger.completion.keyword_range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants