From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: Re: Programmatically construct agenda from list of headline ids Date: Tue, 26 Apr 2016 16:16:52 +0000 (UTC) Message-ID: References: <87r3dueqpk.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av5fg-0005W6-8w for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 12:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1av5fc-0004fQ-5b for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 12:17:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:51488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av5fb-0004fE-VE for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 12:17:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1av5fa-0008At-Vg for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 18:17:03 +0200 Received: from 71-35-188-101.tukw.qwest.net ([71.35.188.101]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Apr 2016 18:17:02 +0200 Received: from hesitz by 71-35-188-101.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Apr 2016 18:17:02 +0200 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 Alexander Baier mailbox.org> writes: > > Hi! > > As the title mentions I have a list of ids of existing org headlines and > want create an agenda view listing all of these headlines. > > Is there functionality in org-agenda, that allows me to do this? > > Best Regards, Nobody else has offered help yet, so I'll take a shot. What exactly are your "ids"? Do you mean you have headlines with assigned CUSTOM_ID properties, and you have a list of values for which you want to show the headlines in agenda? If so, I think you could just assemble the list in a command that sticks new search conditions into one of your custom agenda views. E.g., if you currently had a custom agenda search mapped to "i" for two different CUSTOM_IDs, like this: (setq org-agenda-custom-commands '(("i" tags "CUSTOM_ID=323|CUSTOM_ID=832"))) you could reissue command to get the search done for different list of custom ids: (setq org-agenda-custom-commands '(("i" tags "CUSTOM_ID=153|CUSTOM_ID=932|CUSTOM_ID=293"))) I haven't tested this, but I expect it or something similar would work. There are probably tweaks you could make, e.g, list could be combined into a regular expression so you don't need to repeat multiple 'CUSTOM_ID=' sections. For more info on custom agenda views see: http://orgmode.org/org.html#Custom-agenda-views and for more info on property searches see: http://orgmode.org/org.html#Matching-tags-and-properties