File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,12 @@ this (must be a single line in the Org buffer):
329329 (list (cons 'todo (lambda (element )
330330 (org-element-property :todo-keyword element)))
331331 (cons 'heading (lambda (element )
332- (let ((normalized-heading
333- (org-ql-search--link-heading-search-string (org-element-property :raw-value element))))
334- (org-ql-search--org-make-link-string normalized-heading (org-link-display-format normalized-heading)))))
332+ (let* ((normalized-heading
333+ (org-ql-search--link-heading-search-string (org-element-property :raw-value element)))
334+ (id-value (org-element-property :ID element))
335+ (link-value (or (and id-value (format " id:%s " id-value))
336+ normalized-heading)))
337+ (org-ql-search--org-make-link-string link-value (org-link-display-format normalized-heading)))))
335338 (cons 'priority (lambda (element )
336339 (--when-let (org-element-property :priority element)
337340 (char-to-string it))))
You can’t perform that action at this time.
0 commit comments