File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ Helm and Ivy are also supported. Note that the =helm= and =ivy= packages are no
138138*Added*
139139+ Option =magit-todos-submodule-list= controls whether to-dos in submodules are displayed (default: off). (Thanks to [[https://github.com/matsievskiysv][Matsievskiy S.V.]])
140140
141+ *Internal*
142+ + Define jumper keys using a Transient suffix.
143+
141144*** 1.5.3
142145
143146*Fixes*
Original file line number Diff line number Diff line change 55; ; Author: Adam Porter <adam@alphapapa.net>
66; ; URL: http://github.com/alphapapa/magit-todos
77; ; Version: 1.6-pre
8- ; ; Package-Requires: ((emacs "25.2") (async "1.9.2") (dash "2.13.0") (f "0.17.2") (hl-todo "1.9.0") (magit "2.13.0") (pcre2el "1.8") (s "1.12.0"))
8+ ; ; Package-Requires: ((emacs "25.2") (async "1.9.2") (dash "2.13.0") (f "0.17.2") (hl-todo "1.9.0") (magit "2.13.0") (pcre2el "1.8") (s "1.12.0") (transient "0.2.0") )
99; ; Keywords: magit, vc
1010
1111; ;; Commentary:
7373(require 'f )
7474(require 'hl-todo )
7575(require 'magit )
76+ (require 'transient )
7677(require 'pcre2el )
7778(require 's )
7879
@@ -373,18 +374,16 @@ from the \"topic2\" branch, this option could be set to
373374 :global t
374375 (if magit-todos-mode
375376 (progn
376- (pcase (lookup-key magit-status-mode-map " jT" )
377- ('nil (define-key magit-status-mode-map " jT" #'magit-todos-jump-to-todos ))
378- ('magit-todos-jump-to-todos nil )
379- (_ (message " magit-todos: Not overriding bind of \" jT\" in `magit-status-mode-map' . " )))
377+ (transient-append-suffix #'magit-status-jump
378+ '(0 -1 ) '[(" T" " Todos" magit-todos-jump-to-todos)
379+ (" l" " List todos" magit-todos-list)])
380380 (magit-add-section-hook 'magit-status-sections-hook
381381 #'magit-todos--insert-todos
382382 nil
383383 'append )
384384 (add-hook 'magit-status-mode-hook #'magit-todos--add-to-status-buffer-kill-hook 'append ))
385385 ; ; Disable mode
386- (when (equal (lookup-key magit-status-mode-map " jT" ) #'magit-todos-jump-to-todos )
387- (define-key magit-status-mode-map " jT" nil ))
386+ (transient-remove-suffix #'magit-status-jump '(0 -1 ))
388387 (remove-hook 'magit-status-sections-hook #'magit-todos--insert-todos )
389388 (remove-hook 'magit-status-mode-hook #'magit-todos--add-to-status-buffer-kill-hook )))
390389
You can’t perform that action at this time.
0 commit comments