Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent Yanks filled ContextMenu PastePlugin #52

Open
joehannes opened this issue Dec 16, 2023 · 1 comment
Open

Recent Yanks filled ContextMenu PastePlugin #52

joehannes opened this issue Dec 16, 2023 · 1 comment
Labels
help wanted Extra attention is needed idea

Comments

@joehannes
Copy link

What?
As can be seen eg. here it is possible to vim.keymap.set("n", "<leader>p", ":popup MyCustomContextMenu").
I'd like to see a plugin that populates the ContextMenu with the N last unnamed,unnamedplus register entries, to be triggered via a mnemonic shortcut <leader>p.

Why?
While there's yank-rings, telescope registers, and more ... I think a visual popup would actually be useful in this case, as I simply don't keep my last yanks as a cognitive load - and don't plan to learn to do so ...
However, eg. simply copying something and then having to delete something else before pasting distorts my copy/paste workflow.

Potential existing implementations:
Maybe there's some yank-ring that has a GUI like popup, but I'm not aware of it. Maybe the telescope registers plugin is quite close to this idea.

Potential pitfalls:
If you want to bind it to right mouse, I guess one would have to adapt the ContextMenu source and/or rebind the right mouse button every time a copy/paste happens.

@joehannes joehannes added help wanted Extra attention is needed idea labels Dec 16, 2023
@ptdewey
Copy link

ptdewey commented Mar 15, 2024

I'm not sure if this is entirely what you are looking for, but I wrote a plugin called YankBank that populates a popup window with recent register contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed idea
Projects
None yet
Development

No branches or pull requests

2 participants