emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] protocol: allow users to disable warning about old style


From: Tyler Smith
Subject: Re: [O] [PATCH] protocol: allow users to disable warning about old style links
Date: Wed, 21 Jun 2017 12:34:12 -0400

On Wed, Jun 21, 2017, at 12:24 PM, Tyler Smith wrote:
> 
> whereas the new-style key-value links would be:
> 
>     javascript:location.href='org-protocol://sub-protocol?url='+
>           encodeURIComponent(location.href)+'&title='+
>           encodeURIComponent(document.title)+'&selection='+
>           encodeURIComponent(window.getSelection())
> 

Aha! The new-style links are documented in the function docs. E.g., for
`org-protocol-capture`:

  javascript:location.href = 'org-protocol://capture?url='+ 
        encodeURIComponent(location.href) + '&title=' 
        encodeURIComponent(document.title) + '&body=' + 
        encodeURIComponent(window.getSelection())

It would be very helpful to have that visible in the new documentation.

Thanks,

Tyler



reply via email to

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