emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* wish: facility to wash org link descriptions
@ 2018-03-02 12:16 Gregor Zattler
  2018-03-02 12:43 ` Jack Henahan
  0 siblings, 1 reply; 2+ messages in thread
From: Gregor Zattler @ 2018-03-02 12:16 UTC (permalink / raw)
  To: emacs-orgmode

Hi org-mode developers,

it would be nice if there was a facility to wash (= shorten) org
link descriptions.  From the users perspective this could be a
list of regular expressions with corresponding short forms.

Use case:

I want to automatically shorten org link descriptions,
especially if linking to emails.  Some of this emails are from a
request tracker and have extraordinary long From: and Subject:
suffixes which add up to 49 characters in the link description.
I would like to radically shorten this boilerplate.

Even with "normal" To: and Subject:, the default formatting of
such links prefixes the correspondents name with "from " or "to ".
While it's fine with me to distinguish emails from me from
emails to emails to me, I would not need the "from ").


Ciao; Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: wish: facility to wash org link descriptions
  2018-03-02 12:16 wish: facility to wash org link descriptions Gregor Zattler
@ 2018-03-02 12:43 ` Jack Henahan
  0 siblings, 0 replies; 2+ messages in thread
From: Jack Henahan @ 2018-03-02 12:43 UTC (permalink / raw)
  To: Gregor Zattler; +Cc: emacs-orgmode

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

https://orgmode.org/manual/Adding-hyperlink-types.html#Adding-hyperlink-types

Adding a custom hyperlink type (or overriding the existing one for mail messages) seems like your best bet.

Jack

> On Mar 2, 2018, at 07:16, Gregor Zattler <telegraph@gmx.net> wrote:
> 
> Hi org-mode developers,
> 
> it would be nice if there was a facility to wash (= shorten) org
> link descriptions.  From the users perspective this could be a
> list of regular expressions with corresponding short forms.
> 
> Use case:
> 
> I want to automatically shorten org link descriptions,
> especially if linking to emails.  Some of this emails are from a
> request tracker and have extraordinary long From: and Subject:
> suffixes which add up to 49 characters in the link description.
> I would like to radically shorten this boilerplate.
> 
> Even with "normal" To: and Subject:, the default formatting of
> such links prefixes the correspondents name with "from " or "to ".
> While it's fine with me to distinguish emails from me from
> emails to emails to me, I would not need the "from ").
> 
> 
> Ciao; Gregor
> -- 
> -... --- .-. . -.. ..--.. ...-.-
> 
> 

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-02 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-02 12:16 wish: facility to wash org link descriptions Gregor Zattler
2018-03-02 12:43 ` Jack Henahan

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).