From: marcus-sup@quintic.co.uk (Marcus Williams)
Subject: [sup-talk] [PATCH] Natural language date searches
Date: Sat, 27 Oct 2007 22:10:35 +0100 [thread overview]
Message-ID: <1193519205-sup-6445@tomsk> (raw)
In-Reply-To: <1193436327-sup-5753@tomsk>
On 26/10/2007, Marcus Williams wrote:
> With the help of the fantastic Chronic gem, this patch adds date based
> searches to sup with natural language. So you can do
>
> after:(1 week ago)
> after:(yesterday at 22:00)
>
> and
>
> before:(today at 5:00)
Attached is a tweaked patch so that you dont get an error if you pass
a query string that Chronic cant parse. Currently it removes the query
from the query string if it cant parse it and warns the user.
It probably needs a change to bin/sup to ignore the query if
parse_user_query_string returns an empty query, but this patch doesnt
include that.
Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: date-search-diff
Type: application/octet-stream
Size: 1085 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071027/61248a8e/attachment.obj
next prev parent reply other threads:[~2007-10-27 21:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 22:10 Marcus Williams
2007-10-27 21:10 ` Marcus Williams [this message]
2007-11-09 18:46 ` William Morgan
2007-11-09 20:29 ` Marcus Williams
2007-11-09 20:44 ` Marcus Williams
2007-11-09 21:20 ` Marcus Williams
2007-11-12 18:01 ` William Morgan
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1193519205-sup-6445@tomsk \
--to=marcus-sup@quintic.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox