From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Grouping tasks with todo-keywords Date: Mon, 26 Jun 2017 08:15:59 +1000 Message-ID: References: <87o9tmfp9n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147b804dacae10552d02db9" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPFp5-0004PH-GJ for emacs-orgmode@gnu.org; Sun, 25 Jun 2017 18:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPFp4-0005TE-8G for emacs-orgmode@gnu.org; Sun, 25 Jun 2017 18:16:03 -0400 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:33159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPFp4-0005RW-0U for emacs-orgmode@gnu.org; Sun, 25 Jun 2017 18:16:02 -0400 Received: by mail-qk0-x22a.google.com with SMTP id r62so66597471qkf.0 for ; Sun, 25 Jun 2017 15:16:00 -0700 (PDT) In-Reply-To: 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" To: Fabrice Niessen Cc: Org-mode --001a1147b804dacae10552d02db9 Content-Type: text/plain; charset="UTF-8" I have this in my init.el - I did it years ago and it could be refined, but works for my needs. My custom agenda view breaks the agenda into 4 blocks of todos - Completed/Cancelled - WIP - Delegated - Backlog (setq org-agenda-custom-commands (quote (("n" "Agenda and all TODO's" ((agenda "" nil) (alltodo "" nil)) nil) ("wr" "Weekly Report" ((todo "DONE|CANCELLED" ((org-agenda-overriding-header "Completed and Cancelled : Last Week"))) (todo "STARTED|NEXT" ((org-agenda-overriding-header "WIP"))) (todo "HOLD|DELEGATED" ((org-agenda-overriding-header "On Hold and Delegated Tasks"))) (todo "TODO" ((org-agenda-overriding-header "Task Backlog")))) nil nil)))) On 25 June 2017 at 19:02, Fabrice Niessen wrote: > Narendra Joshi writes: > > Is it possible to group tasks in org-agenda by the state they are in? > > For example, I would like to have horizontal divider between all tasks > > that are ONGOING and tasks that are in TODO state. > > I have already setup `org-agenda-sorting-strategy' to get the desired > > order. > > You could be interested to have a look at my org-leuven-agenda-views.el, > in my own "Emacs Leuven" configuration files. > > Fabrice > > -- > Fabrice Niessen > Leuven, Belgium > http://www.pirilampo.org/ > > > -- regards, Tim -- Tim Cross --001a1147b804dacae10552d02db9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have this in my init.el - I did it years ago and it coul= d be refined, but works for my needs. My custom agenda view breaks the agen= da into 4 blocks of todos

- Completed/Cancelled
- WIP
- Delegated
- Backlog

=
=C2=A0 =C2=A0 (setq org-agenda-custom-commands
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 (quote
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0(("n" "Agenda and all TODO's"
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((agenda "" nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (alltodo "&quo= t; nil))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("wr" "Week= ly Report"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(= (todo "DONE|CANCELLED"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((org-agenda-overriding-header "= ;Completed and Cancelled : Last Week")))
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "STARTED|NEXT"
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((org= -agenda-overriding-header "WIP")))
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "HOLD|DELEGATED"
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((org-ag= enda-overriding-header "On Hold and Delegated Tasks")))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (todo "TODO"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ((org-agenda-overriding-header "Task Backlog"))))
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nil nil))))

On 25 June 2017= at 19:02, Fabrice Niessen <news@pirilampo.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Narendra Joshi <narendraj9@gmail.com> writes:
> Is it possible to group tasks in org-agenda by the state they are in?<= br> > For example, I would like to have horizontal divider between all tasks=
> that are ONGOING and tasks that are in TODO state.
> I have already setup `org-agenda-sorting-strategy' to get the desi= red
> order.

You could be interested to have a look at my org-leuven-agenda-views= .el,
in my own "Emacs Leuven" configuration files.

Fabrice

--
Fabrice Niessen
Leuven, Belgium
= http://www.pirilampo.org/





--
regards,

Tim

--
Tim Cross

--001a1147b804dacae10552d02db9--