summaryrefslogtreecommitdiff
path: root/modes/view
diff options
context:
space:
mode:
authorJames Nguyen <james@jojojames.com>2026-04-25 12:50:24 -0400
committerJames Nguyen <james@jojojames.com>2026-04-25 12:50:24 -0400
commitdbedcf2f52b2050ec09d6217928b82be021ad89d (patch)
tree6b990065f718ca046dd73e6a1e7c652763794239 /modes/view
parent1b851ae7c02ed783e27c6db6c5c7797633cf29a8 (diff)
Bind ret & shift-ret for the two related RET commands:
magit-diff-visit-worktree-file and magit-diff-visit-file This allows us to get the old behavior of RET before the switch to defaulting to visiting the diff but still allow consisten behavior. Set this: +(defcustom evil-collection-magit-visit-worktree-file-on-return t to nil to match RET in magit without evil. This would be the original (but updated) behavior. Another way to configure the behavior (and more context): From: `magit-diff-visit-file' In the past \\`<return>' (this command) used to go to the file in the worktree, if point is on an added or context line of a diff showing staged changes. Set `magit-diff-visit-prefer-worktree' to t to restore that behavior, but note that doing so makes the behavior inconsistent and you would give up on the ability to visit the index blob. If you already use \\[magit-diff-visit-worktree-file] to jump to the live \ file from committed changes, it might be better to retrain muscle memory to do the same from staged changes.
Diffstat (limited to 'modes/view')
0 files changed, 0 insertions, 0 deletions