[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] sort TODO entries more usefully
From: |
Eric Abrahamsen |
Subject: |
Re: [O] [PATCH] sort TODO entries more usefully |
Date: |
Sun, 25 May 2014 19:51:55 +0800 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) |
Bastien <address@hidden> writes:
> Hi Eric,
>
> Eric Abrahamsen <address@hidden> writes:
>
>> For some reason I've been sorting lots of TODOs recently, and found the
>> default behavior of org-sort-entries a little odd. It sorts according to
>> the order found in org-todo-keywords-1, which apparently just comes from
>> the order the keywords were scanned during setup. I don't think that's
>> all that useful, so the attached patch sorts first by
>> org-not-done-keywords vs org-done-keywords, then alphabetically.
>> Headings with no keywords sort "big".
>
> I don't think the alphabetical order is very useful here, and putting
> headlines without TODO keywords first when sorting by TODO order is
> counter-intuitive at least.
>
> Let me suggest the attached patch instead: it puts TODO entries, then
> entries without a TODO keyword, then DONE entries.
>
> Would it be an improvement?
Sure! The actual ordering of stuff was an arbitrary choice on my part --
the only thing I cared about was getting done and not-done separated.
This looks like a tidier solution, to boot...
E