From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julius Dittmar Subject: can capture create search links? Date: Sat, 29 Sep 2018 22:35:39 +0200 Message-ID: <4481454f-78cd-7a19-c645-7ec2e47a5aeb@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6Lxr-00046q-PU for emacs-orgmode@gnu.org; Sat, 29 Sep 2018 16:35:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6Lxm-000657-R8 for emacs-orgmode@gnu.org; Sat, 29 Sep 2018 16:35:47 -0400 Received: from mout.gmx.net ([212.227.15.19]:36801) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6Lxm-00064T-HN for emacs-orgmode@gnu.org; Sat, 29 Sep 2018 16:35:42 -0400 Received: from [192.168.175.209] ([87.139.53.30]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0McmS9-1gNbrh0YNd-00HvEh for ; Sat, 29 Sep 2018 22:35:40 +0200 Received: from [192.168.175.209] ([87.139.53.30]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0McmS9-1gNbrh0YNd-00HvEh for ; Sat, 29 Sep 2018 22:35:40 +0200 In-Reply-To: Content-Language: de-DE List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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