emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-orgmode] How to sort by tags


From: Piotr Zielinski
Subject: Re: [Emacs-orgmode] How to sort by tags
Date: Mon, 28 Aug 2006 15:59:19 +0100

On 28/08/06, Carsten Dominik <address@hidden> wrote:
Yes, with tags as context this would make sense......

Other input, anyone?

Sorting by tags might be thought of as a special case of multi-block
agenda buffer, in which you can execute multiple agenda commands
without erasing the buffer.  For example, you can use org-agenda first
to list all the items tagged "work" and then all the items tagged
"home".  The only change in the current implementation would be not to
erase the agenda buffer.  This approach would require one org buffer
scan for each keyword, which might be inefficient.

The advantage of this approach is that it leaves it up to the user how
do deal with multi-tagged entries.  If an element tagged ":work:home:"
should appear under both "work" and "home", then the user would
specify the block list to be '("work" "home").  If such elements
should appear only in "work", the specification would be ("work"
"+work-home").  Alternatively, we can put elements ":work:home:" into
a separate list by specifying three lists ("+work-home" "+home-work"
"+work+home").  In general, without prior knowledge about the
semantics of tags, choosing one of those approaches automatically will
be difficult.

Finally, having the whole power of the org-agenda and tag matching,
one could construct more sophisticated blocks, for example, consisting
of all ":work:" entries that are TODO at the same time.

Piotr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]