tweak(default): bind '<leader> 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.
This commit is contained in:
Henrik Lissner 2024-07-07 20:39:32 -04:00
parent c5c7f0bc99
commit 9224ac56f0
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -525,7 +525,7 @@
:desc "Magit fetch" "F" #'magit-fetch :desc "Magit fetch" "F" #'magit-fetch
:desc "Magit buffer log" "L" #'magit-log-buffer-file :desc "Magit buffer log" "L" #'magit-log-buffer-file
:desc "Git stage this file" "S" #'magit-stage-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") (:prefix ("f" . "find")
:desc "Find file" "f" #'magit-find-file :desc "Find file" "f" #'magit-find-file
:desc "Find gitconfig file" "g" #'magit-find-git-config-file :desc "Find gitconfig file" "g" #'magit-find-git-config-file