From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: how do I search state change dates? Date: Wed, 02 Jan 2019 14:59:03 +0000 Message-ID: <87pntfxg08.fsf@gmail.com> References: <5a27130f-1c88-8fee-cd9b-0d46c138e0d1@binghamton.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gehzC-0006jS-3z for emacs-orgmode@gnu.org; Wed, 02 Jan 2019 09:59:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gehz7-0006cm-S9 for emacs-orgmode@gnu.org; Wed, 02 Jan 2019 09:59:10 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:55031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gehz7-0006cE-Ld for emacs-orgmode@gnu.org; Wed, 02 Jan 2019 09:59:05 -0500 Received: by mail-wm1-x32c.google.com with SMTP id a62so26884822wmh.4 for ; Wed, 02 Jan 2019 06:59:05 -0800 (PST) In-Reply-To: <5a27130f-1c88-8fee-cd9b-0d46c138e0d1@binghamton.edu> (Christopher W. Ryan's message of "Tue, 1 Jan 2019 14:16:27 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Christopher W. Ryan" Cc: Org-mode mailing list 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