Re: [O] capture template placeholders do not work

2017-10-12 Thread Kaushal Modi
On Thu, Oct 12, 2017 at 5:12 PM Allen Li wrote: > org-store-link-props basically shoves everything into > org-store-link-plist (with some pre-processing). The plist keys are > what's used as keywords for %: > > The :initlal is special; it gets mapped to %i, and :query is a list > not a string, s

Re: [O] capture template placeholders do not work

2017-10-12 Thread Allen Li
On Thu, Oct 12, 2017 at 6:24 AM, Kaushal Modi wrote: > > I don't use org-protocol, but I'd just like to understand how you derived > that. > > Source code: > > (defun org-protocol-do-capture (info) > "Perform the actual capture based on INFO." > (let* ((temp-parts (org-protocol-parse-parameter

Re: [O] capture template placeholders do not work

2017-10-12 Thread Kaushal Modi
On Thu, Oct 12, 2017 at 12:07 AM Allen Li wrote: > %:url and $:title are wrong, they should be %:link and %:description > respectively. > > Check out the source code of org-protocol-do-capture. > > The valid placeholders are > > type > link > description > annotation > I don't use org-protocol,

Re: [O] capture template placeholders do not work

2017-10-12 Thread Carl Bolduc
> On Oct 11, 2017, at 11:54 PM, Allen Li wrote: > > %:url and $:title are wrong, they should be %:link and %:description > respectively. oh! thank you, I modified the template and it works now. The manual is misleading: "The template refers to the data through %:url and %:title placeholders."

Re: [O] capture template placeholders do not work

2017-10-11 Thread Allen Li
On Wed, Oct 11, 2017 at 11:47 AM, Carl Bolduc wrote: > 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”) %:url and $:title are wrong, they should be %:l