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

feat: highlight directories with a different color in filename completion prompt #12205

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

NikitaRevenco
Copy link
Contributor

@NikitaRevenco NikitaRevenco commented Dec 6, 2024

Currently, directories and files both use the same color. This makes it hard to distinguish between them. This PR adds the ability to pass custom styles to prompt items.

Before

image

After

image


For now, I'm using function as the color key. I'm assuming there will need to be a new theme key added, for example ui.text.directory? If so, would I need to add it to all the themes?

@NikitaRevenco NikitaRevenco changed the title feat: use a different color for directories in prompt feat: highlight directories with a different color in filename completion prompt Dec 6, 2024
helix-term/src/ui/mod.rs Outdated Show resolved Hide resolved
@NikitaRevenco
Copy link
Contributor Author

@the-mikedavis what color key should be used for the directories? Should I add ui.text.directory, for example or re-use something existing. Do I need to update each theme to add ui.text.directory in there?

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.

4 participants