telescope-undo.nvim icon indicating copy to clipboard operation
telescope-undo.nvim copied to clipboard

[Request] Fold code around x lines away from the diff?

Open Ajaymamtora opened this issue 1 year ago • 0 comments

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: image

but the diff is on line 739: image

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

Ajaymamtora avatar Aug 11 '24 11:08 Ajaymamtora