From: Ian Main Date: Wed, 1 Oct 2014 16:41:26 +0000 (+1700) Subject: [PATCH] VIM: Automatically refresh folder screen X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=18cff9f7b99aeaf3e4e51b25da320cc486662827;p=notmuch-archives.git [PATCH] VIM: Automatically refresh folder screen --- diff --git a/11/fe4c82431ea349016533414d263c22644a27c5 b/11/fe4c82431ea349016533414d263c22644a27c5 new file mode 100644 index 000000000..ea5d13413 --- /dev/null +++ b/11/fe4c82431ea349016533414d263c22644a27c5 @@ -0,0 +1,71 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 51B04431FBC + for ; Wed, 1 Oct 2014 09:41:42 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=unavailable +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id ZIMDQnHc-Pny for ; + Wed, 1 Oct 2014 09:41:42 -0700 (PDT) +Received: from cmta16.telus.net (cmta16.telus.net [209.171.16.89]) + by olra.theworths.org (Postfix) with ESMTP id 80517431FC2 + for ; Wed, 1 Oct 2014 09:41:32 -0700 (PDT) +Received: from ovo.mains.priv ([207.102.88.62]) by cmta16.telus.net with TELUS + id xshX1o00d1LiWEf01shXV9; Wed, 01 Oct 2014 10:41:32 -0600 +X-Authority-Analysis: v=2.0 cv=O7/nSmBW c=1 sm=2 + a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=tsa3CZZnAAAA:8 + a=hR_Pik59WMxAzTeQCJsA:9 a=EcQDfIwDZEqJA1f7rVUV8Q==:117 +X-Telus-Outbound-IP: 207.102.88.62 +From: Ian Main +To: notmuch@notmuchmail.org +Subject: [PATCH] VIM: Automatically refresh folder screen +Date: Wed, 1 Oct 2014 09:41:26 -0700 +Message-Id: <1412181686-11257-1-git-send-email-imain@stemwinder.org> +X-Mailer: git-send-email 1.9.3 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 01 Oct 2014 16:41:42 -0000 + +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 ++ \ call s:folders_refresh() ++ augroup END + endfunction + + "" root +-- +1.9.3 +