emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gez <suleika@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Idea: insert "current sort order" property
Date: Fri, 7 Oct 2011 17:02:58 +0200	[thread overview]
Message-ID: <CAPQe_Ury6U43O7T64v2HWXe87GfVced3m18kAxDLPa58o980JQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2391 bytes --]

What I'm imagining is a command executed on a headline to insert a property
into each of its children "fixing" the current order; something like
":sorted:01", ":sorted:02"  etc.  Ideally there would be a prompt for the
property key (or part of it) so that there could be more than one such
property for a particular headline, but with the option to simplify the
usage and consistency by having just one property key as a default and no
prompt.

One of my uses of org-mode is to list songs (Lieder) that I am currently
working on, and I mark them up with special todo states and tags relating to
my workflow - e.g. findscore, translate, memorise etc.  I've also been known
to add properties such as 1st line text (if different from title), poet, and
pagenumber.  While I'm dealing with a list of repertoire (there's a lot of
bitty admin involved!)  I've found it useful to sort alphabetically, by TODO
state and by these properties, but I'd like to be able to retain the order
in which the songs will be performed.  I know I could manually add such a
property to each headline myself but I'd really love to be able to quickly
"fix" the order of my sorted headings by automating a ":sorted:" property.
Another use I can imagine for this is when juggling an outline, one could
"fix" an order that reads well, and then play around with it to see how it
might flow better, knowing that it would be easy to return to the last
preferred sort-order - like a rollback.  During the last few weeks I would
have made use of this not only when working on songs, but also when
designing song programmes and writing my resumé.

If a sorted headline got moved to a new parent its sort-order might be a
duplicate one of its siblings, but I don't really see that as a problem -
the user knows it's "only text" after all.  I don't know whether it might be
desired to similarly fix the sort-order of 1st level headlines; perhaps the
command could act per current file, with a < to narrow down to the current
tree.  I'm also not sure how to deal with larger numbers - 01-99 seems like
a good default but could one have an option for 001-999?  I also wonder
about adding the property to more than one level at a time, but might that
be a bit much in terms of affecting performance?

Does anyone else see this as potentially useful?

Gez
GNU Emacs 23.3.1 and org-version 7.7

[-- Attachment #2: Type: text/html, Size: 2521 bytes --]

             reply	other threads:[~2011-10-07 15:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 15:02 Gez [this message]
2011-10-11 19:46 ` Christian Moe
2011-10-12 11:35   ` Gez
2011-10-12 12:16     ` Christian Moe
2011-10-12 15:59       ` Gez
2011-10-12 19:51         ` Christian Moe
2011-10-13 11:40           ` Gez
2011-10-13 12:39             ` Christian Moe
2011-10-13 18:34               ` Gez

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=CAPQe_Ury6U43O7T64v2HWXe87GfVced3m18kAxDLPa58o980JQ@mail.gmail.com \
    --to=suleika@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Idea: insert "current sort order" property' \
    /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

Code repositories for project(s) associated with this 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).