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

Feature: Add Fuzzy Select match highlighting #179

Merged
merged 1 commit into from Mar 7, 2022

Conversation

deg0nz
Copy link
Contributor

@deg0nz deg0nz commented Mar 6, 2022

This implements #163.

In the SimpleTheme, the matched characters are printed bold, the default ColorfulTheme prints the characters in bold and yellow.

The highlighting is enabled by default and can be turned off via .highlight_matches(false) in the prompt builder.

Here's an example:

highlight-fuzzy-indices

@pksunkara pksunkara merged commit 4f8ffda into console-rs:master Mar 7, 2022
@deg0nz deg0nz deleted the highlight-fuzzy-indices branch March 7, 2022 15:41
@Araxeus
Copy link

Araxeus commented May 9, 2022

There's a feature regression here:
the currently selected option isn't colored anymore

I personally think it looks weird now, could it be added back?

(it's uncolored regardless of .highlight_matches() or its style)

EDIT: opened an issue #195

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.

None yet

3 participants