Re: [PATCH] Implement a simple read-eval-print loop.

Subject: Re: [PATCH] Implement a simple read-eval-print loop.

Date: Sat, 20 Nov 2010 22:15:42 +0100

To: servilio, notmuch

Cc:

From: Michal Sojka


On Sat, 20 Nov 2010, servilio wrote:
> This implementation uses GNU readline for the prompt and command
> history, with the default file completion enabled. GLib is used to
> split the read line into an arguments list.

Hi,

I haven't tested it yet, but it seems to be exactly the piece of code I
wanted to have to speed up notmuch-hello when notmuch is used remotely
over ssh. Spawning new ssh for every saved search to get the count of
matched messages has a way too big overhead. Is this the use case you
had in mind when implementing this?

Currently, I have only one comment to the patch. For me, "repl" is a bit
unintuitive. I was thinking about "shell" as the name of subcommand for
this.

-Michal

Thread: