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: suggest previously used colors in file #2098

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devvaannsh
Copy link
Contributor

@devvaannsh devvaannsh commented Jan 30, 2025

Previously used colors within a file will be prioritized in the color hint suggestions. These colors will be sorted in descending order based on their frequency of occurrence, ensuring that the most frequently used color appears at the top. This prioritization happens before displaying any other color hints.

Works for all color types. (hex, rgb, named colors)

Screenshot 2025-01-30 122837

Copy link

}
}

function getAllColorsInFile() {
Copy link
Member

Choose a reason for hiding this comment

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

We should move this to core as suggested before.

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.

2 participants