emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Woodbury <mattwoodbury@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-protocol capture links with template specification
Date: Mon, 5 Mar 2018 13:20:28 -0500	[thread overview]
Message-ID: <CAOejZkZk=tOixp3m6FoERZegDS=Jbstu+wOhGOxcOT_9mdHidw@mail.gmail.com> (raw)
In-Reply-To: <CAOejZkax054rZRdbSgj=hObB0G0vAsNCkQ3LZyn7OATcwnEVYw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]

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 <mattwoodbury@gmail.com>
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
>

[-- Attachment #2: Type: text/html, Size: 2057 bytes --]

      reply	other threads:[~2018-03-05 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-05 15:28 org-protocol capture links with template specification Matthew Woodbury
2018-03-05 18:20 ` Matthew Woodbury [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOejZkZk=tOixp3m6FoERZegDS=Jbstu+wOhGOxcOT_9mdHidw@mail.gmail.com' \
    --to=mattwoodbury@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).