vCoolor.vim icon indicating copy to clipboard operation
vCoolor.vim copied to clipboard

Feature request: expose function that returns color

Open romgrk opened this issue 7 years ago • 2 comments

Expose a function that returns a color, e.g.:

let color = vcoolor#pick('#599eff') " Optionnal starting color

romgrk avatar Jan 08 '19 21:01 romgrk

A function which execute the picker with an initial color if I understand? Its partially done in my local 2.0 vcoolor version (rewritten from scratch), but its far from being complete and I'm not intending to push it soon.

I'll make the function for now in master, but note that it will be probably deprecated when the v2.0 will come.

I'm planning to expose a lot of functionalities in the v2.0, some sort of API that will be usable in other plugins, so I'm interested to know why do you need a #pick() function.

KabbAmine avatar Jan 10 '19 08:01 KabbAmine

Yes, a function that executes the picker with an initial color.

It's for custom functions/keymappings.

romgrk avatar Jan 10 '19 16:01 romgrk