Replies: 1 comment 1 reply
-
There's no built-in way to opt for (defun zk-consult-ripgrep (&optional initial)
"Search `zk-directory' with `consult-ripgrep'.
With option for INITIAL input when called non-interactively."
(interactive)
(let ((consult--grep-history zk-search-history))
(if initial
(consult-ripgrep zk-directory (format "%s" initial))
(consult-ripgrep zk-directory))))
(defun zk-consult-ripgrep-tag-search (tag)
"Search for TAG in `zk-directory' using `consult-ripgrep'.
Select TAG, with completion, from list of all tags in zk notes."
(interactive (list (completing-read "Find tag: " (zk--grep-tag-list))))
(consult-ripgrep zk-directory tag))``` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What would be the recommended way to use
consult-ripgrep
instead ofconsult-grep
with zk-consult?Beta Was this translation helpful? Give feedback.
All reactions