-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No hl-todo keywords error in process sentinel #2
Labels
bug
Something isn't working
Comments
@Peter-Chou 在你的项目里执行这个命令是什么结果? |
@xueshumeng |
Hi, very nice package! consult-todo works fine for a single buffer. consult-todo-all also works, however
when I run either consult-todo-dir or consult-todo-project. Marc |
I've replaced (grep-apply-setting 'grep-find-template "find <D> <X> -type f <F> -exec rg <C> --no-heading -H <R> /dev/null {} +")
;; Or speed up with `ripgrep`
;; (grep-apply-setting 'grep-template "rg --no-heading -H <R> <D>")
(defun consult-todo-dir (&optional directory files)
"Jump to hl-todo keywords in FILES in DIRECTORY.
If optinal arg FILES is nil, search in all files.
If optional arg DIRECTORY is nil, rgrep in default directory."
(interactive)
(let* ((files (or files "* .*"))
(directory (or directory default-directory)))
(add-hook 'compilation-finish-functions #'consult-todo--candidates-rgrep)
(cl-letf ((compilation-buffer-name-function
(lambda (&rest _) (format "*consult-todo-%s*" directory))))
(save-window-excursion
;; HACK: use `lgrep' instead `find'
(lgrep (concat "\\b" (replace-regexp-in-string "\\\\[<>]*" "" (hl-todo--regexp)) "\\b") files directory)
))))
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我在项目里调用
consult-todo-project
有以下报错:我使用
magit-todos-list
可以正确返回相关的关键字对应的内容The text was updated successfully, but these errors were encountered: