emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-protocol capture links with template specification


From: Matthew Woodbury
Subject: Re: [O] org-protocol capture links with template specification
Date: Mon, 5 Mar 2018 13:20:28 -0500

Nevermind, I think I've got it:

emacsclient -n "org-protocol:/capture?template=t&url="">2fduckduckgo%2ecom&title=DuckDuckGo"

I had a '?' rather than '&' after 'template=t'.

Matt

On Mon, Mar 5, 2018 at 10:28 AM, Matthew Woodbury <address@hidden> wrote:
Hi,

I am running emacs-mac-app (v. 25.3.1) installed from Mac Ports, with org-mode version 9.1.6, on Mac OS 10.13.3. 

I have set up org-protocol.  If I open a terminal emulator window and enter this command

emacsclient -n "org-protocol:/capture?url="">http%3a%2f%2fduckduckgo%2ecom&title=DuckDuckGo"

org-protocol works.  I can select the template I want, and an entry gets added to my .org file. 

However, if I add in a template specification

emacsclient -n "org-protocol:/capture?template=t?url="">2fduckduckgo%2ecom&title=DuckDuckGo"

I get this error:

*ERROR*: No capture template referred to by "t?url" keys

It seems the list isn't getting split at the '?' after 'template=t'.  I haven't been able to find anything on this and appear to be doing what org-protocol.el says I should.

Any help would be appreciated.

Thanks,
Matt


reply via email to

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