diff options
author | jao <jao@gnu.org> | 2021-11-14 05:02:27 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-11-14 05:02:27 +0000 |
commit | 657a272347e96dcd4fcd825178b0f86124da32a1 (patch) | |
tree | 6da43a9958bf376d5207f8b841e8e5f3a52b3618 /lib/doc | |
parent | e447a14ede71f022f8f2af329bd79c74b1c128ba (diff) | |
download | elibs-657a272347e96dcd4fcd825178b0f86124da32a1.tar.gz elibs-657a272347e96dcd4fcd825178b0f86124da32a1.tar.bz2 |
searching notes with consult-{rgrep, recoll}
Diffstat (limited to 'lib/doc')
-rw-r--r-- | lib/doc/jao-org-notes.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index 5b81ceb..75066c5 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -139,11 +139,16 @@ (buffer-file-name)) ;;;###autoload +(defun jao-org-notes-grep (&optional initial) + "Perform a grep search on all org notes body, via consult-ripgrep." + (interactive) + (consult-ripgrep jao-org-notes-dir initial)) + +;;;###autoload (defun jao-org-notes-backlinks () "Show a list of note files linking to the current one." (interactive) - (consult-ripgrep jao-org-notes-dir - (concat "\\[\\[file:(.*/)?" (regexp-quote (buffer-name))))) + (jao-org-notes-search (concat "\\[\\[file:\\(.*/\\)?" (buffer-name)))) ;;;###autoload (defun jao-org-notes-insert-tags () |