From 657a272347e96dcd4fcd825178b0f86124da32a1 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 14 Nov 2021 05:02:27 +0000 Subject: searching notes with consult-{rgrep, recoll} --- lib/doc/jao-org-notes.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/doc') 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 @@ -138,12 +138,17 @@ (save-buffer) (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 () -- cgit v1.2.3