Re: [PATCH] VIM: Automatically refresh folder screen

Subject: Re: [PATCH] VIM: Automatically refresh folder screen

Date: Tue, 16 Dec 2014 12:57:41 +0100

To: David Bremner


From: Franz Fellner

David Bremner wrote:
> Ian Main <> writes:
> > This patch makes the folder screen refresh each time you 'enter' it.
> > This way when you read a folder and mark items as read the changes are
> > reflected immediately when you return to the folder view.
> It seems to work, but it is pretty slow for large mailboxes. I have
> 270000 unread messages and there is a pause of about 1 second when
> returning to the "folder screen".  I'm not sure, maybe the vim interface
> is just overall not usable with such large search results?

I remember the times (not that far away) when paging through the result of a query
in the emacs interface resulted in a lock of several seconds after each <PGDOWN> or
<DOWN> keypress, even in medium sized queries of 1000 queries. This went away in the

I just found the issue that caused the lag in the vim interface:

Using query.count_messages instead of query.search_messages.count did the trick.

> _______________________________________________
> notmuch mailing list