From b503d87a23c90fc0f705a79bce34944e7e20b28b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 10 Feb 2021 18:57:58 -0100 Subject: search: use git approxidate in WWW and "lei q --stdin" This greatly improves the usability of d:, dt:, and rt: search prefixes for users already familiar git's "approxidate" feature. That is, users familiar with the --(since|after|until|before)= options in git-log(1) and similar commands will be able to use those dates in the WWW UI. --- lib/PublicInbox/Isearch.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/Isearch.pm') diff --git a/lib/PublicInbox/Isearch.pm b/lib/PublicInbox/Isearch.pm index 342d7913..9ed2d9e5 100644 --- a/lib/PublicInbox/Isearch.pm +++ b/lib/PublicInbox/Isearch.pm @@ -25,6 +25,7 @@ SELECT ibx_id FROM inboxes WHERE eidx_key = ? LIMIT 1 die "E: `$self->{eidx_key}' not in $self->{es}->{topdir}\n"; } +sub query_approxidate { $_[0]->{es}->query_approxidate($_[1], $_[2]) } sub mset { my ($self, $str, $opt) = @_; -- cgit v1.2.3-24-ge0c7