From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladi Solutka Subject: Re: Overview of agenda files Date: Sun, 28 Sep 2008 20:39:55 +0000 (UTC) Message-ID: References: <1222255681.24243.1275691879@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kk38n-00027P-KF for emacs-orgmode@gnu.org; Sun, 28 Sep 2008 16:45:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kk38m-00027A-BC for emacs-orgmode@gnu.org; Sun, 28 Sep 2008 16:45:17 -0400 Received: from [199.232.76.173] (port=39569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kk38m-000277-4y for emacs-orgmode@gnu.org; Sun, 28 Sep 2008 16:45:16 -0400 Received: from main.gmane.org ([80.91.229.2]:36444 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kk38l-0002qz-A1 for emacs-orgmode@gnu.org; Sun, 28 Sep 2008 16:45:15 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Kk38Y-0005Ab-QL for emacs-orgmode@gnu.org; Sun, 28 Sep 2008 20:45:02 +0000 Received: from ppp-88-217-5-200.dynamic.mnet-online.de ([88.217.5.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Sep 2008 20:45:02 +0000 Received: from mmlists by ppp-88-217-5-200.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Sep 2008 20:45:02 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi! Carsten Dominik uva.nl> writes: > > All I currently miss is the possibility to have a top overview of my > > projects, listing the count of the different keywords (since each > > project has its own file, this would be in fact an overview of my > > agenda files). [...] > There is nothing built-in to make something like this, but using > dynamic blocks and the entry mapper, it can be implemented compactly. > > Load the following code, in .emacs or so.... [...] Wow, thanks alot :-) I thought about writing an external script since I don't really know too much about lisp, but I definitely prefer a 'native' solution. Unfortunately I get a Lisp error: (void-variable my-count-todo-states-internal) Stack trace: (lambda nil my-count-todo-states-internal)() org-scan-tags(my-count-todo-states-internal t) org-map-entries(my-count-todo-states-internal nil agenda :name "count-todo-states" :states ("TODO" "WAIT" "LATER") :content #("\n" 0 1 (fontified t))) apply(org-map-entries my-count-todo-states-internal nil agenda (:name "count-todo-states" :states ("TODO" "WAIT" "LATER") :content #("\n" 0 1 (fontified t)))) org-dblock-write:count-todo-states((:name "count-todo-states" :states ("TODO" "WAIT" "LATER") :content #("\n" 0 1 (fontified t)))) I had a look into the code but got somewhat lost, sorry ... :-| (BTW currently I use emacs 22.3 on windows). > I have made the file names links, > I am not sure what you mean by making links of the counts..... I thought about making the count numbers links that automagically open the corresponding file and execute a sparse todo-tree command; this would help to ie quickly view all my 'WAITING' entries (complete w/ context) of a specific project. I was also hoping the be able to (a) differentiate in the overview between scheduled and unscheduled (kind of 'open') entries and (b) to open sparse trees only showing these unscheduled entries (see my other post "custom commands 'todo-tree' and org-agenda-skip-function"). Anyway, thanks very much for all your effort! --- \\/ladi