emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: "tan.k.h@juno.com" <tan.k.h@juno.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Q: How to search dates within current week
Date: Wed, 14 Oct 2009 07:33:28 -0400	[thread overview]
Message-ID: <877huy1a7r.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <87bpka1akg.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Wed\, 14 Oct 2009 07\:25\:51 -0400")

Bernt Hansen <bernt@norang.ca> writes:

> "tan.k.h@juno.com" <tan.k.h@juno.com> writes:
>> Q: How to search dates within current week
>> [ I am posting this according to //gmane.org/post.php instructions.
>> I hope this works. ]
>> I am a beginner in using Orgmode. 
>> I would like to search for CLOSED items within the current week.
>> The closest posting was in 2007 entitled "search for dates as tag or property"
>>    http://article.gmane.org/gmane.emacs.orgmode/4506/match=date+search
>> I tried 2 approaches but have some problems.
>> 1) Keywords - today, tomorrow, yesterday
>>    Is there a keyword for "thisweek"? in the vein of "today", "tomorrow".
>>    where "thisweek" means the current Mon-Sun window.
>> 2) Match string : +CLOSED>="<-1w>"+CLOSED<="<0w>"
>>    Currently -1w is a moving window of the last 7 days, so the
>>    search result will change every day.
>> It is also possible there are simpler solutions I have not thought of.
>> For example, the Timeline would serve my purpose except that currently,
>> it only shows scheduled items, not closed items.
> The timeline might work - you can display closed and other timestamps in
> the log with C-u l or configure what is displayed by default with l
> using org-agenda-log-mode-items.

(and following up on my own post...)

What I would probably do if this is something you need often is make a
custom agenda view which sets org-agenda-log-mode-items to closed, and
then view the agenda for a week starting from some specific date with
the log items on.  This should be much faster than the timeline view (L)
since it limits the date range you are looking at.


  reply	other threads:[~2009-10-14 11:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13 16:04 Q: How to search dates within current week tan.k.h
2009-10-14 11:25 ` Bernt Hansen
2009-10-14 11:33   ` Bernt Hansen [this message]
2009-11-26 20:26     ` Kwee Heong TAn
2009-10-13 22:46 tan.k.h
2009-10-18  4:37 tan.k.h

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877huy1a7r.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=tan.k.h@juno.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).