From: Matthew Woodbury <mattwoodbury@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-protocol capture links with template specification
Date: Mon, 5 Mar 2018 10:28:55 -0500 [thread overview]
Message-ID: <CAOejZkax054rZRdbSgj=hObB0G0vAsNCkQ3LZyn7OATcwnEVYw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
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: 1205 bytes --]
next reply other threads:[~2018-03-05 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-05 15:28 Matthew Woodbury [this message]
2018-03-05 18:20 ` org-protocol capture links with template specification Matthew Woodbury
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOejZkax054rZRdbSgj=hObB0G0vAsNCkQ3LZyn7OATcwnEVYw@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.