From: Max Nikulin <manikulin@gmail.com>
To: "Sébastien Gendre" <seb@k-7.ch>, emacs-orgmode@gnu.org
Subject: Re: Capture, template expansion and keyword for link type
Date: Thu, 11 Jul 2024 21:05:04 +0700 [thread overview]
Message-ID: <d8ae4eff-852b-4424-9527-a98e5b5538e3@gmail.com> (raw)
In-Reply-To: <87r0c08ldo.fsf@k-7.ch>
On 11/07/2024 13:59, Sébastien Gendre wrote:
> I was reading the Org-mode manual, at section "10.1.3.2 Template
> expansion":
> https://orgmode.org/manual/Template-expansion.html
>
> And I was a little bit confused by the "%:keyword". The manual say:
> "Specific information for certain link types, see below."
>
> Where did this link come from ?
>
> When is it defined, and from/to where ?
See the "Link type, Available keywords" table in this section.
`org-capture' may be executed in various Emacs buffers and available
keywords may depend on major mode.
> Is it possible to passe more keyword through an org-protocol call ?
Some time ago I tried %(exp) elisp snippets in templates (untested)
"* [[%:link][%:description]]
#+BEGIN_QUOTE
%i
#+END_QUOTE
%(let ((bla (plist-get (plist-get org-store-link-plist :query) :bla)))
(or bla "No bla"))"
emacsclient
'org-protocol:/capture?template=s&title=Hello&body=World&url=http:%2F%2Fexample.com&bla=foo'
next prev parent reply other threads:[~2024-07-11 14:06 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
2024-07-11 14:05 ` Max Nikulin [this message]
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=d8ae4eff-852b-4424-9527-a98e5b5538e3@gmail.com \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=seb@k-7.ch \
/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.