emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-protocol capture links with template specification
@ 2018-03-05 15:28 Matthew Woodbury
  2018-03-05 18:20 ` Matthew Woodbury
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Woodbury @ 2018-03-05 15:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-protocol capture links with template specification
  2018-03-05 15:28 org-protocol capture links with template specification Matthew Woodbury
@ 2018-03-05 18:20 ` Matthew Woodbury
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Woodbury @ 2018-03-05 18:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-05 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-05 15:28 org-protocol capture links with template specification Matthew Woodbury
2018-03-05 18:20 ` Matthew Woodbury

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).