]> git.notmuchmail.org Git - notmuch/commit
cli: add options --offset and --limit to notmuch search
authorJani Nikula <jani@nikula.org>
Tue, 15 Nov 2011 20:08:49 +0000 (22:08 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 15 Nov 2011 23:17:24 +0000 (19:17 -0400)
commit796b629c3b821986c1f8d9a9e6f952a1df1034f0
tree2c40b2acc409e2d0f895991711052ccb61d41a40
parent00c60fbcb3b2b7c9f90c36e4dfb9393fdf678735
cli: add options --offset and --limit to notmuch search

Add options --offset=[-]N and --limit=M to notmuch search to determine the
first result and maximum number of results to display.

Option --limit=M limits the maximum number of results to display to M.

Option --offset=[-]N skips the first N results; with the leading '-' skip
until the Nth result from the end.

Note that --offset with a negative N for thread or summary output requires
counting the number of matching threads in advance.

Signed-off-by: Jani Nikula <jani@nikula.org>
NEWS
notmuch-search.c
notmuch.1
notmuch.c