From ba237643320ab3375e42e0e3ec76ec88c9d21162 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 17 Feb 2026 00:04:52 +0000 Subject: consult-spotlight --- init.el | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 367427e..321b867 100644 --- a/init.el +++ b/init.el @@ -890,6 +890,33 @@ :bind (("s-r" . #'jao-transient-recoll))) +;;;; alternative (mac): consult-spotlight + +(jao-when-darwin + (use-package consult-spotlight + :ensure t + :config + (defun jao-consult-spotlight-docs () + (interactive) + (consult-spotlight "~/Documents")) + + (defun jao-consult-spotlight-mail () + (interactive) + (consult-spotlight "~/Mail")) + + (defun jao-consult-spotlight-notes () + (interactive) + (consult-spotlight jao-org-notes-dir)) + + (transient-define-prefix jao-transient-spotlight () + ["Consult recoll queries" + ("s" "everywhere" consult-spotlight) + ("n" "on notes" jao-consult-spotlight-notes) + ("d" "on docs" jao-consult-spotlight-docs) + ("m" "on messages" jao-consult-spotlight-mail)]) + + :bind (("s-s" . jao-transient-spotlight)))) + ;;; Buffers ;;;; cursor and mark (transient-mark-mode -1) -- cgit v1.2.3