[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Change visibility for bracket links
From: |
Detlef Steuer |
Subject: |
Re: [O] [RFC] Change visibility for bracket links |
Date: |
Wed, 5 Oct 2016 21:21:24 +0200 |
Am Wed, 05 Oct 2016 17:40:08 +0200
schrieb Nicolas Goaziou <address@hidden>:
> Hello,
>
> I'd like to make the following change to bracket links display (i.e.,
> when `org-highlight-links' contains `bracket', which is the default).
>
> Basically, I want to leave a visible pair of brackets around the link,
> i.e.,
>
> [[uri][description]]
>
> is displayed as
>
> [description]
>
> instead of
>
> description
>
> and
>
> [[uri]]
>
> is displayed as
>
> [uri]
>
> instead of
>
> uri
+1
Detlef
>
> The rationale behind this suggestion is that editing a mostly
> invisible link is unintuitive when point is at the boundaries of its
> visible part.
>
> More precisely, in the following visible part of a link
>
> description
>
> if point hits "d" from the right, changes happen in the description of
> the link, but if point comes from the left, changes happen before the
> link.
>
> I guess I could get used to it, but sometimes, the link happens to be
> at column 0. In this case, the only way to "come from the left" is to
> move to the previous line and go past the newline character. This is,
> IMO, very annoying, notwithstanding the fact that it is impossible to
> realize at the beginning of the buffer.
>
> Leaving a pair of brackets, OTOH, disambiguates the situation. Editing
> before the opening bracket makes changes before the link. Conversely,
> editing after the former makes changes to the uri or the description,
> whichever is displayed.
>
> The cost a little more visual clutter, but it seems very acceptable to
> me. I attach a quick patch for testing.
>
> Feedback welcome.
>
> Regards,
>
- [O] [RFC] Change visibility for bracket links, Nicolas Goaziou, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links, Rainer M Krug, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links, Marco Wahl, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links,
Detlef Steuer <=
- Message not available
- Re: [O] [RFC] Change visibility for bracket links, David A. Gershman, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links, Nicolas Goaziou, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links, David A. Gershman, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links, Clément Pit--Claudel, 2016/10/05
- Re: [O] [RFC] Change visibility for bracket links, Nicolas Goaziou, 2016/10/07
- Re: [O] [RFC] Change visibility for bracket links, Rasmus, 2016/10/12
- Message not available
- Re: [O] [RFC] Change visibility for bracket links, Eric S Fraga, 2016/10/06
- Re: [O] [RFC] Change visibility for bracket links, William Denton, 2016/10/06
Re: [O] [RFC] Change visibility for bracket links, Adam Porter, 2016/10/07