I would like to create an org-capture template such that when I select it with org-capture (which is mapped to C-c c for me), I want the capture template to ask me for the description and URL of a link, then insert that into a heading and use the entered data as the title of a second level heading.
* Bookmarks ** Captured Link ** Captured Link ** .. So far I use this:
("b" "Bookmark" entry (file+headline ,(concat org-directory "/refile.org") "Bookmarks") "* %?\n") The problem is that I need to press C-c l manually. I would like the org-store-link function to be called automatically when I run the capture template.
org-store-linkdoes not insert a link: it stores a link for later insertion byorg-inert-link, so I'm not sure what you mean - can you clarify? Providing a detailed usage example would go a long way towards clarifying what you mean.org-store-linkand add"%a"to the org-capture template to get stored-link like"* %a\n%?". For more detail, please refer to the doc oforg-capture-templates.org-capturewhich is mapped toC-c cfor me, I want the capture template to ask me for the description and url of the link then insert that into a heading.