emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Custom Agenda that partially skips entries
@ 2011-04-10  5:58 Ido Magal
  2011-04-10 12:30 ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Ido Magal @ 2011-04-10  5:58 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

I'd appreciate assistance in constructing a custom agenda that accomplishes
the following (if possible):

1. Block of week's agenda.
2. Block of "next" items that have no schedule ( items that don't show up in
block 1 )

This is my starting point:

(setq org-agenda-custom-commands
      '(("n" "Next tasks"
 ((todo "next")))
 ("A" "agenda"
 ((agenda "" ((org-agenda-ndays 7)))
  (todo "next")
  ))
))

The problem here is that I get duplicates because _all_ 'next' items show up
in the second block.  I'd rather that only unscheduled items showed there.

I thought that this would do it, but it fails:

(setq org-agenda-custom-commands
      '(("n" "Next tasks"
 ((todo "next")))
 ("A" "agenda"
 ((agenda "" ((org-agenda-ndays 7)))
  ((todo "next")
   (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline
'scheduled)))
  ))
))

Thanks in advance.

[-- Attachment #2: Type: text/html, Size: 2306 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Custom Agenda that partially skips entries
  2011-04-10  5:58 Custom Agenda that partially skips entries Ido Magal
@ 2011-04-10 12:30 ` Bernt Hansen
  2011-04-10 23:28   ` Ido Magal
  0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2011-04-10 12:30 UTC (permalink / raw)
  To: Ido Magal; +Cc: emacs-orgmode

Ido Magal <ido@idomagal.com> writes:

> I'd appreciate assistance in constructing a custom agenda that
> accomplishes the following (if possible):
>
> 1. Block of week's agenda.
> 2. Block of "next" items that have no schedule ( items that don't
> show up in block 1 )
>
> This is my starting point:
>
> (setq org-agenda-custom-commands
>       '(("n" "Next tasks"
> ((todo "next")))
> ("A" "agenda"
> ((agenda "" ((org-agenda-ndays 7)))
>  (todo "next")
>  ))
> ))
>
> The problem here is that I get duplicates because _all_ 'next' items
> show up in the second block.  I'd rather that only unscheduled items
> showed there.
>
> I thought that this would do it, but it fails:
>
> (setq org-agenda-custom-commands
>       '(("n" "Next tasks"
> ((todo "next")))
> ("A" "agenda"
> ((agenda "" ((org-agenda-ndays 7)))
>  ((todo "next")
>   (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline
> 'scheduled)))
>  ))
> ))
>
> Thanks in advance.

Hi Ido,

In the second block set the variable org-agenda-todo-ignore-scheduled to
either 'future or 'all to avoid listing items with a scheduled date.

This is part of my block agenda for next tasks:

   (tags-todo "-WAITING-CANCELLED/!NEXT|STARTED"
	      ((org-agenda-overriding-header "Available to Work on Now")
	       (org-agenda-skip-function 'bh/skip-projects)
	       (org-agenda-todo-ignore-scheduled 'future)
	       (org-agenda-todo-ignore-deadlines 'future)
	       (org-tags-match-list-sublevels t)
	       (org-agenda-sorting-strategy
		'(effort-up category-keep))))

HTH,
Bernt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Custom Agenda that partially skips entries
  2011-04-10 12:30 ` Bernt Hansen
@ 2011-04-10 23:28   ` Ido Magal
  0 siblings, 0 replies; 3+ messages in thread
From: Ido Magal @ 2011-04-10 23:28 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Ido Magal, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

Perfect. Thanks!

-- 
Ido Magal
Sent with Sparrow
On Sunday, April 10, 2011 at 05:30 , Bernt Hansen wrote: 
> Ido Magal <ido@idomagal.com> writes:
> 
> > I'd appreciate assistance in constructing a custom agenda that
> > accomplishes the following (if possible):
> > 
> > 1. Block of week's agenda.
> > 2. Block of "next" items that have no schedule ( items that don't
> > show up in block 1 )
> > 
> > This is my starting point:
> > 
> > (setq org-agenda-custom-commands
> > '(("n" "Next tasks"
> > ((todo "next")))
> > ("A" "agenda"
> > ((agenda "" ((org-agenda-ndays 7)))
> > (todo "next")
> > ))
> > ))
> > 
> > The problem here is that I get duplicates because _all_ 'next' items
> > show up in the second block. I'd rather that only unscheduled items
> > showed there.
> > 
> > I thought that this would do it, but it fails:
> > 
> > (setq org-agenda-custom-commands
> > '(("n" "Next tasks"
> > ((todo "next")))
> > ("A" "agenda"
> > ((agenda "" ((org-agenda-ndays 7)))
> > ((todo "next")
> >  (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline
> > 'scheduled)))
> > ))
> > ))
> > 
> > Thanks in advance.
> 
> Hi Ido,
> 
> In the second block set the variable org-agenda-todo-ignore-scheduled to
> either 'future or 'all to avoid listing items with a scheduled date.
> 
> This is part of my block agenda for next tasks:
> 
>  (tags-todo "-WAITING-CANCELLED/!NEXT|STARTED"
>  ((org-agenda-overriding-header "Available to Work on Now")
>  (org-agenda-skip-function 'bh/skip-projects)
>  (org-agenda-todo-ignore-scheduled 'future)
>  (org-agenda-todo-ignore-deadlines 'future)
>  (org-tags-match-list-sublevels t)
>  (org-agenda-sorting-strategy
>  '(effort-up category-keep))))
> 
> HTH,
> Bernt
> 

[-- Attachment #2: Type: text/html, Size: 2567 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-10 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10  5:58 Custom Agenda that partially skips entries Ido Magal
2011-04-10 12:30 ` Bernt Hansen
2011-04-10 23:28   ` Ido Magal

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).