summaryrefslogtreecommitdiffhomepage
path: root/lib/doc
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-06-15 01:42:55 +0100
committerjao <jao@gnu.org>2022-06-15 01:42:55 +0100
commite6832005463c7fd1199cd34b9987979bd242658e (patch)
tree57f035b38a9d15434dc48410325b253d99fe38a1 /lib/doc
parent623fc7a3a53b97e2073ae7669af7954c3d51b69c (diff)
downloadelibs-e6832005463c7fd1199cd34b9987979bd242658e.tar.gz
elibs-e6832005463c7fd1199cd34b9987979bd242658e.tar.bz2
jao-org-notes: fix for open selection
Diffstat (limited to 'lib/doc')
-rw-r--r--lib/doc/jao-org-notes.el2
1 files changed, 2 insertions, 0 deletions
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 ()