[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
- [O] [PATCH] protocol: allow users to disable warning about old style links, Alex Branham, 2017/06/14
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Nicolas Goaziou, 2017/06/16
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Alex Branham, 2017/06/16
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Tyler Smith, 2017/06/21
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Mario Martelli, 2017/06/21
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Tyler Smith, 2017/06/21
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links,
Tyler Smith <=
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Mario Martelli, 2017/06/21
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Tyler Smith, 2017/06/21
- Re: [O] [PATCH] protocol: allow users to disable warning about old style links, Mario Martelli, 2017/06/21