emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: JG <jerzor@pacbell.net>
To: emacs-orgmode@gnu.org
Subject: Extending org-batch-agenda-csv to include location property
Date: Sun, 19 Sep 2021 11:50:09 -0700	[thread overview]
Message-ID: <87pmt4cqb5.fsf@pacbell.net> (raw)
In-Reply-To: 87pmt4cqb5.fsf.ref@pacbell.net

Hi, I've been researching a way to extend the org-batch-agenda-csv
command to include a location property from the properties drawer. From
what I see in the source code, the fields it creates are all hard-coded:

https://github.com/tkf/org-mode/blob/master/lisp/org-agenda.el#L2984-L2985

and I don't see a straight-forward way to include things that are in the
properties drawer, namely the location property.

In doing some broader research, I came across the org-agenda-property
package which extracts information in the property drawer, by default
including the location property, and appends it to the full view of the
agenda. It appears this extraction occurs in the package in these lines:

https://github.com/Malabarba/org-agenda-property/blob/master/org-agenda-property.el#L165-L170

If someone could point me in the right direction about extending the
org-batch-agenda-csv function to include the location property from the
property drawer, perhaps by somehow incorporating the procedure in the
org-agenda-property package, I would appreciate it.


           reply	other threads:[~2021-09-19 19:35 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <87pmt4cqb5.fsf.ref@pacbell.net>]

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=87pmt4cqb5.fsf@pacbell.net \
    --to=jerzor@pacbell.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).