[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 60 / 6f73af95c376530ab7fdca3ce5162213e5feb7
1 Return-Path: <imain@stemwinder.org>\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 C0BAC431FBC\r
6         for <notmuch@notmuchmail.org>; Wed,  1 Oct 2014 17:02:52 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \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 mGzCENFOL+Ck for <notmuch@notmuchmail.org>;\r
16         Wed,  1 Oct 2014 17:02:47 -0700 (PDT)\r
17 Received: from cmta19.telus.net (cmta19.telus.net [209.171.16.92])\r
18         by olra.theworths.org (Postfix) with ESMTP id 3214F431FB6\r
19         for <notmuch@notmuchmail.org>; Wed,  1 Oct 2014 17:02:47 -0700 (PDT)\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta19.telus.net with TELUS\r
21         id y02l1o0041LiWEf0102ljv; Wed, 01 Oct 2014 18:02:46 -0600\r
22 X-Authority-Analysis: v=2.0 cv=fJznK+me c=1 sm=2\r
23         a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=tsa3CZZnAAAA:8\r
24         a=z78UvuW0U1fkTmuEF7cA:9 a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
25 X-Telus-Outbound-IP: 207.102.88.62\r
26 From: Ian Main <imain@stemwinder.org>\r
27 To: notmuch@notmuchmail.org\r
28 Subject: [PATCH] VIM v2: Add a 'tag all' folder option.\r
29 Date: Wed,  1 Oct 2014 17:02:42 -0700\r
30 Message-Id: <1412208162-30436-1-git-send-email-imain@stemwinder.org>\r
31 X-Mailer: git-send-email 1.9.3\r
32 X-BeenThere: notmuch@notmuchmail.org\r
33 X-Mailman-Version: 2.1.13\r
34 Precedence: list\r
35 List-Id: "Use and development of the notmuch mail system."\r
36         <notmuch.notmuchmail.org>\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
40 List-Post: <mailto:notmuch@notmuchmail.org>\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
44 X-List-Received-Date: Thu, 02 Oct 2014 00:02:52 -0000\r
45 \r
46 This adds the ability to mark an entire folder as read (or any other\r
47 tags you like once you map it).\r
48 \r
49 This update adds documentation for the command.\r
50 \r
51     Ian\r
52 ---\r
53  vim/notmuch.txt |  1 +\r
54  vim/notmuch.vim | 11 +++++++++++\r
55  2 files changed, 12 insertions(+)\r
56 \r
57 diff --git a/vim/notmuch.txt b/vim/notmuch.txt\r
58 index 4374102..33cbe6e 100644\r
59 --- a/vim/notmuch.txt\r
60 +++ b/vim/notmuch.txt\r
61 @@ -47,6 +47,7 @@ MAPPINGS                                      *notmuch-mappings*\r
62  Folder view~\r
63  \r
64  <enter>        Show selected search\r
65 +A      Archive (-inbox -unread) an entire folder\r
66  s      Enter a new search\r
67  =      Refresh\r
68  c      Compose a new mail\r
69 diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
70 index 331e930..3f2444b 100644\r
71 --- a/vim/notmuch.vim\r
72 +++ b/vim/notmuch.vim\r
73 @@ -11,6 +11,7 @@ let g:loaded_notmuch = "yep"\r
74  let g:notmuch_folders_maps = {\r
75         \ '<Enter>':    'folders_show_search()',\r
76         \ 's':          'folders_search_prompt()',\r
77 +       \ 'A':          'folders_tag_all("-inbox -unread")',\r
78         \ '=':          'folders_refresh()',\r
79         \ 'c':          'compose()',\r
80         \ }\r
81 @@ -378,6 +379,16 @@ ruby << EOF\r
82  EOF\r
83  endfunction\r
84  \r
85 +function! s:folders_tag_all(tags)\r
86 +ruby << EOF\r
87 +       n = $curbuf.line_number\r
88 +       s = $searches[n - 1]\r
89 +       t = VIM::evaluate('a:tags')\r
90 +       do_tag(s, t)\r
91 +EOF\r
92 +       call s:folders_refresh()\r
93 +endfunction\r
94 +\r
95  function! s:folders()\r
96         call s:new_buffer('folders')\r
97         ruby folders_render()\r
98 -- \r
99 1.9.3\r
100 \r