this post was submitted on 23 Feb 2024
9 points (100.0% liked)

Neovim

29 readers
1 users here now

founded 2 years ago
MODERATORS
 

Fairly new neovim user here, so bear with me if I don't get everything.

I'm using neovim with Telescope and I often struggle with the following process: I want to be able to easily save my past yanks and deletions and fuzzily find the one that interest me now. Is there a way to configure Telescope to look into registers for that ?

Also, is there a way to keep the history of deletion as well ? Sometimes I'm deleting A, deleting B, deleting C and want to past A which is no longer accessible (unless I remember to put it in a named register in the first place, which I rarely do).

you are viewing a single comment's thread
view the rest of the comments
[–] bzah@discuss.tchncs.de 1 points 10 months ago* (last edited 10 months ago)

I found out there is actually a builtin function in telescope to fuzzy search in registers. In case someone is interested, I made this binding to access it (lua):

vim.keymap.set('n', 'se', require('telescope.builtin').registers, { desc = '[S]earch r[E]gister' })

I'm not yet sure how to keep the history of deletion though.