emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scott Otterson <scotto@sharpleaf.org>
To: emacs-orgmode@gnu.org
Subject: Feature request: hide target brackets
Date: Sat, 19 Nov 2011 19:08:27 +0100	[thread overview]
Message-ID: <CAPY3P0SXaWW4H7T+cBK_0PTKqEx-N00gKt5nzN4aOE3oXFQefg@mail.gmail.com> (raw)

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

<<Targets>> and <<<radio targets>>> are great for ensuring that internal
hyperlinks go to the right place in your org document.  The problem with
them, though, is that they clutter up the text, making it less readable.

Attempts to get around this problem cause more problems.  For example, to
avoid the clutter, I often end up making a target below a headline that is
an exact copy of the headline text, like this:

    * Correlation
    * Mutual Information
      <<Mutual Information>>
      *** parametric
      *** non-parametric
    * Correntropy

When the top headlines are collapsed, the above looks like:

    * Correlation
    * Mutual Information
    * Correntropy

This is cleaner than putting the target in the headline, which would look
like this when collapsed:

    * Correlation
    * <<Mutual Information>>
    * Correntropy

However, my redundant headline target is a maintenance mess (if you change
the headline, you need to remember to change the target) and when the
headline is expanded, things are even more cluttered.

So, here's my feature request:  Hide the target angle brackets in the same
way that square brackets are hidden for hyperlinks.  In other words,

    <<targets>> or <<<radio targets>>>

should be displayed as

    targets and radio targets

where a unique font tells you that they are targets.  The hidden angle
brackets could be exposed by hitting delete when at the right side of the
target (similar to how hidden hyperlink text is exposed now).

Code already exists to to do exactly this for [[hyperlinks]], and I thought
that it would be easy to reuse it for hiding <<targets>>.  But after
several hours of digging around, I realized that this is a job for the
experts.  Is anyone interested in taking it on?  I think it would be a big
improvement.

Thanks everybody for all the excellent work on org-mode!

Scott

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

             reply	other threads:[~2011-11-19 18:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-19 18:08 Scott Otterson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-03-18 16:36 Feature request: hide target brackets Scott Otterson
2010-03-19  7:56 ` Peter Frings

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=CAPY3P0SXaWW4H7T+cBK_0PTKqEx-N00gKt5nzN4aOE3oXFQefg@mail.gmail.com \
    --to=scotto@sharpleaf.org \
    --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).