Re: [O] Conditional capture template headline based on tag?
Hi John, John Hendy jw.he...@gmail.com writes: As in the expansion elements or defining a custom function for the =target= element? I'm thinking of this part of org-capture-templates's docstring: (function function-finding-location) Most general way, write your own function to find both file and location HTH, -- Bastien
Re: [O] Conditional capture template headline based on tag?
On Fri, Sep 14, 2012 at 1:01 AM, Bastien b...@altern.org wrote: Hi John, John Hendy jw.he...@gmail.com writes: Just wondering if a capture template could be setup to file into the Tasks headline (sub-headline) of the matching top level headline with that tag or something similar? You could use a function in the capture template for this. As in the expansion elements or defining a custom function for the =target= element? Thanks for the suggestion, John See the info node Template elements. -- Bastien
Re: [O] Conditional capture template headline based on tag?
Hi John, John Hendy jw.he...@gmail.com writes: Just wondering if a capture template could be setup to file into the Tasks headline (sub-headline) of the matching top level headline with that tag or something similar? You could use a function in the capture template for this. See the info node Template elements. -- Bastien
[O] Conditional capture template headline based on tag?
My main org file for work is something like so: #+begin_src org * Tasks General tasks here * Proj 1 :proj1: ** Tasks ** Notes * Proj 2 :proj2: ** Tasks ** Notes etc. #+end_src Just wondering if a capture template could be setup to file into the Tasks headline (sub-headline) of the matching top level headline with that tag or something similar? I suppose I can refile and enter the headline location manually, but that requires extra work. I thought if I was already entering a tag for a capture item, perhaps there's some fu that could be used to send it accordingly. If this isn't possible, what if I re-split my projects into separate files with a #+filetag. Could it be used to send it to the right file? If there are those who do something like this in a different way, I'm open to suggestions! Thanks, John