From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Fri, 09 Nov 2007 21:20:33 +0000 Subject: [sup-talk] [PATCH] Natural language date searches In-Reply-To: <1194640984-sup-1658@tomsk> References: <1193436327-sup-5753@tomsk> <1193519205-sup-6445@tomsk> <1194633682-sup-962@south> <1194639409-sup-6180@tomsk> <1194640984-sup-1658@tomsk> Message-ID: <1194643094-sup-4630@tomsk> On 9.11.2007, Marcus Williams wrote: > Mmmm - in fact it might be that you want to use .begin when you are > searching "before", but .end when you are searching "after" > > That way searches like after:yesterday or after:(last monday) do what > you expect. Patch attached ... on a roll here :) ... which means you can also have some sugar for single date search allowing "on:monday" or "on:(11th november)" saving you typing "after:(10th november) before:(12th november)". "on" probably isnt the best choice of words (on:november?) - so I added the alias "in" that does the same thing so you can type in:november. Updated patch attached. Marcus -------------- next part -------------- A non-text attachment was scrubbed... Name: search-patch Type: application/octet-stream Size: 1480 bytes Desc: not available Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071109/075e087c/attachment.obj