RE: [PATCH] VIM: Automatically refresh folder screen

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

Date: Fri, 24 Oct 2014 00:13:58 -0700

To: notmuch@notmuchmail.org

Cc:

From: Ian Main


Can I get someone to test this one?  It's pretty simple and useful.

    Ian

Ian Main wrote:
> 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: