[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Dynamic links

From: Sriram Thaiyar
Subject: [O] Dynamic links
Date: Fri, 8 Jul 2016 15:00:59 -0700


I've implemented "dynamic links" which are like plain links but for
arbitrary regular expressions.

I was wondering if there was a better way to do this?

You can see the implementation here:

(This works with Org-mode version: 8.3.4 - 8.3.4-88-g792bb9-elpa.)

With this config:

    (add-to-list 'my-org-dynamic-links-matcher

a string like `TEST-122' is turned into a link, as you type it in.
And when you click on that link, it'll visit this URL:

There are some things that gave me problems:

- I can't hit <return> and have it follow the link. For this, it seems
  like I would need to advice the `org-return' function.

- Despite the fact that the `TEST-123' has a `htmlize-link' text property, 
  it errors out with "No link found". To fix that, I needed to add a hook to

- I had to copy a bunch of code from `org-activate-plain-links' to get
  this to work.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]