From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4C2171F462 for ; Sat, 15 Jun 2019 20:23:42 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] support reversing search results Date: Sat, 15 Jun 2019 20:23:40 +0000 Message-Id: <20190615202342.7730-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Occasionally it might be useful to show the oldest messages matching a given search term (e.g. filename or an alternative to "git blame"). Allowing a negative offset to reverse results seems to work without increasing query parameter count (adding a new parameter would be cache-unfriendly due to even less consistent ordering). Reversing is now exposed at the bottom of the search results page; since the top of the page is too cluttered. Eric Wong (2): searchview: support negative offsets to reverse ordering searchview: add link at bottom to reverse results lib/PublicInbox/SearchView.pm | 59 +++++++++++++++++++++++++---------- t/psgi_v2.t | 2 +- 2 files changed, 44 insertions(+), 17 deletions(-) -- EW