I used to have this functionality using code below:
(setq magit-display-file-buffer-function
(lambda (buffer)
(setq current-prefix-arg t)
(magit-display-file-buffer-traditional buffer)))
But it doesn't work anymore when I updated to magit 20191217.23.
magit-display-file-buffer-function
andmagit-display-file-buffer-traditional
exists at all in current version and they don't. It looks like some part of magit was refactored. I don't have much time to dwell in the code, I try to by emacs user not developer. I can always rollback to previous version, but it's almost year old. – Adam Faryna Dec 23 '19 at 0:45C-u RET
when point is on the hunk (instead of justRET
). That ismagit-diff-visit-file
with a prefix argument. Or, you can runM-x magit-diff-visit-file-other-window
. – Chris Clark Dec 26 '19 at 17:37