From: Charles Cave <charlesweb@optusnet.com.au>
To: emacs-orgmode@gnu.org
Subject: I just discovered the clone subtree command
Date: Wed, 17 Jun 2009 00:46:49 +0000 (UTC) [thread overview]
Message-ID: <loom.20090617T003932-651@post.gmane.org> (raw)
I am reading the Org-mode Release 6.27a manual to learn new things.
and just discovered the C-c C-x c (clone subtree) command.
This makes copies of a tree and inserts them as siblings. The command
prompts you for the number of copies to make. The really useful
feature is to update dates according to a pattern.
Here is an example of creating headings for each of the next six months:
Start with this:
** First of the month
*** July
SCHEDULED: <2009-07-01 Wed>
Position the cursor to the beginning of the line *** July
then issue the C-c C-x c
Answer the question "Number of clones to produce:" with 6
Next question is
"Date shift per clone (e.g. +1w, empty to copy unchanged): "
Answer it +1m and the tree looks like:
*** July
SCHEDULED: <2009-07-01 Wed>
*** July
SCHEDULED: <2009-08-01 Sat>
*** July
SCHEDULED: <2009-09-01 Tue>
*** July
SCHEDULED: <2009-10-01 Thu>
*** July
SCHEDULED: <2009-11-01 Sun>
*** July
SCHEDULED: <2009-12-01 Tue>
*** July
SCHEDULED: <2010-01-01 Fri>
Now you just have to change the occurrences of July to the real
month names!
I don't know when this feature appeared but it is very useful.
Charles
next reply other threads:[~2009-06-17 0:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 0:46 Charles Cave [this message]
2009-06-17 23:22 ` I just discovered the clone subtree command Nicolas Aggelidis
2009-06-17 23:56 ` Charles Cave
2009-06-18 8:20 ` Carsten Dominik
2009-06-18 12:31 ` Matthew Lundin
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.20090617T003932-651@post.gmane.org \
--to=charlesweb@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).