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

Michal Sojka sojkam1 at fel.cvut.cz
Sat Nov 20 13:15:42 PST 2010


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


More information about the notmuch mailing list