[PATCH] VIM: Automatically refresh folder screen

Subject: [PATCH] VIM: Automatically refresh folder screen

Date: Wed, 1 Oct 2014 09:36:07 -0700

To: notmuch@notmuchmail.org

Cc:

From: Ian Main


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.

    Ian
---
 vim/notmuch.vim | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 331e930..eb17d57 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -383,6 +383,9 @@ function! s:folders()
 	ruby folders_render()
 	call s:set_menu_buffer()
 	call s:set_map(g:notmuch_folders_maps)
+	autocmd BufEnter,WinEnter,BufWinEnter <buffer>
+		    \ call s:folders_refresh()
+	augroup END
 endfunction
 
 "" root
-- 
1.9.3


Thread: