hl-todo-swoop{,-all}
查找当前(或所有) buffer 的 TODO:
(defun hl-todo-swoop ()
"Use `helm-swoop' to find all TODO or similar keywords in current buffer."
(interactive)
(unless (require 'helm-swoop nil t)
(error "`helm-swoop' is not installed"))
(let ((regexp (replace-regexp-in-string "\\\\[<>()]" "" (hl-todo--regexp))))
(helm-swoop :query regexp)))
(defun hl-todo-swoop-all ()
"Use `helm-swoop' to find all TODO or similar keywords in all buffers."
(interactive)
(unless (require 'helm-swoop nil t)
(error "`helm-swoop' is not installed"))
(let ((regexp (replace-regexp-in-string "\\\\[<>()]" "" (hl-todo--regexp))))
(helm-multi-swoop-all regexp)))