Magit: Use kbd with S-SPC and S-DEL (#406)

This commit is contained in:
James Nguyen 2020-11-25 13:10:40 -08:00
parent e24469514a
commit 2cf81f91ea
1 changed files with 5 additions and 2 deletions

View File

@ -290,8 +290,11 @@ moment.")
;; (,states magit-log-mode-map "-" magit-log-half-commit-limit "-")
(,states magit-log-mode-map "=" magit-log-toggle-commit-limit "=")
(,states magit-mode-map "S-SPC" magit-diff-show-or-scroll-up "SPC")
(,states magit-mode-map "S-DEL" magit-diff-show-or-scroll-down "DEL")
;; https://github.com/emacs-evil/evil-collection/issues/406
;; Use kbd here for S-SPC and S-DEL so evil-collection-define-key can
;; parse definition correctly;.
(,states magit-mode-map ,(kbd "S-SPC") magit-diff-show-or-scroll-up "SPC")
(,states magit-mode-map ,(kbd "S-DEL") magit-diff-show-or-scroll-down "DEL")
((,evil-collection-magit-state) magit-mode-map ,evil-toggle-key evil-emacs-state)
((,evil-collection-magit-state) magit-mode-map "<escape>" magit-mode-bury-buffer))