From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Otterson Subject: Feature request: hide target brackets Date: Sat, 19 Nov 2011 19:08:27 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044402728f4a1d04b21a59f0 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRpLj-0005C0-Q9 for emacs-orgmode@gnu.org; Sat, 19 Nov 2011 13:09:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRpLi-0003Yb-GJ for emacs-orgmode@gnu.org; Sat, 19 Nov 2011 13:09:11 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:35751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRpLi-0003YL-4B for emacs-orgmode@gnu.org; Sat, 19 Nov 2011 13:09:10 -0500 Received: by wwe32 with SMTP id 32so5623722wwe.30 for ; Sat, 19 Nov 2011 10:09:08 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --f46d044402728f4a1d04b21a59f0 Content-Type: text/plain; charset=ISO-8859-1 <> and <<>> 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 <> *** 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 * <> * 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, <> or <<>> 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 <>. 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 --f46d044402728f4a1d04b21a59f0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <<Targets>> and <<<radio = targets>>> are great for ensuring that internal hyperlinks go to t= he right place in your org=A0document. = =A0The problem with them, though, is that they clutter up the text, making = it less readable. =A0

Attempts to get around this problem cause more problems. =A0For exampl= e, to avoid the clutter, I often end up making a target below a headline th= at is an exact copy of the headline text, like this:

=A0=A0=A0 * Correlation
=A0=A0=A0=A0* Mutual Information
=A0=A0=A0=A0=A0 <<Mutual Informa= tion>>
=A0=A0=A0=A0=A0= =A0*** parametric
=A0=A0=A0=A0=A0= =A0*** non-parametric
=A0=A0=A0=A0* Correntr= opy

When the top headlines are collapsed, the above looks lik= e:

= =A0=A0=A0=A0* Correlation
=A0=A0=A0=A0* Mutual Information
=A0=A0=A0=A0* Correntropy

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

=A0=A0=A0=A0* Correlation=
=A0=A0=A0=A0* <<Mutual Informati= on>>
=A0=A0=A0=A0* Correntropy

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

So, = here's my feature request: =A0Hide the target angle brackets in the sam= e way that square brackets are hidden for hyperlinks. =A0In other words,=A0=
=A0=A0
=A0=A0= =A0=A0<<targets>> or <<= ;<radio targets>>>=A0

should be= displayed as=A0

=A0=A0=A0=A0ta= rgets and radio targets

where a u= nique font tells you that they are targets. =A0The hidden angle brackets co= uld be exposed by hitting delete when at the right side of the target (simi= lar to how hidden hyperlink text is exposed now).

Code alre= ady exists to to do exactly this for [[hyperlinks]], and I thought that it = would be easy to reuse it for hiding <<targets>>. =A0But after = several hours of digging around, I realized that this is a job for the expe= rts. =A0Is anyone interested in taking it on? =A0I think it would be a big = improvement.

Thanks ev= erybody for all the excellent work on org-mode!

Scott
--f46d044402728f4a1d04b21a59f0--