nvim-neoclip.lua icon indicating copy to clipboard operation
nvim-neoclip.lua copied to clipboard

How to put like nvim-miniyank

Open khalidchawtany opened this issue 2 years ago • 6 comments

I migrated from nvim-miniyank. When using the previous plugin I could yank 3 times and press p multiple times to cycle through pasted text. I have no idea how to achieve it using neoclip.

khalidchawtany avatar Oct 31 '22 12:10 khalidchawtany

If you open the telescope picker you can paste with <C-p> in insert mode or p in normal mode by default. Is that what you were looking for?

AckslD avatar Oct 31 '22 12:10 AckslD

I want to make p paste the last yanked text and if I press p again, it should replace the pasted text with the previous yanked text. Like a ring

khalidchawtany avatar Oct 31 '22 13:10 khalidchawtany

I see, that's currently not a feature of neoclip but happy to receive a PR :)

AckslD avatar Oct 31 '22 13:10 AckslD

Unfortunately I don't have lua experience. Even my config is a mess :) Feel free to close unless you want to keep the issue around.

khalidchawtany avatar Oct 31 '22 13:10 khalidchawtany

No problem, I'll keep it open if someone is looking for the same feature and/or feels like implementing it.

AckslD avatar Oct 31 '22 13:10 AckslD

Seems like https://github.com/gbprod/yanky.nvim#%EF%B8%8F-yank-ring could be sth you're looking for

kohane27 avatar Nov 29 '22 13:11 kohane27