On 27/01/2022 22:13, Thuna wrote:
Could you, please, describe your actual problem?
Currently, org-protocol-store-link, as a function, fails to work for
new-style links.
Doing the following:
1. M-: (org-protocol-store-link "url=U&title=T")
2. M-x org-insert-link
and accepting the suggestions for the link and the description inserts
"[[url=U&title=T]]" instead of "[[U][T]]", which should be the expected
behavior according to the documentation of the function, unless I am
misunderstanding it.
See the last paragraph of the docstring:
FNAME should be a property list. If not, an old-style link of the
^^^^^^^^^^^^^^
form URL/TITLE can also be used."
You pass a string for *new* URI style.
Maybe there is another description of the interface that should be
implemented by functions handling subprotocols.
You may look at the tests if you are going to use org-protocol in some
special way.