···120120}
121121```
122122123123+Note: The database can be cleared with the `:YankBankClearDB` command or by deleting the db file (found in the plugin install directory by default).
124124+125125+If you run into any SQL related issues, please file an issue on GitHub. (As a temporary fix, you can also try clearing the database)
126126+123127## Usage
124128125129The 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.
···139143140144Examples:
141145```lua
142142--- get the 2nd entry in the bank
146146+-- get the ith entry in the bank
143147---@param i integer index to get
144148-- output format: { yank_text = "entry", reg_type = "v" }
145145-local e = require("yankbank.api").get_entry(2)
149149+local e = require("yankbank.api").get_entry(i)
146150147151-- add an entry to the bank
148152---@param yank_text string yank text to add to YANKS table
···151155152156-- remove an entry from the bank by index
153157---@param i integer index to remove
154154-require("yankbank.api").remove_entry(1)
158158+require("yankbank.api").remove_entry(i)
159159+160160+--- pin entry to yankbank so that it won't be removed when its position exceeds the max number of entries
161161+---@param i integer index to pin
162162+require("yankbank.api").pin_entry(i)
163163+164164+165165+--- unpin bank entry
166166+---@param i integer index to unpin
167167+require("yankbank.api").unpin_entry(i)
155168```
156169157170For more details about the API see [lua/yankbank/api.lua](lua/yankbank/api.lua)