diff options
author | Jani Nikula <jani@nikula.org> | 2011-11-15 22:08:49 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-11-15 19:17:24 -0400 |
commit | 796b629c3b821986c1f8d9a9e6f952a1df1034f0 (patch) | |
tree | 2c40b2acc409e2d0f895991711052ccb61d41a40 /notmuch.1 | |
parent | 00c60fbcb3b2b7c9f90c36e4dfb9393fdf678735 (diff) |
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>
Diffstat (limited to 'notmuch.1')
-rw-r--r-- | notmuch.1 | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -214,11 +214,26 @@ when sorting by .B newest\-first the threads will be sorted by the newest message in each thread. -.RE -.RS 4 By default, results will be displayed in reverse chronological order, (that is, the newest results will be displayed first). +.RE + +.RS 4 +.TP 4 +.BR \-\-offset=[\-]N + +Skip displaying the first N results. With the leading '\-', start at the Nth +result from the end. +.RE + +.RS 4 +.TP 4 +.BR \-\-limit=N +Limit the number of displayed results to N. +.RE + +.RS 4 See the .B "SEARCH SYNTAX" section below for details of the supported syntax for <search-terms>. |