easypick.nvim icon indicating copy to clipboard operation
easypick.nvim copied to clipboard

Feature Request: Pass arguments to a picker

Open jkhmtx opened this issue 3 years ago • 4 comments

From the config example, there's a custom picker named "changed_files" that relies on a local for the base branch. It would be great if, for instance, we could pass a base branch into the picker function when we use :Easypick changed_files develop.

For now, I'll just define a changed_files for each base branch I would compare against in my workflow, but it'd be great to extend other pickers this way, too.

jkhmtx avatar Jul 29 '22 15:07 jkhmtx

Hi, I think the way to do this is to allow passing a function as command. I will look into it when I have time.

axkirillov avatar Aug 03 '22 11:08 axkirillov

Any progress on this? Any workarounds?

jcorum11 avatar May 30 '23 17:05 jcorum11

@jcorum11 I tried hacking it together recently but it required mote restructuring than I expected. It's not hard, but I have very little free time to play around.

axkirillov avatar May 30 '23 17:05 axkirillov

+1 for this :-) would be a great feature. Thanks for the great plugin!

GitMurf avatar Jan 01 '24 17:01 GitMurf