unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
	Michael J Gruber <michaeljgruber+grubix+git@gmail.com>,
	David Bremner <david@tethera.net>
Cc: notmuch@notmuchmail.org
Subject: Re: Meaning of offset in notmuch search --output=files --offset=
Date: Mon, 27 May 2024 19:50:36 +0300	[thread overview]
Message-ID: <87a5kbi4gz.fsf@iki.fi> (raw)
In-Reply-To: <875xuzs8w2.fsf@fifthhorseman.net>


[-- Attachment #1.1: Type: text/plain, Size: 1228 bytes --]

* 2024-05-27 09:05:01-0400, Daniel Kahn Gillmor wrote:

> I don't see much difference between any of these versions,

Then it needs more work still. We want to make it clear for everybody,
don't we? Let's go back to my original confusion. Currently it reads:

    --offset=[-]N
            Skip displaying the first N results. With the leading '-',
            start at the Nth result from the end.

What "results"? The search match or the output? Two interpretations:

 1. "Notmuch search" results an internal message list. "--offset=N" will
    skip N messages in the internal message list and then starts
    printing the rest of the messages in the "--output" format. [This is
    what Notmuch really does.]

 2. "Notmuch search" results an internal message list and it starts
    printing them in "--output" format. It will use "--offset=N" to skip
    N output items, regardless of what they are: summary, threads,
    messages, files, tags. [This is the wrong interpretation.]

So, how do we improve the notmuch-search manual so that everybody
understands "--offset=N" correctly?

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2024-05-27 16:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-20 18:24 Meaning of offset in notmuch search --output=files --offset= Teemu Likonen
2024-05-25  7:07 ` Teemu Likonen
2024-05-25 10:05   ` David Bremner
2024-05-25 11:20     ` Michael J Gruber
2024-05-26  7:57       ` Teemu Likonen
2024-05-27 13:05         ` Daniel Kahn Gillmor
2024-05-27 16:50           ` Teemu Likonen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5kbi4gz.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=david@tethera.net \
    --cc=dkg@fifthhorseman.net \
    --cc=michaeljgruber+grubix+git@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).