From ea9fdf539d8a574e6bd82d665ae2e3587145b214 Mon Sep 17 00:00:00 2001 From: Ian Main Date: Sat, 25 Oct 2014 00:13:58 +1700 Subject: [PATCH] RE: [PATCH] VIM: Automatically refresh folder screen --- eb/30ef4b51a62ea1388ed5a996c339e9de54fd60 | 92 +++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 eb/30ef4b51a62ea1388ed5a996c339e9de54fd60 diff --git a/eb/30ef4b51a62ea1388ed5a996c339e9de54fd60 b/eb/30ef4b51a62ea1388ed5a996c339e9de54fd60 new file mode 100644 index 000000000..9ad5909e0 --- /dev/null +++ b/eb/30ef4b51a62ea1388ed5a996c339e9de54fd60 @@ -0,0 +1,92 @@ +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 7940B431E82 + for ; Fri, 24 Oct 2014 00:14:10 -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 ISVuEzPC5h9z for ; + Fri, 24 Oct 2014 00:14:04 -0700 (PDT) +Received: from cmta16.telus.net (cmta16.telus.net [209.171.16.89]) + by olra.theworths.org (Postfix) with ESMTP id C6475431FBD + for ; Fri, 24 Oct 2014 00:14:04 -0700 (PDT) +Received: from ovo.mains.priv ([207.102.88.62]) by cmta16.telus.net with TELUS + id 6vE21p00T1LiWEf01vE2Xe; Fri, 24 Oct 2014 01:14:03 -0600 +X-Authority-Analysis: v=2.0 cv=J6F0GnbS c=1 sm=2 + a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=IkcTkHD0fZMA:10 a=tsa3CZZnAAAA:8 + a=HCQP0U5QNv-Q_oYOdbgA:9 a=QEXdDO2ut3YA:10 + a=EcQDfIwDZEqJA1f7rVUV8Q==:117 +X-Telus-Outbound-IP: 207.102.88.62 +Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1]) + by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9O7E0PB011367 + for ; Fri, 24 Oct 2014 00:14:01 -0700 +Received: (from imain@localhost) + by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9O7Dw2Z011366; + Fri, 24 Oct 2014 00:13:58 -0700 +X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com + using -f +Date: Fri, 24 Oct 2014 00:13:58 -0700 +From: Ian Main +To: notmuch@notmuchmail.org +Message-ID: <5449fc36b67e0_2c4deefe94ce@ovo.mains.priv.notmuch> +In-Reply-To: <1412181686-11257-1-git-send-email-imain@stemwinder.org> +References: <1412181686-11257-1-git-send-email-imain@stemwinder.org> +Subject: RE: [PATCH] VIM: Automatically refresh folder screen +Mime-Version: 1.0 +Content-Type: text/plain; + charset=utf-8 +Content-Transfer-Encoding: 7bit +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: Fri, 24 Oct 2014 07:14:10 -0000 + +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 +> + \ call s:folders_refresh() +> + augroup END +> endfunction +> +> "" root +> -- +> 1.9.3 +> + + -- 2.26.2