emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request


From: Ihor Radchenko
Subject: Re: Feature request
Date: Sun, 17 Jan 2021 14:18:12 +0800

I think something like the following will do (untested):

(defun org-attach-save-file-list-to-property ()
  "Save list of attachments to ORG_ATTACH_FILES property."
  (when-let* ((dir (org-attach-dir))
              (files (org-attach-file-list dir)))
    (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", "))))
(add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property)

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]