tweak(default): ensure '<leader> g S' is silent

magit-stage-file prompts the user to select a file to stage, but the
intention for these two keys has always been to (un)stage the current
file (and without prompting). This ensures that is the case.

I've also tweaked their description to make that intention clearer.
This commit is contained in:
Henrik Lissner 2024-04-18 13:48:36 -04:00
parent 2f7b309252
commit 0349dab09a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -493,8 +493,8 @@
:desc "Magit clone" "C" #'magit-clone :desc "Magit clone" "C" #'magit-clone
: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 file" "S" #'magit-stage-file :desc "Git stage this file" "S" #'magit-stage-buffer-file
:desc "Git unstage file" "U" #'magit-unstage-file :desc "Git unstage this file" "U" #'magit-unstage-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