magit-todos: unbind "k" in *-section-map

This commit is contained in:
Frédéric Giquel 2024-03-14 20:46:07 +01:00 committed by Youmu
parent 323ae97eae
commit cf7c7f142a
1 changed files with 4 additions and 6 deletions

View File

@ -47,12 +47,10 @@
;;;###autoload ;;;###autoload
(defun evil-collection-magit-todos-setup () (defun evil-collection-magit-todos-setup ()
"Set up `evil' bindings for `magit-todos'." "Set up `evil' bindings for `magit-todos'."
;; magit-todos binds jT which prevents evil users from stepping into the section ;; magit-todos binds jT and k which prevents evil users from stepping into the section
(evil-collection-define-key nil 'magit-todos-section-map (dolist (key '("j" "k"))
"j" nil) (evil-collection-define-key nil 'magit-todos-section-map key nil)
(evil-collection-define-key nil 'magit-todos-item-section-map key nil))
(evil-collection-define-key nil 'magit-todos-item-section-map
"j" nil)
;; No need to tell me that jT isn't bound ;; No need to tell me that jT isn't bound
(advice-add 'magit-todos-mode :around 'evil-collection-magit-todos-supress-warning) (advice-add 'magit-todos-mode :around 'evil-collection-magit-todos-supress-warning)