From mboxrd@z Thu Jan 1 00:00:00 1970 From: Renger van Nieuwkoop Subject: Problems with habit sorting Date: Mon, 8 Oct 2012 15:32:27 +0000 Message-ID: <5E17CCD4AACE3A4C8CFF411186AE819024E7D2CC@EXDAG30-N2.hostallapps.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_5E17CCD4AACE3A4C8CFF411186AE819024E7D2CCEXDAG30N2hostal_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFdW-0002DC-82 for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 11:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLFdO-0000NU-DZ for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 11:52:54 -0400 Received: from cshbfe02.hostallapps.net ([69.160.246.126]:19114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLFdO-0000N8-9F for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 11:52:46 -0400 Content-Language: de-DE 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: "emacs-orgmode@gnu.org" --_000_5E17CCD4AACE3A4C8CFF411186AE819024E7D2CCEXDAG30N2hostal_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I have an agenda-view where I can see all my habits. They have priorities b= ut are not sorted. Any idea how to sort them according to priority. My view looks like this Monday 8 October 2012 W41 8:30...... ---------------- 10:00...... ---------------- 12:00...... ---------------- 13:00...... ---------------- 15:00...... ---------------- 17:00...... ---------------- 17:27...... now - - - - - - - - - - - - - - - - - - - - - - -= - - refile: In 3 d.: TODO [#A] Sullivan Chapter = :REFILE:: refile: In 5 d.: TODO [#A] Blog = :REFILE:: refile: In 3 d.: TODO [#B] Exercise 1 = :REFILE:: Diary: Shemini Atzeret Diary: Columbus Day habits: TODO [#B] habit1 = *! :HABIT:: habits: TODO [#A] habit2 = ! :HABIT:: habits: TODO [#B] habit3 = ! :HABIT:: habits: TODO [#B] habit4 = ! :HABIT:: habits: TODO [#A] habit5 = ! :HABIT:: Thanks Renger ___________________________________________________________________________= ________________ Renger van Nieuwkoop Goldiwilstrasse 16 F / 3600 Thun Tel +41 33 221 53 05 / +41 79 818 53 73 mailto: renger@vannieuwkoop.ch --_000_5E17CCD4AACE3A4C8CFF411186AE819024E7D2CCEXDAG30N2hostal_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi
I have an agenda-view where I can see all my habits. They have priorit= ies but are not sorted.
Any idea how to sort them according to priority.
 
My view looks like this
 
Monday      8 October 2012 W41
           &nbs= p;   8:30...... ----------------
           &nbs= p;  10:00...... ----------------
           &nbs= p;  12:00...... ----------------
           &nbs= p;  13:00...... ----------------
           &nbs= p;  15:00...... ----------------
           &nbs= p;  17:00...... ----------------
           &nbs= p;  17:27...... now - - - - - - - - - - - - - - - - - - - - - - - - -<= /div>
  refile:     In   3 d.:  TODO= [#A] Sullivan Chapter         = ;            &n= bsp;            = ;       :REFILE::
  refile:     In   5 d.:  TODO= [#A] Blog           = ;            &n= bsp;            = ;            &n= bsp;    :REFILE::
  refile:     In   3 d.:  TODO= [#B] Exercise 1          = ;            &n= bsp;            = ;            :REFILE= ::
  Diary:      Shemini Atzeret
  Diary:      Columbus Day
  habits:     TODO [#B] habit1  &nb= sp;            =              &n= bsp;            &nbs= p;       *!     &nbs= p;      :HABIT::
  habits:     TODO [#A] habit2  &nb= sp;            =              &n= bsp;            = ;         !     &nbs= p;      :HABIT::
  habits:     TODO [#B] habit3  &nb= sp;            =             &nb= sp;             &nbs= p;        !     = ;       :HABIT::
  habits:     TODO [#B] habit4  &nb= sp;            =              &n= bsp;            = ;         !     = ;       :HABIT::
  habits:     TODO [#A] habit5  &nb= sp;            =              &n= bsp;            = ;         !     = ;       :HABIT::
 
 
Thanks
 
Renger
 
_______________________________________________= ____________________________________________
 
Renger van Nieuwkoop
Goldiwilstrasse 16 F / 3600 Thun
Tel +41 33 221 53 05 / +41 79 818 53 73=
mailto: renger@vannieuwkoop.ch
 
 
 
--_000_5E17CCD4AACE3A4C8CFF411186AE819024E7D2CCEXDAG30N2hostal_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?RnJhbsOnb2lz?= Allisson Subject: Re: Problems with habit sorting Date: Mon, 8 Oct 2012 18:28:40 +0200 Message-ID: <20121008162840.GA23885@debian> References: <5E17CCD4AACE3A4C8CFF411186AE819024E7D2CC@EXDAG30-N2.hostallapps.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLGBi-0007A5-AZ for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 12:28:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLGBh-0004HT-0P for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 12:28:14 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:43833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLGBg-0004HP-M1 for emacs-orgmode@gnu.org; Mon, 08 Oct 2012 12:28:12 -0400 Content-Disposition: inline In-Reply-To: <5E17CCD4AACE3A4C8CFF411186AE819024E7D2CC@EXDAG30-N2.hostallapps.net> 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: Renger van Nieuwkoop Cc: Org mode Le lundi 08 oct 2012 =C3=A0 15:32:27 (+0000), Renger van Nieuwkoop a =C3=A9= crit : > Hi > I have an agenda-view where I can see all my habits. They have prioriti= es but > are not sorted. > Any idea how to sort them according to priority. Hi Renger, You should probably customise the variable org-agenda-sorting-strategy, with the symbol priority-down, i.e. by adding this line to the definition of your custom agenda-view: (org-agenda-sorting-strategy '(priority-down todo-state-up tag-up)) You can then fine-tuning inside priorities, according to your needs (here, todo-state-up and tag-up for an example). See the docstring for org-agenda-sorting-strategy: *************************************** * org-agenda-sorting-strategy is a variable defined in `org-agenda.el'. * Its value is ((agenda habit-down time-up priority-down category-keep) * (todo priority-down category-keep) * (tags priority-down category-keep) * (search category-keep)) *=20 *=20 * Documentation: * Sorting structure for the agenda items of a single day. * This is a list of symbols which will be used in sequence to determine * if an entry should be listed before another entry. The following * symbols are recognized: *=20 * time-up Put entries with time-of-day indications first, earl= y first * time-down Put entries with time-of-day indications first, late= first * category-keep Keep the default order of categories, corresponding = to the * sequence in `org-agenda-files'. * category-up Sort alphabetically by category, A-Z. * category-down Sort alphabetically by category, Z-A. * tag-up Sort alphabetically by last tag, A-Z. * tag-down Sort alphabetically by last tag, Z-A. * priority-up Sort numerically by priority, high priority last. * priority-down Sort numerically by priority, high priority first. * todo-state-up Sort by todo state, tasks that are done last. * todo-state-down Sort by todo state, tasks that are done first. * effort-up Sort numerically by estimated effort, high effort la= st. * effort-down Sort numerically by estimated effort, high effort fi= rst. * user-defined-up Sort according to `org-agenda-cmp-user-defined', hig= h last. * user-defined-down Sort according to `org-agenda-cmp-user-defined', hig= h first. * habit-up Put entries that are habits first * habit-down Put entries that are habits last * alpha-up Sort headlines alphabetically * alpha-down Sort headlines alphabetically, reversed *=20 * The different possibilities will be tried in sequence, and testing stop= s * if one comparison returns a "not-equal". For example, the default * '(time-up category-keep priority-down) * means: Pull out all entries having a specified time of day and sort the= m, * in order to make a time schedule for the current day the first thing in= the * agenda listing for the day. Of the entries without a time indication, = keep * the grouped in categories, don't sort the categories, but keep them in * the sequence given in `org-agenda-files'. Within each category sort by * priority. *=20 * Leaving out `category-keep' would mean that items will be sorted across * categories by priority. *=20 * Instead of a single list, this can also be a set of list for specific * contents, with a context symbol in the car of the list, any of * `agenda', `todo', `tags', `search' for the corresponding agenda views. *=20 * Custom commands can bind this variable in the options section. *=20 * You can customize this variable. ************************** HTH, Fran=C3=A7ois.