diff options
| author | James Nguyen <james@jojojames.com> | 2026-04-25 12:50:24 -0400 |
|---|---|---|
| committer | James Nguyen <james@jojojames.com> | 2026-04-25 12:50:24 -0400 |
| commit | dbedcf2f52b2050ec09d6217928b82be021ad89d (patch) | |
| tree | 6b990065f718ca046dd73e6a1e7c652763794239 /modes/python | |
| parent | 1b851ae7c02ed783e27c6db6c5c7797633cf29a8 (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/python')
0 files changed, 0 insertions, 0 deletions
