Hi Nicolas,

I like Aaron's idea (maybe others proposed this too) of having
parameters in links:

[[file:my.bib::key&&prenote=my prenote&&postnote=my postnote]]

[[http://perdu.com&&title=You're lost?]]

This is orthogonal to my proposal of extending #+LINK to be able
to define new protocols (by allowing to add a follow and an export
functions); and this is orthogonal to whether link abbrevs can have
more than one formatting string %s.

We would just need to pass the parameters as keywords to the export
function, either the default one, either the defined by the protocol.

E.g., the first link would be represented by the parser like this:

   (:type "file"
    :path "my.bib"
    :raw-link "file:orgmode.org::test2"
    :application nil
    :search-option "test2"
    :parameters '(:title "You're lost")
    :begin 63
    :end 97
    :contents-begin 90
    :contents-end 95
    :post-blank 0
    :parent #3)

Then org-html-link would get the parameters with

  (org-element-property :parameters link)
  => '(:title "You're lost")

I think this is general and useful.

If we implement this, it would be nice to extend link abbrevs to
support multiple formatters in `org-link-abbrev-alist'.

  #+LINK: citeA file:my.bib::%s&&prenote=%s&&postnote=%s

And this would spare us for the need of another object dedicated
to bibliographic citations:

  [[citeA::key&&prenote=my note&&postnote=my note]]

What do you think?

-- 
 Bastien

Reply via email to