From: Charles Cave <charles_cave@optusnet.com.au>
To: emacs-orgmode@gnu.org
Subject: Looking for a sample function to find a location for org-capture
Date: Thu, 12 Aug 2010 01:30:51 +0000 (UTC) [thread overview]
Message-ID: <loom.20100812T032601-189@post.gmane.org> (raw)
I'm exploring the many features of org-capture and I see the
documentation about a function for finding the location for refiling.
I would like to see some sample code on how to do this.
At the moment I am using a date tree to file my TODO items and
notes. (I am writing an article about this and will publish soon)
Let's say I had a headline structure for weeks of the year and I would
like a function to add an item to the heading corresponding to the week
of the year. Today (12th Aug) we are in Week 32.
What would the function be to file under the appropriate heading:
* 2010
** 2010-Week-28
** 2010-Week-29
** 2010-Week-30
** 2010-Week-31
** 2010-Week-32
** 2010-Week-33
Could the function create the heading if it didnt exist . just like
org-capture handles creation of new brances on a date tree?
Charles
next reply other threads:[~2010-08-12 1:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 1:30 Charles Cave [this message]
2010-08-12 10:06 ` Looking for a sample function to find a location for org-capture Carsten Dominik
2010-08-12 11:42 ` Nick Dokos
2010-08-12 14:37 ` Bastien
2010-08-12 23:11 ` Charles Cave
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=loom.20100812T032601-189@post.gmane.org \
--to=charles_cave@optusnet.com.au \
--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).