nvim-lua/wishlist

Recent Yanks filled ContextMenu PastePlugin

Open

#52 建立於 2023年12月16日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人) (0 fork)github user discovery
help wantedidea

倉庫指標

Star
 (249 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南