unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] VIM: Automatically refresh folder screen
@ 2014-10-01 16:41 Ian Main
  2014-10-24  7:13 ` Ian Main
  2014-11-15  8:08 ` David Bremner
  0 siblings, 2 replies; 8+ messages in thread
From: Ian Main @ 2014-10-01 16:41 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] VIM: Automatically refresh folder screen
@ 2014-10-01 16:36 Ian Main
  2015-01-19 22:49 ` Bartosz Telenczuk
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Main @ 2014-10-01 16:36 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-02 23:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01 16:41 [PATCH] VIM: Automatically refresh folder screen Ian Main
2014-10-24  7:13 ` Ian Main
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

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).