From 2828281af7d0c5fc05a94d2b1c0a3417b318f414 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 29 Nov 2020 15:16:55 -0500 Subject: [PATCH] Fix blacklisted evil-collection-magit keybinds Now that evil-magit's been moved to evil-collection, its keybinds are subject to our blacklist. There must be a better way to exclude evil-collection modules from the blacklist. --- modules/tools/magit/config.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index 9dd38d758..551911ae7 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -204,6 +204,19 @@ ensure it is built when we actually use Forge." "gi" #'forge-jump-to-issues "gm" #'forge-jump-to-pullreqs) + ;; Fix these keybinds because they are blacklisted + ;; REVIEW There must be a better way to exclude particular evil-collection + ;; modules from the blacklist. + (map! (:map magit-mode-map + :nv "]" #'magit-section-forward-sibling + :nv "[" #'magit-section-backward-sibling + :nv "gr" #'magit-refresh + :nv "gR" #'magit-refresh-all) + (:map magit-status-mode-map + :nv "gz" #'magit-refresh) + (:map magit-diff-mode-map + :nv "gd" #'magit-jump-to-diffstat-or-diff))) + ;; A more intuitive behavior for TAB in magit buffers: (define-key! 'normal (magit-status-mode-map