[PATCH] VIM: Automatically refresh folder screen

Franz Fellner alpine.art.de at gmail.com
Tue Dec 16 03:57:41 PST 2014


David Bremner wrote:
> Ian Main <imain at stemwinder.org> 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
meantime.

I just found the issue that caused the lag in the vim interface:
https://github.com/imain/notmuch-vim/commit/649c18122befbabb52082b7d7f77abf863efc62b

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

> 
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch




More information about the notmuch mailing list