Neovim plugin improving access to clipboard history (mirror)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(added new screenshot to readme)

+12 -1
+12 -1
README.md
··· 1 1 # YankBank 2 + 2 3 A Neovim plugin for keeping track of more recent yanks and deletions and exposing them in a quick access menu. 3 4 4 5 ## What it Does 6 + 5 7 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. 6 8 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). 7 9 8 10 Choosing an entry from the menu (by hitting enter) will paste it into the currently open buffer at the cursor position. 9 11 10 - Popup window: 12 + ### Screenshots 13 + 11 14 ![YankBank popup window](assets/screenshot-1.png) 15 + 16 + ![YankBank popup window zoomed](assets/screenshot-2.png) 12 17 13 18 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. 14 19 It will be populated further for each yank or deletion in that session. ··· 35 40 } 36 41 ``` 37 42 43 + ### Setup Options 44 + 38 45 The setup function also supports taking in a table of options: 39 46 | Option | Type | Default | 40 47 |-------------|--------------------------------------------|----------------| ··· 69 76 - `num_behavior = "jump"` jumps to entry matching the pressed number key (i.e. '3' jumps to entry 3) 70 77 - Note: If 'max_entries' is a two-digit number, there will be a delay upon pressing numbers that prefix a valid entry. 71 78 79 + 72 80 ## Usage 73 81 74 82 The popup menu can be opened with the command:`:YankBank`, an entry is pasted at the current cursor position by hitting enter, and the menu can be closed by hitting escape, ctrl-c, or q. ··· 79 87 -- map to '<leader>y' 80 88 vim.keymap.set("n", "<leader>y", "<cmd>YankBank<CR>", { noremap = true }) 81 89 ``` 90 + 82 91 83 92 ## Potential Improvements 93 + 84 94 - Persistence between sessions (through either sqlite database or just a file) 85 95 - Polling on unnamedplus register to populate bank in more intuitive manner (could be enabled as option) 86 96 - nvim-cmp integration ··· 88 98 - Setup options configuring which registers are included 89 99 90 100 ## Alternatives 101 + 91 102 - [nvim-neoclip](https://github.com/AckslD/nvim-neoclip.lua) 92 103 - [yanky.nvim](https://github.com/gbprod/yanky.nvim)
assets/screenshot-2.png

This is a binary file and will not be displayed.