From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Conditional capture template headline based on tag?
Date: Wed, 29 Aug 2012 10:25:10 -0500 [thread overview]
Message-ID: <CA+M2ft9sPt=BVHi9AZkduq+uHj7Nnuo7QTaukD6CqS_Yb=MO0Q@mail.gmail.com> (raw)
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
next reply other threads:[~2012-08-29 15:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-29 15:25 John Hendy [this message]
2012-09-14 6:01 ` Conditional capture template headline based on tag? Bastien
2012-10-02 4:24 ` John Hendy
2012-10-02 14:16 ` Bastien
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+M2ft9sPt=BVHi9AZkduq+uHj7Nnuo7QTaukD6CqS_Yb=MO0Q@mail.gmail.com' \
--to=jw.hendy@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).