From: Edgar Hipp <contact@javascript-ninja.fr>
To: David Edmondson <dme@dme.org>
Cc: notmuch@notmuchmail.org
Subject: Re: Show email adress in output of `notmuch search --format json`
Date: Fri, 2 Jun 2017 11:30:35 +0200 [thread overview]
Message-ID: <20170602093035.eadumb3nakttw2tx@fr-fadpc15.europe.altair.com> (raw)
In-Reply-To: <20170602092806.iv6n76nmkg4z33nc@fr-fadpc15.europe.altair.com>
On Fri, Jun 02, 2017 at 11:28:06AM +0200, Edgar Hipp wrote:
> On Fri, Jun 02, 2017 at 10:08:30AM +0100, David Edmondson wrote:
> > On Friday, 2017-06-02 at 10:35:03 +0200, Edgar Hipp wrote:
> >
> > > What I'm doing is basically
> > >
> > > notmuch search --format=json '*' | processing_program | fzf
> > >
> > > Which makes it possible to search trough messages interactively : fzf is
> > > a fuzzy finder(see the gif on the page https://github.com/junegunn/fzf)
> > >
> > > What I would expect is to have the same format as show but for multiple
> > > messages, (in my case for search).
> > >
> > > That's why I would find it interesting to be able to customize the
> > > fields shown in search.
> >
> > Understood. There is no general ability to customise the fields today.
> >
> > Would:
> >
> > notmuch show --body=false --format=json "*" | other_processing | fzf
> >
> > let you achieve your goal? (The processing would have to change, of
> > course.)
> >
> > In general, I wonder whether “search” or “show” for “*” will give you
> > the performance you want if fzf waits for all of the input before
> > allowing the user to start matching.
> >
> > For example, with 0.5 million messages in a database:
> >
> > % time notmuch search --format=json "*" > /dev/null
> > notmuch search --format=json "*" > /dev/null 108.14s user 35.55s system 75% cpu 3:10.18 total
> > %
> >
> > (Not a particularly fast machine, but all of the relevant stuff is on
> > SSD.)
> >
> > If I had to wait 108 seconds to start matching it would be
> > unusable. “show” will probably be slower.
> >
> > dme.
> > --
> > You know your green from your red.
>
> It seems that my notmuch show does'nt show multiple outputs :
>
> $ notmuch --version
> notmuch 0.24.1
>
> $ notmuch show --body=false --format=json "*" | wc -l
> 1
>
> $ notmuch search --format=json "*" | wc -l
> 3481
>
> Thanks in advance,
>
> Edgar
fzf starts as soon as one line is in stdin.
I use it a lot for log searching , and also in real time.
When I use my search command, I will probably first filter the results
very grossly (to have less than 1000 mails to fuzzy find).
next prev parent reply other threads:[~2017-06-02 11:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 6:59 Show email adress in output of `notmuch search --format json` Edgar Hipp
2017-06-01 9:41 ` David Edmondson
2017-06-02 8:35 ` Edgar Hipp
2017-06-02 9:08 ` David Edmondson
2017-06-02 9:28 ` Edgar Hipp
2017-06-02 9:30 ` Edgar Hipp [this message]
2017-06-02 10:11 ` David Edmondson
-- strict thread matches above, loose matches on Subject: below --
2017-06-02 10:40 Edgar Hipp
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=20170602093035.eadumb3nakttw2tx@fr-fadpc15.europe.altair.com \
--to=contact@javascript-ninja.fr \
--cc=dme@dme.org \
--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).