···11# YankBank
22-A Neovim plugin for keeping track of more recent yanks and deletions and exposing them in a quick to access menu.
22+A Neovim plugin for keeping track of more recent yanks and deletions and exposing them in a quick access menu.
3344## What it Does
55-<!-- TODO: screenshots -->
66-<!-- TODO: talk about how the menu populates-->
77-TODO:
55+YankBank stores the N recent yanks into the unnamed register ("), then populates a popup window with these recent yanks, allowing for quick access to recent yank history.
66+Upon opening the popup menu, the current contents of the unnamedplus (+) register are also added to the menu (if they are different than the current contents of the unnamed register).
8788+Choosing an entry from the menu (by hitting enter) will paste it into the currently open buffer at the cursor position.
99+1010+Popup window:
1111+
1212+1313+The menu is specific to the current session, and will only contain the contents of the current unnamedplus register upon opening in a completely new session.
1414+It will be populated further for each yank or deletion in that session.
9151016## Installation and Setup
1117···3945vim.keymap.set("n", "<leader>y", ":YankBank<CR>", { noremap = true })
4046```
41474848+## Potential Improvements
4949+- Disallow duplicate entries
5050+- Keybind for yanking from menu instead of pasting
5151+- Expose popup keybind behavior through setup options
5252+- Access to other registers (number/letter registers?)
5353+