[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] can capture create search links?
From: |
Julius Dittmar |
Subject: |
[O] can capture create search links? |
Date: |
Sat, 29 Sep 2018 22:35:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
Hi Samuel,
as to org I only have user status, so there may be better solutions for you.
Am 29.09.18 um 00:20 schrieb Samuel Wales:
> what i'd like is for capture to produce a link that, when clicked,
> will search through my agenda files and text search extra files for a
> matching header.
I use IDs for that purpose.
In my config file I added
(require 'org-id)
(setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id)
In all capture templates, IDs are automatically added by adding,
immediately after the heading and a possible scheduling line,
":PROPERTIES:\n:ID: %(org-id-new)\n:END:\n" within the template string.
With this, %a in the template string is replaced by that ID if the ID
exists. The ID survives refiling.
Hope that helps,
Julius