From: Carl Bolduc <cbol@me.com>
To: emacs-orgmode@gnu.org
Subject: capture template placeholders do not work
Date: Wed, 11 Oct 2017 14:47:11 -0400 [thread overview]
Message-ID: <2E60E16B-A6A8-4D34-AE40-2933BF5F147D@me.com> (raw)
Hi,
I want to use org-mode to store my bookmarks. I configured the following template:
("b" "Bookmark" entry (file+headline "~/org/bookmarks.org" "Bookmarks") "* %:url %:title %?\n”)
And I have the following bookmarklet in my browser:
javascript:location.href='org-protocol://capture?template=b'+'&url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection());
When I click on my bookmarklet, Emacs opens a new capture buffer and here is what I see:
**
I get an empty entry, the %:url and %:title placeholders are not expanded to the values passed by the bookmarklet. How can I troubleshoot this?
I’m running emacs 25.3 with the emacs-25.3-mac-6.8 patch on macOS High Sierra with org-mode 9.1.1.
Thanks,
Carl
next reply other threads:[~2017-10-11 18:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-11 18:47 Carl Bolduc [this message]
2017-10-12 3:54 ` capture template placeholders do not work Allen Li
2017-10-12 12:27 ` Carl Bolduc
2017-10-12 13:24 ` Kaushal Modi
2017-10-12 21:12 ` Allen Li
2017-10-12 22:43 ` Kaushal Modi
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=2E60E16B-A6A8-4D34-AE40-2933BF5F147D@me.com \
--to=cbol@me.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.