emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: "Christopher W. Ryan" <cryan@binghamton.edu>
Cc: Org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: how do I search state change dates?
Date: Wed, 02 Jan 2019 14:59:03 +0000	[thread overview]
Message-ID: <87pntfxg08.fsf@gmail.com> (raw)
In-Reply-To: <5a27130f-1c88-8fee-cd9b-0d46c138e0d1@binghamton.edu> (Christopher W. Ryan's message of "Tue, 1 Jan 2019 14:16:27 -0500")

On Tuesday,  1 Jan 2019 at 14:16, Christopher W. Ryan wrote:
> I try to keep track of books I want to read, and when I eventually read
> them.  I use TODO keyword for books I intend to read, and I change the
> state to READING and then DONE, as appropriate. Each state change gets a
> date/time stamp.

[...]

> How can I retrieve all the entries for the books I've read in 2018? In
> other words, all those that changed state to DONE in 2018?

Well, a start would be to use the agenda view on that file and ask for a
full log view (v L in the default dispatcher).

Alternatively, remember that org files are simply text so you could use
"M-x occur RET" on your file with a suitable pattern.  This seems to
work for me:

- State "DONE".*\[2018

Of course, if your book entries are intermixed with other entries in the
same file, you may need to be a bit more creating (e.g. include
"READING" in your pattern).

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442

  reply	other threads:[~2019-01-02 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01 19:16 how do I search state change dates? Christopher W. Ryan
2019-01-02 14:59 ` Eric S Fraga [this message]
2019-01-02 19:24 ` Michael Welle
2019-01-12 23:43   ` Christopher W. Ryan
2019-01-13  6:02     ` Michael Welle

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=87pntfxg08.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=cryan@binghamton.edu \
    --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).