fix use-z-for-folds also in magit-mode-map

Keybinding for magit-mode-map has also changed, Z is now magit-worktree
instead of magit-stash. Remap it to magit-stash. Magit-worktree still
has its old mapping to %.
This commit is contained in:
mosquito-magnet 2021-08-24 15:09:45 +02:00 committed by Youmu
parent 53a76e15df
commit 940dfe91aa
1 changed files with 2 additions and 1 deletions

View File

@ -372,7 +372,8 @@ When this option is enabled, the stash popup is available on \"Z\"."
(,states magit-mode-map ,(kbd "<escape>") evil-collection-magit-maybe-deactivate-mark)))
(when evil-collection-magit-use-z-for-folds
`((,states magit-mode-map "z")
`((,states magit-mode-map "Z" magit-stash)
(,states magit-mode-map "z")
(,states magit-mode-map "z1" magit-section-show-level-1-all)
(,states magit-mode-map "z2" magit-section-show-level-2-all)
(,states magit-mode-map "z3" magit-section-show-level-3-all)