[PATCH] VIM: Automatically refresh folder screen
Ian Main
imain at stemwinder.org
Wed Oct 1 09:41:26 PDT 2014
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
More information about the notmuch
mailing list