From: Herbert Sitz <hesitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Programmatically construct agenda from list of headline ids
Date: Tue, 26 Apr 2016 16:16:52 +0000 (UTC) [thread overview]
Message-ID: <loom.20160426T175517-771@post.gmane.org> (raw)
In-Reply-To: 87r3dueqpk.fsf@mailbox.org
Alexander Baier <alexander.baier <at> 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
next prev parent reply other threads:[~2016-04-26 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-24 19:45 Programmatically construct agenda from list of headline ids Alexander Baier
2016-04-26 16:16 ` Herbert Sitz [this message]
2016-04-29 17:19 ` Alexander Baier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20160426T175517-771@post.gmane.org \
--to=hesitz@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.