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 /org.org | |
parent | e447a14ede71f022f8f2af329bd79c74b1c128ba (diff) | |
download | elibs-657a272347e96dcd4fcd825178b0f86124da32a1.tar.gz elibs-657a272347e96dcd4fcd825178b0f86124da32a1.tar.bz2 |
searching notes with consult-{rgrep, recoll}
Diffstat (limited to 'org.org')
-rw-r--r-- | org.org | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -204,12 +204,23 @@ (use-package jao-org-notes :commands (jao-org-notes-setup) :config + (defun jao-org-notes-note-p () + (string-prefix-p jao-org-notes-dir (buffer-file-name))) + + (defun jao-org-notes-recoll () + "Use consult-recoll to search notes." + (interactive) + (consult-recoll (format "dir:%s" jao-org-notes-dir))) + (jao-transient-major-mode+ org ["Notes" - ("i" "insert link" jao-org-notes-insert-link) - ("t" "insert tags" jao-org-notes-insert-tags) ("o" "find and open note" jao-org-notes-open) ("c" "open or create note" jao-org-notes-open-or-create) + ("\\" "grep notes" jao-org-notes-grep) + ("r" "recoll notes" jao-org-notes-recoll)] + ["Current note" :if jao-org-notes-note-p + ("i" "insert link" jao-org-notes-insert-link) + ("t" "insert tags" jao-org-notes-insert-tags) ("v" "show backlinks" jao-org-notes-backlinks)])) (jao-org-notes-setup "n") |