emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wanrong Lin <wanrong.lin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Highlighting Sparse Tree Leaves
Date: Thu, 14 Feb 2008 18:36:45 -0500	[thread overview]
Message-ID: <47B4D08D.3040102@gmail.com> (raw)

Hi,

Is it possible to highlighting only the sparse tree leaves, or even 
better, highlighting the whole sparse tree but with leaves in a special 
face?

The motivation for such a feature is this:

Suppose I have a task tree like this:

* TODO Task A
*** TODO Task A.1
***** TODO Task A.1.1
* TODO Task B
*** TODO Task B.1
***** TODO Task B.1.1
***** TODO Task B.1.2

If I do a "org-sparse-tree", all those lines are highlighted, giving an 
impression that I have a lot of open tasks, but in reality I only have 
three tasks: A.1.1, B.1.1 and B.1.2, as the higher level tasks are 
automatically done if those are done. So it would be nice to highlight 
those leaves in a special face. Also, suppose both B.1.1 and B.1.2 are 
done, then Task B.1 should be highlighted as a leaf.

Hope the above makes some sense. Thank you very much for giving it a 
thought.

Wanrong

             reply	other threads:[~2008-02-14 23:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 23:36 Wanrong Lin [this message]
2008-02-18 11:18 ` Highlighting Sparse Tree Leaves Carsten Dominik
2008-02-18 15:19   ` Wanrong Lin
2008-02-21 16:42     ` Carsten Dominik
2008-02-21 22:53       ` Wanrong Lin
2008-02-22  7:07         ` 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=47B4D08D.3040102@gmail.com \
    --to=wanrong.lin@gmail.com \
    --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).