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

May I ask if it supports highlighting in formats like 0xffaaaaaaa #67

Open
yzwik opened this issue Apr 1, 2024 · 7 comments
Open

May I ask if it supports highlighting in formats like 0xffaaaaaaa #67

yzwik opened this issue Apr 1, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@yzwik
Copy link

yzwik commented Apr 1, 2024

A very beautiful project, thank you for your work.
I found that the format 0xffaadd is acceptable when using it, but 0xaarrggbb does not work
May I ask if it supports highlighting in formats like 0xffaaaaaaa thank you

@brenoprata10 brenoprata10 added the enhancement New feature or request label Apr 3, 2024
@brenoprata10
Copy link
Owner

What is the difference of 0xaarrggbb and 0xffaadd? Are they the same thing, but with additional configuration like opacity?
I am not familiar with this color code format, so I would appreciate if you could explain it to me 😜

@yzwik
Copy link
Author

yzwik commented Apr 15, 2024

Yes, it's just that there's more transparency, there's no other difference

@bassamsdata
Copy link

supporting this format would be awesome.

It's an Android color format. also used in some projects I use like sketchybar. here's a color picker for it as well.

in addition, for more info here is a simple stackoverflow answer.

As a side note, nvim-colorizor supports this format as well, so might benefit from it's integration, although I know this plugin is totally different.

at the end, I'd like to thank you for this cool plugin.

@yzwik
Copy link
Author

yzwik commented May 15, 2024

supporting this format would be awesome.

It's an Android color format. also used in some projects I use like sketchybar. here's a color picker for it as well.

in addition, for more info here is a simple stackoverflow answer.

As a side note, nvim-colorizor supports this format as well, so might benefit from it's integration, although I know this plugin is totally different.

at the end, I'd like to thank you for this cool plugin.

but nvim-colorizor it seems that the format 0xrrggbb is not supported

@bassamsdata
Copy link

but nvim-colorizor it seems that the format 0xrrggbb is not supported

True, but this plugin does support it. I think the issue is with the format 0xAARRGGBB, isn't it?

@yzwik
Copy link
Author

yzwik commented May 15, 2024

but nvim-colorizor it seems that the format 0xrrggbb is not supported

True, but this plugin does support it. I think the issue is with the format 0xAARRGGBB, isn't it?

yes

@RolfSievert
Copy link

Just a suggestion; could also make it possible to add custom formats. What I mean is that in the config you could add:

custom_formats = {
    '0xAARRGGBB',
    '0xRRGGBBAA',
    -- etc
}

, where A, R, G, and B are reserved characters for matching color channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants