summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-26 02:36:21 +0000
committerjao <jao@gnu.org>2022-03-26 02:36:21 +0000
commitace91bad8ebdfea3ee115133863784bae8501cf5 (patch)
tree4f9395e1a2202574c4a03ffbc96393be5bd4951d
parent5f7bbd2a3ef829619621fff872f3b79a72ec567c (diff)
downloadelibs-ace91bad8ebdfea3ee115133863784bae8501cf5.tar.gz
elibs-ace91bad8ebdfea3ee115133863784bae8501cf5.tar.bz2
{jao,consult}-recoll for everything searchable
-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)))