Start a new topic

Can Beorg do a sorted priority list?

Across all tasks or limited to a file (category)?

Yes, you can do this. For example "g p > s" will group the results by priority and then sort within each priority by state (so that todo starts come before done starts).


If you tap the ? on the bar that appears above the keyboard when searching you'll find an overview of how to group and sort.


Once you've got a search that works then you can create a saved search to easily bring it up in the future.


1 person likes this

Grouping/sorting by priority is very handy!  But I notice that tasks with no explicit priority appear at the bottom of the list, whereas org-mode considers the default priority to be [#B].  I find it convenient to mark tasks [#A] to get them near the top of the list and [#C] to keep them near the bottom.  The bulk of tasks should be in between, sorting as if they were marked [#B].   If also seems as if I can't do this myself in scheme, since sorting search results in scheme is not supported.  Can I call it a feature request for tasks with no explicit priority tag to sort as if they had priority 'B'?

You can take the other approach.  Rather than change BeOrg (much), I added a priority on Org.  That is:

  • A - do it now
  • B - need to look at soon
  • C -  start looking at
  • D - not looked at
I made D my default (as well as my lowest) priority and I never assign anything to D.  Then, when I sort my tasks by priority, all the new (no priority) tasks show up at the bottom of the list and I can start working them up in priority (org-super-agenda and org-ql packages can be helpful).  I also don't wind up having D priority tasks mixed in with No-Priority tasks.  If you really want B to be your default priority, you could probably setup an ELisp (or Scheme?) function to reprocess your task priority.

You know, I forgot how I set the range of priorities (or tags) that I allow in BeOrg.  Does the Org file processor in BeOrg simply pick it up from context?  (Matt?)


1 person likes this

In library.org the priority list is defined as:


#+begin_src scheme

 (defvar org-priorities '("A" "B" "C" "D" "E" "F")

 "A list of priorites from which the user can select. The order here is how they will be displayed, but don't affect the order when creating the agenda.")

#+end_src


You can therefore change this, for example to match your priorities, as follows:


(set! org-priorities '("A" "B" "C" "D"))


You could then create a template in beorg which defaults the priority to D and then set that template as your default.

Where do no-priority items fall in a list of tasks sorted by priority in BeOrg?  Can that be controlled?

Currently items which don't have a priority assigned when being sorted have priority ignored, so alphabetical sorting by title is used.


As Org-mode assigns an implicit default priority to items which don't have a priority it makes sense for beorg to do the same. This should be simple to add into the code so hope to look at this soon.


1 person likes this

 In BeOrg, no-priority items typically fall at the bottom of the task list. Their placement can't be customized.

There is now a default priority given to items without a specific priority - by default this is B. However that default priority isn't used for grouping - i.e. items given the default priority don't end up with the other B's. Is this something you would find useful - if that was a setting?


1 person likes this

For a list of to-dos, I do like to see the [#A] items at the top, the [#C] items at the bottom, and the others in between, so the modification @matthew mentions (grouping default-priority items with the other [#B]'s) would be useful, but so far I've lived without it.

 

I would suggest setting it to 'Z' by default and adding a variable to set it differently.  I use A-E, so B would put it up pretty high in my priority when I'm thinking that NO priority means it is still to be prioritized in my GTD process.

Login or Signup to post a comment