From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: How to view everything DONE today? Date: Wed, 26 Nov 2014 14:44:47 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtiWG-0000xS-IS for emacs-orgmode@gnu.org; Wed, 26 Nov 2014 14:45:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtiWA-0000CZ-FI for emacs-orgmode@gnu.org; Wed, 26 Nov 2014 14:44:56 -0500 Received: from smtp.andrew.cmu.edu ([128.2.105.203]:41959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtiWA-0000C3-Be for emacs-orgmode@gnu.org; Wed, 26 Nov 2014 14:44:50 -0500 In-Reply-To: (Sascha Ziemann's message of "Wed, 26 Nov 2014 14:56:03 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sascha Ziemann Cc: emacs-orgmode@gnu.org I am not sure how to do this through the agenda, but here is a way to find headlines in the current file that were closed today. You could wrap this in a loop over the files in your agenda list. It is a little clumsy on the time comparisons but it works ;) * Getting items done today ** DONE item 1 CLOSED: [2014-11-26 Wed 13:09] DEADLINE: <2014-11-26 Wed> ** DONE item 2 CLOSED: [2014-11-25 Tue 13:09] DEADLINE: <2014-11-26 Wed> ** Mapping entries to find what closed today. First, we look at a timestamp comparison function. #+BEGIN_SRC emacs-lisp (org-time= "<2014-11-26 Wed>" "<2014-11-26 Wed>") #+END_SRC #+RESULTS: : t #+BEGIN_SRC emacs-lisp (org-map-entries (lambda () (let* ((closed (org-entry-get (point) "CLOSED")) (today (format-time-string "<%Y-%m-%d>"))) (when closed (when (org-time= today (let ((parts (org-parse-time-string closed))) (format "<%s-%s-%s>" (nth 5 parts) ; year (nth 4 parts) ; month (nth 3 parts) ; day ))) (message-box "Found a closed task: %s" (org-heading-components))))))) #+END_SRC #+RESULTS: | nil | Found a closed task: (2 2 DONE nil item 1 nil) | nil | nil | Sascha Ziemann writes: > Hi, > > I tried to get a list of all items done today. I tried to open the > agenda view but is does not show anything. What is the right command > to see the items done today? > > Regards, > Sascha > -- ----------------------------------- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu