diff options
Diffstat (limited to 'lib')
-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 () |