Skip to content
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

Use a fuzzy matcher for commands #1386

Merged
merged 3 commits into from
Dec 29, 2021

Conversation

stuarth
Copy link
Contributor

@stuarth stuarth commented Dec 27, 2021

For me this is a nice quality of life improvement that helps with discoverability of commands. Open to other points of view though 😄

Copy link
Member

@dead10ck dead10ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally like this, though I wonder if it would be worth adding a config option?

@@ -3044,6 +3045,9 @@ pub mod cmd {
});
}

static FUZZY_MATCHER: Lazy<fuzzy_matcher::skim::SkimMatcherV2> =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: Since this is only used inside fn command_mode I'd move the definition inside the fn body, that way it's scoped to the command.

@archseer
Copy link
Member

I think it's okay to drop the old behavior here 👍🏻

@archseer archseer merged commit 34db33e into helix-editor:master Dec 29, 2021
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

Successfully merging this pull request may close these issues.

3 participants