telescope-undo.nvim
telescope-undo.nvim copied to clipboard
[Request] Fold code around x lines away from the diff?
When In a long file where the diffs are somewhere far from the top of the file, I have to manually scroll down loads until I find the diff. It would be great if the picker only showed 5 or 6 lines around where the diff is like Github and IntelliJ do so I don't have to scroll and can just see the changes as I go down the items in the picker.
e.g. this is where the previewer is initially at the top of the file:
but the diff is on line 739:
An alternative could be that the first diff is always initially focused, and allow a keymap to jump to next/prev diff? This way no fancy code is needed to calculate where to fold etc