On 2025-10-23 19:17, Ihor Radchenko <[email protected]> writes:

> Alan Schmitt <[email protected]> writes:
>
>> In the context of capturing a web page using org-protocol, I would like
>> to use the page title as an argument to a function I use in the capture
>> (to generate the capture template). Is there a way in elisp to transform
>> the `%:description' template to its value?
>
> (plist-get org-store-link-plist :description)

Thank you very much, this works great.

For the record, here is the capture template I’m now using:

        ("D" "Denote web page" plain
         (file denote-last-path)
         (function (lambda ()
                     (let ((denote-use-title (plist-get org-store-link-plist 
:description))
                           (denote-use-keywords '("web"))
                           (denote-use-directory (expand-file-name "notes" 
(denote-directory))))
                       (denote-org-capture))))
         :immediate-finish t
         :kill-buffer t
         :jump-to-captured t)

Thanks again,

Alan

Attachment: signature.asc
Description: PGP signature

Reply via email to