From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Carsten Dominik" Subject: Re: [Patch] Sort agenda items by todo-state Date: Thu, 22 Nov 2007 08:35:03 +0100 Message-ID: References: <52D89C75FEE9444E8D9C016E3730098306CE6B@chsa1036.share.beluni.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iv6aZ-0002PX-S8 for emacs-orgmode@gnu.org; Thu, 22 Nov 2007 02:35:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iv6aY-0002PL-2B for emacs-orgmode@gnu.org; Thu, 22 Nov 2007 02:35:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iv6aX-0002PI-Sg for emacs-orgmode@gnu.org; Thu, 22 Nov 2007 02:35:05 -0500 Received: from rv-out-0910.google.com ([209.85.198.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iv6aX-0001v4-83 for emacs-orgmode@gnu.org; Thu, 22 Nov 2007 02:35:05 -0500 Received: by rv-out-0910.google.com with SMTP id c27so2166020rvf for ; Wed, 21 Nov 2007 23:35:03 -0800 (PST) In-Reply-To: <52D89C75FEE9444E8D9C016E3730098306CE6B@chsa1036.share.beluni.net> Content-Disposition: inline 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: "Egli Christian (KIRO 41)" Cc: emacs-orgmode@gnu.org I for one do like the patch, so please clean it up and I would be happy to take it (if you have signed the papers with the FSF, that is :-( - Carsten On Nov 21, 2007 1:13 PM, Egli Christian (KIRO 41) wrote: > > > > > * Introduction > I live in my org agenda view and I schedule all my tasks to the > day that I want to do them. I also would like to see my > achievements so I keep the TODOs that are done in the agenda > view. However I would like them to get out of the way so that I > can better see the tasks that are still open. That is why for a > long time I've been wanting to sort the agenda items by todo > state. > > * Patch > I finally looked at the code and realized that this was not very > hard to do. The following patch (against 5.13i) implements a new > org-agenda-sorting-strategy that allows you to sort agenda items > by todo-state. > > * Notes > The patch is basically a "works-for-me" implementation. It only > sorts todo and scheduled items. It should probably do the same > for deadlines. Maybe even for timestamps? > > The doc strings need to be updated. > > Carsten at one time talked about implementing this feature by > using priorities, i.e. factoring the todo-state into the priority > (which uses the actual priority plus some calculation based on > how many days the task is overdue). This patch takes a different > route. > > The sorting is done by comparing the todo-state of the items. It > first orders them by done state, i.e. all done items come after > (or before) the items that are not done. After that it compares > the todo-states with a string compare. This should probably use > some kind of ordering information from the relevant > org-todo-keywords sequence. > > * Conclusion > So the basic question is: Should I clean up this patch to get it > included? Is the proposed route (of not taking the priorities) > ok? And finally: How do I sort taking the sequence order into > consideration? > > Christian > > > <> > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >