From: Charles Cave <charles_cave@optusnet.com.au>
To: emacs-orgmode@gnu.org
Subject: How to set a set of headlines (at the same level)
Date: Thu, 16 Nov 2006 12:07:06 +1100 [thread overview]
Message-ID: <200611160107.kAG176x0000353@mail01.syd.optusnet.com.au> (raw)
I would like to see a feature to sort the set of branches into alphabetical order.
At the moment I have to manually move the subtrees up and done.
Here is an example:
Before sorting
* New words
** bird
A bird can fly
*** sub topic
blah blah
** fred
A Fred is a frog
** cat
A cat is an animal
** aviary
Where birds are kept
After sorting...
* New words
** aviary
Where birds are kept
** bird
A bird can fly
*** sub topic
blah blah (sub topics could appear in the tree)
** cat
A cat is an animal
** fred
A Fred is a frog
The sorting algorithm needs to call org-move-subtree-up and org-move-subtree-down
depending on the comparison of adjacent headings.
How difficult would it be to add this functionality? The command should work
on a region. I want to create an org-mode file of vocabulary. I note that it is
possible to sort table rows so that is a possible work around for me.
Charles
next reply other threads:[~2006-11-16 1:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 1:07 Charles Cave [this message]
2006-11-16 12:12 ` How to set a set of headlines (at the same level) Carsten Dominik
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=200611160107.kAG176x0000353@mail01.syd.optusnet.com.au \
--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).