junegunn / fzf.vim

fzf :heart: vim
MIT License
9.55k stars 583 forks source link

Feature request: way to search buffer history #1426

Open TamaMcGlinn opened 1 year ago

TamaMcGlinn commented 1 year ago

Frequently I remove a line of code and need to re-add it. It would be cool to have a way to search vim's undo-tree contents for lines, so that, for example, I could activate a keybinding and type 'import' to see all the imports that have been removed from the current buffer.

In some cases, you would want to search but not immediately add, but rather view - for example when you are searching for a multiline section. In that case, another keybinding might open for example the MundoDiff of that change to the buffer.

I am not asking you to implement, but would just like to consolidate efforts.