AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
931 stars 19 forks source link

[feature request]: move yanked text to bottom of list on paste #85

Closed benwoodward closed 1 year ago

benwoodward commented 1 year ago

It'd be great if there was an option to move a yank back to the most recent position in the list on paste.

Here's the same feature in Alfred:

image

and in Raycast:

image
AckslD commented 1 year ago

Sounds good, would you like to implement that?

benwoodward commented 1 year ago

Sounds good, would you like to implement that?

could you give me some pointers on how to approach that? might give it a go.

AckslD commented 1 year ago

I'm at the moment travelling but could give you some pointers if you still need them when I'm back :)

AckslD commented 1 year ago

Maybe a good starting point is to take a look at how the deletion of an entry is handled:

https://github.com/AckslD/nvim-neoclip.lua/blob/73fd2494b181cdad5dca2be23bfefd6e34621fd2/lua/neoclip/telescope.lua#L193