emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Thomas <eric@ericthomas.net>
To: emacs-orgmode@gnu.org
Subject: Dynamic Org-capture Templates
Date: Fri, 3 Nov 2017 17:32:07 -0700	[thread overview]
Message-ID: <CALxTFT5Q85PjKjn0O5M+Q3douvnAs_K_Cx2ZsBuZ6TfHrp0t5Q@mail.gmail.com> (raw)

Does anyone know how to approach creating dynamic Org-capture
templates? I'm looking for IDO/Helm type of completion after a
template has been selected. If string does not exist, it is created
and added to future completions, similar to new files in emacs.

Example:

C-c c
"a" (activity)
Activity: math               (<--need completion here)
Topic: multiplication       (<--need completion here)
Date: 2017-09-11           (<--need default to todays date)
Start time: 07:00 AM      (<--need to define AM/PM easily)
Duration: 20                   (<--easier way to capture time?)
Unit: mins

And

C-c c
"a" (activity)
Activity: physical education (<--again, completion starts as "ph.." is typed)
Type: Yoga                         (<--completion)
Class: Level 2 flow              (<--completion)
Date: 2017-09-11                 (<--date picker of some kind)
Start time: 07:00 AM           (<--define AM/PM easily)
Duration: 90                        (<--easy method for capturing time)
Unit: mins


Maybe Org-capture templates are not the correct way to approach this?
Any direction is appreciated.

Thanks

             reply	other threads:[~2017-11-04  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-04  0:32 Eric Thomas [this message]
2017-11-04  7:13 ` Dynamic Org-capture Templates Narendra Joshi

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=CALxTFT5Q85PjKjn0O5M+Q3douvnAs_K_Cx2ZsBuZ6TfHrp0t5Q@mail.gmail.com \
    --to=eric@ericthomas.net \
    --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).