From e6832005463c7fd1199cd34b9987979bd242658e Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 15 Jun 2022 01:42:55 +0100 Subject: jao-org-notes: fix for open selection --- lib/doc/jao-org-notes.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/doc') diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index 738c938..c13899f 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -56,6 +56,8 @@ :add-history (concat (consult--async-split-initial (thing-at-point 'symbol))) :require-match (not no-req) :category 'jao-org-notes-lookup + :lookup (lambda (cand cands &rest _) + (or (cdr (assoc cand cands)) (substring cand 1))) :history '(:input jao-org-notes--grep-history)))) (defun jao-org-notes-cats () -- cgit v1.2.3