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

For copy as Text/JSON, allow some configuration #73

Open
lloydi opened this issue Jan 12, 2022 · 2 comments
Open

For copy as Text/JSON, allow some configuration #73

lloydi opened this issue Jan 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@lloydi
Copy link

lloydi commented Jan 12, 2022

OK, fairly simple one to explain. When using 'Copy all as Test', the output is like this:

Foreground: #3f281e · rgb(63, 40, 30) · hsb(17, 52, 25) · hsl(17, 35, 18)
Background: #dcdcdc · rgb(220, 220, 220) · hsb(0, 0, 86) · hsl(0, 0, 86)
Contrast Ratio: 9.97:1
WCAG Compliance: AA Large (Pass) · AA / AAA Large (Pass) · AAA (Pass) · Non-text (Pass)

It would be great if some of these could be trimmed down. So I'm thinking a preference for Copy all like this (with the settings below matching the current default):


Color values:

[✅] Copy all values
[☑️] Copy rgb only
[☑️] Copy hex only
[☑️] Copy hsb only
[☑️] copy hsl only

[✅] Copy WCAG output

Almost always, for me, the key thing to know is the hex value and the contrast, so if I chose:


Color values:

[] Copy all values
[] Copy rgb only
[✅] Copy hex only
[] Copy hsb only
[] copy hsl only

[] Copy WCAG output

I'd get :

Foreground: #3f281e
Background: #dcdcdc
Contrast Ratio: 9.97:1

Which is much cleaner and nearly always all that I need.

What do you think?

@lloydi lloydi added the enhancement New feature or request label Jan 12, 2022
@superhighfives
Copy link
Owner

Hey @lloydi. Thanks for flagging, and for the detailed suggestion.

I think this workflow feels a little heavy for Pika, and one thought I had would be whether you could use something like Raycast to format the text to match your requirements. For example, Raycast has script commands, which would allow you to access the clipboard, perform regex on the contents, and paste to another app. That way you could format it however you need.

Happy to leave to gauge interest in more granularity on export, too.

@lloydi
Copy link
Author

lloydi commented Jan 18, 2022

Ah, well I have already kind of done something like this (using Keyboard Maestro), but was hoping to cut out some steps. Also I am shite at regex, so if I can get it just-so at source, that's preferable.

Anyhoo, I have not heard of Raycast, so I'll look at that as there may be some useful stuff there.

Thanks

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

2 participants