[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Show timestamps but not SCHEDULED
From: |
Ken Mankoff |
Subject: |
Re: [O] Show timestamps but not SCHEDULED |
Date: |
Sun, 30 Aug 2015 11:34:51 -0400 |
Hi,
On 2015-08-30 at 08:26, Ken Mankoff <address@hidden> wrote:
> I'd like a custom agenda view that shows EVENTS based on their
> timestamp, but not the SCHEDULED or DEADLINE timestamps. Is this
> possible?
>
> Example item:
>
> * EVENT Foo
> SCHEDULED: <2015-09-03>
> <2015-09-04>
I think I've found three possible solutions to this, but none appear to work,
probably due to implementation issues.
1) =org-agenda-entry-text-exclude-regexps= should remove lines matching a
regex. I tried using it like this:
(setq org-agenda-custom-commands
'(
("e" "Event List"
(
(agenda "" (
(org-agenda-overriding-header "Events")
(org-agenda-show-all-dates t)
(org-agenda-ndays 30)
(org-agenda-skip-function '(org-agenda-skip-entry-if 'nottodo '("EVENT")
'done))
(org-agenda-entry-text-exclude-regexps '("Scheduled:"))
))))))
2) =org-agenda-entry-text-cleanup-hook= OR =org-agenda-text-cleanup-hook=. I've
tried using them like this:
(defun kdm/org-agenda-event-no-schedule ()
(delete-matching-lines "Scheduled:" (beginning-of-buffer) (end-of-buffer)))
(add-hook 'org-agenda-entry-text-cleanup-hook 'kdm/org-agenda-event-no-schedule)
(add-hook 'org-agenda-text-cleanup-hook 'kdm/org-agenda-event-no-schedule)
But again, I don't see any effects from this.
Can someone explain what I'm doing wrong with these three approaches, or if
there is some other way to filter lines or remove SCHEDULED items (but not
timestamped items) from an Agenda view?
Thanks,
-k.