summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--completion.org31
1 files changed, 24 insertions, 7 deletions
diff --git a/completion.org b/completion.org
index f1ef37b..2a88fe9 100644
--- a/completion.org
+++ b/completion.org
@@ -281,12 +281,25 @@
(defun jao-recoll-consult-messages ()
(interactive)
- (consult-recoll "mime:messages "))
+ (consult-recoll "mime:message "))
(defun jao-recoll-consult-docs ()
(interactive)
(consult-recoll (format "dir:%s/doc " jao-org-dir)))
+ (defun jao-recoll-messages ()
+ (interactive)
+ (jao-recoll "mime:message "))
+
+ (defun jao-recoll-docs ()
+ (interactive)
+ (jao-recoll (format "dir:%s/doc " jao-org-dir)))
+
+ (defun jao-recoll-notes ()
+ "Use consult-recoll to search notes."
+ (interactive)
+ (jao-recoll (format "dir:%s " jao-org-notes-dir)))
+
(use-package consult-recoll
:init (setq consult-recoll-open-fns
'(("application/pdf" . jao-open-doc)
@@ -296,12 +309,16 @@
consult-recoll-format-candidate #'jao-recoll-format)
:config
(transient-define-prefix jao-recoll-transient ()
- ["Recoll queries"
- ("o" "recoll query" jao-recoll)
- ("r" "consult recoll query" consult-recoll)
- ("n" "consult recoll on notes" jao-org-notes-recoll)
- ("d" "consult recoll on docs" jao-recoll-consult-docs)
- ("m" "consult recoll on messages" jao-recoll-consult-messages)])
+ [["Consult recoll queries"
+ ("r" "consult recoll query" consult-recoll)
+ ("n" "consult recoll on notes" jao-org-notes-consult-recoll)
+ ("d" "consult recoll on docs" jao-recoll-consult-docs)
+ ("m" "consult recoll on messages" jao-recoll-consult-messages)]
+ ["Recoll queries"
+ ("R" "recoll query" jao-recoll)
+ ("N" "recoll on notes" jao-recoll-notes)
+ ("D" "consult recoll on docs" jao-recoll-docs)
+ ("M" "consult recoll on messages" jao-recoll-messages)]])
:bind (("s-r" . #'jao-recoll-transient)))