unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Ian Main <imain@stemwinder.org>
To: notmuch@notmuchmail.org
Subject: RE: [PATCH] VIM: Automatically refresh folder screen
Date: Fri, 24 Oct 2014 00:13:58 -0700	[thread overview]
Message-ID: <5449fc36b67e0_2c4deefe94ce@ovo.mains.priv.notmuch> (raw)
In-Reply-To: <1412181686-11257-1-git-send-email-imain@stemwinder.org>

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
> 

  reply	other threads:[~2014-10-24  7:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 16:41 [PATCH] VIM: Automatically refresh folder screen Ian Main
2014-10-24  7:13 ` Ian Main [this message]
2014-11-15  8:08 ` David Bremner
2014-12-16 11:57   ` Franz Fellner
  -- strict thread matches above, loose matches on Subject: below --
2014-10-01 16:36 Ian Main
2015-01-19 22:49 ` Bartosz Telenczuk
2015-01-21 18:38   ` Franz Fellner
2015-02-02 23:52     ` Bartosz Telenczuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5449fc36b67e0_2c4deefe94ce@ovo.mains.priv.notmuch \
    --to=imain@stemwinder.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).