emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org capture properties from a list of strings?


From: Nicolas Goaziou
Subject: Re: [O] org capture properties from a list of strings?
Date: Tue, 25 Apr 2017 10:00:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Xebar Saram <address@hidden> writes:

> kinda stuck with this and cant find any documentation. would also be glad
> to know its not possible so i can perhaps explore another method :)
>
> im basically wondering if instead of manually imputing string separated
> with | in the  : %^{} capture template i can provide a lisp way to send a
> pre defined list of strings ("a" "b" "c") etc.. anyone has any clue?

Since it is pre-defined, you can do the following during capture
definition

  (format "* Headline
  :PROPERTIES:
  :Time: %%^{minutes|-|%s}
  :Rating: %%^{rating?|-|%s}
  :END:"
          (mapconcat #'number-to-string '(10 15 30 60) "|")
          (mapconcat #'number-to-string '(1 2 3 4 5) "|"))

Can't you?

Regards,

-- 
Nicolas Goaziou



reply via email to

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