Skip to content

Commit

Permalink
magit-todos: unbind "k" in *-section-map
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericgiquel committed Mar 14, 2024
1 parent 323ae97 commit dcc34dc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modes/magit-todos/evil-collection-magit-todos.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@
;;;###autoload
(defun evil-collection-magit-todos-setup ()
"Set up `evil' bindings for `magit-todos'."
;; magit-todos binds jT which prevents evil users from stepping into the section
(evil-collection-define-key nil 'magit-todos-section-map
"j" nil)

(evil-collection-define-key nil 'magit-todos-item-section-map
"j" nil)
;; magit-todos binds jT and k which prevents evil users from stepping into the section
(dolist (key '("j" "k"))
(evil-collection-define-key nil 'magit-todos-section-map key nil)
(evil-collection-define-key nil 'magit-todos-item-section-map key nil))

;; No need to tell me that jT isn't bound
(advice-add 'magit-todos-mode :around 'evil-collection-magit-todos-supress-warning)
Expand Down

0 comments on commit dcc34dc

Please sign in to comment.