emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* capture template placeholders do not work
@ 2017-10-11 18:47 Carl Bolduc
  2017-10-12  3:54 ` Allen Li
  0 siblings, 1 reply; 6+ messages in thread
From: Carl Bolduc @ 2017-10-11 18:47 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2017-10-12 22:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11 18:47 capture template placeholders do not work Carl Bolduc
2017-10-12  3:54 ` 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

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