]> git.cworth.org Git - notmuch/commit - completion/zsh/_notmuch
cli: add options --offset and --limit to notmuch show
authorRobin Jarry <robin@jarry.cc>
Tue, 18 Oct 2022 19:41:58 +0000 (21:41 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 5 Nov 2022 17:18:15 +0000 (13:18 -0400)
commit793f2980910f612fa33806ef71fa7ee35d093657
tree693d82c511730bbf407cce43491242590f2456ba
parentb6565c1c54e35563843e7ddece601680170bb84a
cli: add options --offset and --limit to notmuch show

notmuch search does not output header values. However, when browsing
through a large email corpus, it can be time saving to be able to
paginate without running notmuch show for each message/thread.

Add --offset and --limit options to notmuch show. This is inspired from
commit 796b629c3b82 ("cli: add options --offset and --limit to notmuch
search").

Update man page, shell completion and add a test case to ensure it works
as expected.

Cc: Tim Culverhouse <tim@timculverhouse.com>
Cc: Tomi Ollila <tomi.ollila@iki.fi>
Signed-off-by: Robin Jarry <robin@jarry.cc>
completion/notmuch-completion.bash
completion/zsh/_notmuch
doc/man1/notmuch-show.rst
notmuch-client.h
notmuch-show.c
test/T131-show-limiting.sh [new file with mode: 0755]