From: Xebar Saram <zeltakc@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Re: org capture properties from a list of strings?
Date: Tue, 25 Apr 2017 10:45:20 +0300 [thread overview]
Message-ID: <CAOQHXPovtFvpLMY4yQg3nQV_Xb5BzaQyir4J8+r9FAjYXJiSXw@mail.gmail.com> (raw)
In-Reply-To: <CAOQHXPoiqeMvg+N3VFoG1=O0-By1_qpJQFt6wTZVOLMgPw=0fg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
Hi again all
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?
best
Z
On Sun, Apr 23, 2017 at 5:41 PM, Xebar Saram <zeltakc@gmail.com> wrote:
> Hi all
>
> so i currently have this in my capture templates
>
>
> :PROPERTIES:
> :Time: %^{minutes|-|10|15|30|60}
> :Rating: %^{rating?|-|1|2|3|4|5}
> :END:
>
> i was wondering if instead of manually putting the values in each line i
> can perhaps supply a list like this
>
>
> (defun returns-a-list-of-strings2
> ()
> (list "1" "2" "3" "4" "5" ))
>
> is that somehow possible where i could have something like this
>
>
> :Rating: %^{rating?|(returns-a-list-of-strings2)}
>
> is that possible at all?
>
> best
>
> Z
>
[-- Attachment #2: Type: text/html, Size: 1936 bytes --]
next prev parent reply other threads:[~2017-04-25 7:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 14:41 org capture properties from a list of strings? Xebar Saram
2017-04-25 7:45 ` Xebar Saram [this message]
2017-04-25 8:00 ` Nicolas Goaziou
2017-04-25 15:56 ` Xebar Saram
2017-04-25 16:19 ` Nicolas Goaziou
2017-04-26 12:28 ` Xebar Saram
2017-04-26 14:13 ` Nicolas Goaziou
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOQHXPovtFvpLMY4yQg3nQV_Xb5BzaQyir4J8+r9FAjYXJiSXw@mail.gmail.com \
--to=zeltakc@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).