unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: daniela-spit@gmx.it
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Org Capture - Copy of Entry to another Org File
Date: Sat, 28 Nov 2020 15:12:20 +0100	[thread overview]
Message-ID: <trinity-aa94ac8f-afd9-4877-8fc5-477af42b1d83-1606572740944@3c-app-mailcom-bs12> (raw)

I am making some templates for Org Capture, code below.

Is it possible to have an option to send a copy of a Todo Entry
(stored in todo.org) to either the "Today" or "This Week" in
sched-plan.org.


-------- start of code --------

   (setq org-capture-templates
      `(("t" "Todo: Schedule")              ; backquote construct
        ("te" "Todo: Entry" entry
           (file "~/ghistr/gadmin/todo.org")
           ,(concat                        ; special marker [,]
               "* TODO %^{Heading}\n  Brief: %^{Brief}\n  Detail: %?\n"
               "  Scheduled: %^T\n  Entered: %T\n  Link: %a\n")
           :clock-in t :clock-resume t)

        ("td" "+ Today" entry
           (file "~/02histr/gadmin/sched-plan.org")
           ,(concat                        ; special marker [,]
               "* TODO %^{Today|ThisWeek|ThisQuarter}\n"
               "%^{Heading}\n %i")
           :clock-in t :clock-resume t)

        ("tw" "+ Week" entry
           (file "~/02histr/gadmin/sched-plan.org")
           ,(concat
               "* TODO %^{Heading}\n  Brief: %^{Brief}\n  Detail: %?\n"
               "  %^{Scheduled: |Today|This Week|This Quarter}\n"
               "  Scheduled: %^T\n  Entered: %T\n  Link: %a\n")
           :clock-in t :clock-resume t)




             reply	other threads:[~2020-11-28 14:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-28 14:12 daniela-spit [this message]
2020-11-28 16:20 ` Org Capture - Copy of Entry to another Org File Jean Louis
2020-11-28 16:38   ` daniela-spit

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-aa94ac8f-afd9-4877-8fc5-477af42b1d83-1606572740944@3c-app-mailcom-bs12 \
    --to=daniela-spit@gmx.it \
    --cc=help-gnu-emacs@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.
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).