From 793cbf80495b8230e0b4de6ac609e2ca88b7dd4b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 23 Nov 2009 16:58:35 +0100 Subject: Add rudimentary date-based search. The rudimentary aspect here is that the date ranges are specified with UNIX timestamp values (number of seconds since 1970-01-01 UTC). One thing that can help here is using the date program to determins timestamps, such as: $(date +%s -d 2009-10-01)..$(date +%s) Long-term, we'll probably need to do our own query parsing to be able to support directly-specified dates and also relative expressions like "since:'2 months ago'". --- TODO | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 7c984c2..65d6c75 100644 --- a/TODO +++ b/TODO @@ -4,11 +4,9 @@ Fix the things that are causing the most pain to new users 2. Allow an easy way to get tags from directory names (if the user has them) -3. Allow an easy way to remove excess tags, (date-based search) +3. Make emacs fast for big search results (see "lazy searching" below) -4. Make emacs fast for big search results (see "lazy searching" below) - -5. Fix Xapian defect #250 so tagging is fast. +4. Fix Xapian defect #250 so tagging is fast. Emacs interface (notmuch.el) ---------------------------- @@ -112,6 +110,15 @@ indexing. notmuch library --------------- +Provide a sane syntax for date ranges. First, we don't want to require +both endpoints to be specified. For example it would be nice to be +able to say things like "since:2009-01-1" or "until:2009-01-1" and +have the other enpoint be implicit. Second we'de like to support +relative specifications of time such as "since:'2 months ago'". To do +any of this we're probably going to need to break down an write our +own parser for the query string rather than using Xapian's QueryParser +class. + Add support for files that are moved or deleted (which obviously need to be handled differently). -- cgit v1.2.3