I have an org table and I want to take an existing column of org links of the form:
[[http://blah.com/blah/blah/foo][foo]]
And create an adjacent column containing only the description - i.e. foo
.
For example using a made-up function:
#+TBLFM: $4='(get-description-from-link $3)
I've looked at How can I get all file links in one org-mode file? and also the function:
org-link-get-parameter
These seem to be doing roughly what I want, but rely on parsing a whole buffer, where I only want to deal with a single column in a single table. Thus the function should take a link as a string of form [[link][desc]]
and return desc
.
The end goal is to make this a macro that creates the derived column, and copies its contents to another buffer, before deleting the derived column. Most of this seems possible apart from the table formula.
Any ideas?