nvim-miniyank icon indicating copy to clipboard operation
nvim-miniyank copied to clipboard

How to cycle only history from register 0

Open yashamon opened this issue 8 years ago • 2 comments

As a default history cycles through all register yanks, how to cycle only history from a particular register, for example 0.

yashamon avatar Jun 29 '17 20:06 yashamon

It is not implemented, but is possible to implement. Basically, in miniyank#startput, go through the pastelist and filter out items with the right register name. We can do this if v:register is not an unnamable register (or better yet, add v:regname in nvim and use it...).

bfredl avatar Jun 30 '17 15:06 bfredl

That would be awesome, I think it would make the plugin even more useful.

On Fri, Jun 30, 2017 at 10:22 AM, Björn Linse [email protected] wrote:

It is not implemented, but is possible to implement. Basically, in miniyank#startput, go through the pastelist and filter out items with the right register name. We can do this if v:register is not an unnamable register (or better yet, add v:regname in nvim and use it...).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bfredl/nvim-miniyank/issues/14#issuecomment-312296686, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBkZiBy7Qz2lYUSz2GfgG_p-UHmDy4jks5sJRKtgaJpZM4OJzSz .

yashamon avatar Jul 04 '17 15:07 yashamon