1 Return-Path: <imain@redhat.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 5565D429E25
\r
6 for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 00:14:59 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id TKUe92J9tYgD for <notmuch@notmuchmail.org>;
\r
16 Fri, 24 Oct 2014 00:14:53 -0700 (PDT)
\r
17 Received: from cmta13.telus.net (cmta13.telus.net [209.171.16.86])
\r
18 by olra.theworths.org (Postfix) with ESMTP id AFFC5431FBD
\r
19 for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 00:14:53 -0700 (PDT)
\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta13.telus.net with TELUS
\r
21 id 6vEr1p00D1LiWEf01vErt2; Fri, 24 Oct 2014 01:14:52 -0600
\r
22 X-Authority-Analysis: v=2.0 cv=OrmRPVDt c=1 sm=2
\r
23 a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=IkcTkHD0fZMA:10 a=tsa3CZZnAAAA:8
\r
24 a=3PvxmG4qxLAccYsB3QYA:9 a=QEXdDO2ut3YA:10
\r
25 a=EcQDfIwDZEqJA1f7rVUV8Q==:117
\r
26 X-Telus-Outbound-IP: 207.102.88.62
\r
27 Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])
\r
28 by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9O7Enk5011377
\r
29 for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 00:14:50 -0700
\r
30 Received: (from imain@localhost)
\r
31 by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9O7Em0j011376;
\r
32 Fri, 24 Oct 2014 00:14:48 -0700
\r
33 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com
\r
35 Date: Fri, 24 Oct 2014 00:14:48 -0700
\r
36 From: Ian Main <imain@stemwinder.org>
\r
37 To: notmuch@notmuchmail.org
\r
38 Message-ID: <5449fc68cbccc_2c4deefe94d@ovo.mains.priv.notmuch>
\r
39 In-Reply-To: <1412208162-30436-1-git-send-email-imain@stemwinder.org>
\r
40 References: <1412208162-30436-1-git-send-email-imain@stemwinder.org>
\r
41 Subject: RE: [PATCH] VIM v2: Add a 'tag all' folder option.
\r
43 Content-Type: text/plain;
\r
45 Content-Transfer-Encoding: 7bit
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Fri, 24 Oct 2014 07:14:59 -0000
\r
60 This one is pretty straightforward and useful too.
\r
65 > This adds the ability to mark an entire folder as read (or any other
\r
66 > tags you like once you map it).
\r
68 > This update adds documentation for the command.
\r
72 > vim/notmuch.txt | 1 +
\r
73 > vim/notmuch.vim | 11 +++++++++++
\r
74 > 2 files changed, 12 insertions(+)
\r
76 > diff --git a/vim/notmuch.txt b/vim/notmuch.txt
\r
77 > index 4374102..33cbe6e 100644
\r
78 > --- a/vim/notmuch.txt
\r
79 > +++ b/vim/notmuch.txt
\r
80 > @@ -47,6 +47,7 @@ MAPPINGS *notmuch-mappings*
\r
83 > <enter> Show selected search
\r
84 > +A Archive (-inbox -unread) an entire folder
\r
85 > s Enter a new search
\r
87 > c Compose a new mail
\r
88 > diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
89 > index 331e930..3f2444b 100644
\r
90 > --- a/vim/notmuch.vim
\r
91 > +++ b/vim/notmuch.vim
\r
92 > @@ -11,6 +11,7 @@ let g:loaded_notmuch = "yep"
\r
93 > let g:notmuch_folders_maps = {
\r
94 > \ '<Enter>': 'folders_show_search()',
\r
95 > \ 's': 'folders_search_prompt()',
\r
96 > + \ 'A': 'folders_tag_all("-inbox -unread")',
\r
97 > \ '=': 'folders_refresh()',
\r
98 > \ 'c': 'compose()',
\r
100 > @@ -378,6 +379,16 @@ ruby << EOF
\r
104 > +function! s:folders_tag_all(tags)
\r
106 > + n = $curbuf.line_number
\r
107 > + s = $searches[n - 1]
\r
108 > + t = VIM::evaluate('a:tags')
\r
111 > + call s:folders_refresh()
\r
114 > function! s:folders()
\r
115 > call s:new_buffer('folders')
\r
116 > ruby folders_render()
\r