From 9224ac56f0ff47aa5fb9160f8bddde6ded174ae3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Jul 2024 20:39:32 -0400 Subject: [PATCH] tweak(default): bind ' g U' to magit-unstage-buffer-file The former command, magit-unstable-file, would prompt the user to select a file to unstage, but the intention of this keybind was always to "unstage *this* file". magit-unstage-buffer-file didn't exist at the time this keybind was created, so I settled on magit-unstage-file as a compromise, which is no longer necessary. --- modules/config/default/+evil-bindings.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index f6c32c68f..826ad31d9 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -525,7 +525,7 @@ :desc "Magit fetch" "F" #'magit-fetch :desc "Magit buffer log" "L" #'magit-log-buffer-file :desc "Git stage this file" "S" #'magit-stage-buffer-file - :desc "Git unstage this file" "U" #'magit-unstage-file + :desc "Git unstage this file" "U" #'magit-unstage-buffer-file (:prefix ("f" . "find") :desc "Find file" "f" #'magit-find-file :desc "Find gitconfig file" "g" #'magit-find-git-config-file