I'd like to discard modified hunks (and ideally, view the diff before) basing on the current buffer position.
I have diff-hl so that it's quite obvious which part of a buffer are modified. Now, how to view the diff for the current hunk and/or discard it?
One way I though this might work is some way to jump to magit's view, moving to the selected hunk - this would show the diff, and then k
would discard it. I was also looking at vc-mode
, but didn't find anything that would fit that use-case.