This plugin at first only intended to copy image from clipboard but recently I want reuse those images that have been copied. This pr will add two new commands: :PasteImgPick and :PasteImgPickers. Also currently the config will look like this:
The new config introduces pickers table. So the idea is user can create picker with pick.register_pickers(<picker>) and configure it through that pickers table. The current built-in pickers are default, cmdline, and telescope_fd.
:PasteImgPickers is to select your picker, like this :PasteImgPickers telescope_fd. While :PasteImgPick is just an alias of :PasteImgPickers default. From the above config, :PasteImgPickers default will run :PasteImgPickers cmdline.
This plugin at first only intended to copy image from clipboard but recently I want reuse those images that have been copied. This pr will add two new commands:
:PasteImgPick
and:PasteImgPickers
. Also currently the config will look like this:The new config introduces
pickers
table. So the idea is user can create picker withpick.register_pickers(<picker>)
and configure it through thatpickers
table. The current built-in pickers aredefault
,cmdline
, andtelescope_fd
.:PasteImgPickers
is to select your picker, like this:PasteImgPickers telescope_fd
. While:PasteImgPick
is just an alias of:PasteImgPickers default
. From the above config,:PasteImgPickers default
will run:PasteImgPickers cmdline
.Here is the demos:
Cmdline picker
Telescope_fd picker
So what do you think? If there's anything you don't like or you think can be implemented better, please tell me.