From: Ian Main Date: Wed, 1 Oct 2014 16:36:07 +0000 (+1700) Subject: [PATCH] VIM: Automatically refresh folder screen X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5321ac429b5a90fc14f5248ed485c84bd49a5b6c;p=notmuch-archives.git [PATCH] VIM: Automatically refresh folder screen --- diff --git a/bf/284d316bd14451ce0dab4f563810ae92b44a28 b/bf/284d316bd14451ce0dab4f563810ae92b44a28 new file mode 100644 index 000000000..54acd20de --- /dev/null +++ b/bf/284d316bd14451ce0dab4f563810ae92b44a28 @@ -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 CF978431FBC + for ; Wed, 1 Oct 2014 09:36:19 -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=disabled +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 caQ9TK-PYMYQ for ; + Wed, 1 Oct 2014 09:36:14 -0700 (PDT) +Received: from cmta18.telus.net (cmta18.telus.net [209.171.16.91]) + by olra.theworths.org (Postfix) with ESMTP id 423F4431FB6 + for ; Wed, 1 Oct 2014 09:36:14 -0700 (PDT) +Received: from ovo.mains.priv ([207.102.88.62]) by cmta18.telus.net with TELUS + id xscC1o0051LiWEf01scCxA; Wed, 01 Oct 2014 10:36:12 -0600 +X-Authority-Analysis: v=2.0 cv=cbEMWA/M 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:36:07 -0700 +Message-Id: <1412181367-10906-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:36:20 -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 +