From: "Sébastien Gendre" <seb@k-7.ch>
To: Ihor Radchenko <yantar92@posteo.net>
Subject: Re: Capture, template expansion and keyword for link type
Date: Thu, 11 Jul 2024 22:47:24 +0200 [thread overview]
Message-ID: <87cynjwt9f.fsf@k-7.ch> (raw)
In-Reply-To: <87ikxc58xw.fsf@localhost> (Ihor Radchenko's message of "Thu, 11 Jul 2024 13:56:11 +0000")
[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]
Thank you for your reply.
I have write more, after the quotes below.
Ihor Radchenko <yantar92@posteo.net> writes:
> 1. If there is %a placeholder in the template, org-capture stores link
> to the location from where you called org-capture
>
> 2. If there is no placeholder, the last stored link is used
But how the "%:keyword" information are built ?
What I have understand from the documentation, it has something to do
with a "link". But I found the documentation unclear about this.
The text help for "%:keyword" only say:
"Specific information for certain link types, see below."
And bellow it say:
"For specific link types, the following keywords are defined:"
And the footnote say:
"If you define your own link types (see Adding Hyperlink Types), any
property you store with org-store-link-props can be accessed in capture
templates in a similar way."
As I didn't plan to define custom link, and read all the manual part
about it, as a simple org-capture user I have difficulties to understand
how the "%:keywords" are generated and how I can know which ones a
available in which condition.
At least, based on what the section "10.1.3.2 Template expansion" of
Org-mode documentation tell me.
Mak Nikulin say that these "%:keyword" are created by major modes.
Ihor Radchenko <yantar92@posteo.net> writes:
> Not directly. Additional keywords are stored inside undocumented %:query
> keyword value.
So, I would need to use the "%(EXP)", and as "EXP", I need to write
Elisp code that will extract supplemental data passed on the
org-protocol url during the call ?
Best regards
-------
Gendre Sébastien
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]
next prev parent reply other threads:[~2024-07-11 20:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87sewga4ni.fsf@k-7.ch>
2024-07-11 6:59 ` Capture, template expansion and keyword for link type Sébastien Gendre
2024-07-11 13:56 ` Ihor Radchenko
2024-07-11 20:47 ` Sébastien Gendre [this message]
2024-07-11 14:05 ` Max Nikulin
2024-07-11 20:36 ` Sébastien Gendre
2024-07-12 12:00 ` Max Nikulin
2024-07-12 16:34 ` Sébastien Gendre
2024-07-14 8:22 ` Max Nikulin
2024-07-11 3:42 Sébastien Gendre
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=87cynjwt9f.fsf@k-7.ch \
--to=seb@k-7.ch \
--cc=yantar92@posteo.net \
/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.