From ba349c7cc342d8e078ff6699384e8153bfd5a01d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 6 Jan 2026 15:01:15 -0800 Subject: oni-magit: Set ‘magit-diff-visit-prefer-worktree’ to t --- oni-magit.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/oni-magit.el b/oni-magit.el index 97cc1af..9e34fcd 100644 --- a/oni-magit.el +++ b/oni-magit.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2025.0627.153316 +;; Version: 2026.0106.150051 ;; Package-Requires: (magit magit-popup oni-hydra) ;; This program is free software; you can redistribute it and/or modify @@ -61,6 +61,12 @@ _i_: Init (when (eq system-type 'windows-nt) (setq magit-git-executable "c:/msys64/usr/bin/git.exe")) +;;; The behavior was changed recently. The return key now opens the index file +;;; rather than the worktree file. I'm so used to return going to the worktree +;;; file that I just don't like the new behavior. I'm not sure what I'd ever +;;; want to see the index file for. +(setq magit-diff-visit-prefer-worktree t) + ;;;###autoload (global-set-key (kbd "C-c v") '("Magit commands" . oni-hydra-magit/body)) -- cgit v1.3-2-g0d8e