From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Woodbury Subject: Re: org-protocol capture links with template specification Date: Mon, 5 Mar 2018 13:20:28 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11444ec8a0b1910566ae6253" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esujD-0001Tg-E8 for emacs-orgmode@gnu.org; Mon, 05 Mar 2018 13:20:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esujC-0002Nk-58 for emacs-orgmode@gnu.org; Mon, 05 Mar 2018 13:20:51 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:35736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esujB-0002NK-UG for emacs-orgmode@gnu.org; Mon, 05 Mar 2018 13:20:50 -0500 Received: by mail-wm0-x22f.google.com with SMTP id x7so17402583wmc.0 for ; Mon, 05 Mar 2018 10:20:49 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a11444ec8a0b1910566ae6253 Content-Type: text/plain; charset="UTF-8" Nevermind, I think I've got it: emacsclient -n "org-protocol:/capture?template=t*&*url=http%3a%2f% > 2fduckduckgo%2ecom&title=DuckDuckGo" > I had a '?' rather than '&' after 'template=t'. Matt On Mon, Mar 5, 2018 at 10:28 AM, Matthew Woodbury 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=http%3a%2f% > 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 > --001a11444ec8a0b1910566ae6253 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nevermind, I think I've got it:

emacsclient -n "org-proto= col:/capture?template=3Dt&url=3Dhttp%3a%2f%2fdu= ckduckgo%2ecom&title=3DDuckDuckGo"

= I had a '?' rather than '&' after 'template=3Dt'= ;.

Matt

On Mon, Mar 5, 2018 at 10:28 AM, Matthew Woodbury <mattw= oodbury@gmail.com> wrote:
<= div dir=3D"ltr">
Hi,

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

I have set up org-p= rotocol.=C2=A0 If I open a terminal emulator window and enter this command<= br>
emacsclient -n "org-protocol:/c= apture?url=3Dhttp%3a%2f%2fduckduckgo%2ecom&title=3DDuckDuckGo= "

org-protocol works.=C2=A0 I can select the templa= te I want, and an entry gets added to my .org file.=C2=A0

How= ever, if I add in a template specification

emacsclient -n "org-protocol:/capture?template=3Dt?url=3Dh= ttp%3a%2f%2fduckduckgo%2ecom&title=3DDuckDuckGo"

I get this error:

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

I= t seems the list isn't getting split at the '?' after 'temp= late=3Dt'.=C2=A0 I haven't been able to find anything on this and a= ppear to be doing what org-protocol.el says I should.

Any help= would be appreciated.

Thanks,
Matt

--001a11444ec8a0b1910566ae6253--