[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Hiding
From: |
Neilen Marais |
Subject: |
Re: [O] Hiding |
Date: |
Thu, 10 Nov 2011 16:00:14 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi Carsten,
Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>
>
> Hi Neilen,
>
> this was a pretty good attempt for someone who says he is new to org!
Why thanks :)
Been a while since I've been able to play with my Org, but thanks for the info.
> Scheduling normally has the purpose to make an item show up in your daily
> agenda on a specified date. But you can use is also to hide items scheduled
> in the future from the task list. Here is how:
>
> Another, more compact possibility that is also more easily extended to your
> longer list of tasks in my-org-context-tags-alist is:
>
> (setq org-agenda-custom-commands
> '(
> ("c" "Context Next Tasks"
> tags-todo "SCHEDULED=\"\"|SCHEDULED<=\"<today>\"/NEXT"
> ((org-agenda-sorting-strategy '(tag-up))
> (org-agenda-overriding-header "Context Next Tasks")
> ))))
> Let me know if I need to further explain why these works - but I
> guess you can figure it out?
Finding http://orgmode.org/manual/Matching-tags-and-properties.html helped. I
ended up with
(setq org-agenda-custom-commands
'(
("c" "Context Next Tasks"
tags-todo (concat
"SCHEDULED=\"\"+{"
(mapconcat 'car my-org-context-tag-alist "\\|")
"}|SCHEDULED<=\"<today>\"+{"
(mapconcat 'car my-org-context-tag-alist "\\|")
"}/NEXT")
((org-agenda-sorting-strategy '(tag-up))
(org-agenda-overriding-header "Context Next Tasks")
))
))
which seems a little clunky, but works :) BTW, why does one need to escape the
pipe (|) character for regexes? Caused me a bit if head scratching till I looked
carefully at you example.
Thanks
Neilen
> Cheers
>
> - Carsten
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] Hiding,
Neilen Marais <=