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] Get the closest color name #587

Closed
anotherhadi opened this issue Oct 6, 2024 · 6 comments
Closed

[Feature] Get the closest color name #587

anotherhadi opened this issue Oct 6, 2024 · 6 comments

Comments

@anotherhadi
Copy link

For some apps, colors can only be sets with colors name (blue, cyan, black, white, ...)
It would be cool to access the closest color name through config.lib.colors.name.baseXX or something like that.

@danth
Copy link
Owner

danth commented Oct 6, 2024

@anotherhadi
Copy link
Author

If I'm not mistaken, this is the inverse of what I need!
The goal is to give a name for a specific base, and not a base for a specific name

@trueNAHO
Copy link
Collaborator

trueNAHO commented Oct 6, 2024

The goal is to give a name for a specific base, and not a base for a specific name

In the future, #249 (comment) would resolve this.

@trueNAHO
Copy link
Collaborator

trueNAHO commented Oct 7, 2024

@anotherhadi, should we close this issue as a duplicate of #249?

@anotherhadi
Copy link
Author

@anotherhadi, should we close this issue as a duplicate of #249?

That's not mentioned but could be added in the comments of #249

@trueNAHO
Copy link
Collaborator

trueNAHO commented Oct 7, 2024

That's not mentioned but could be added in the comments of #249

For example, the Vim highlight groups would instantiate the following named colors:

							*hl-ColorColumn*
ColorColumn	Used for the columns set with 'colorcolumn'.
							*hl-Conceal*
Conceal		Placeholder characters substituted for concealed
		text (see 'conceallevel').
							*hl-CurSearch*
CurSearch	Used for highlighting a search pattern under the cursor
		(see 'hlsearch').

-- nvim --cmd 'help highlight-groups'

@trueNAHO trueNAHO closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
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

3 participants