[PATCH 2/4] vim: add support to mark as read in search view
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 4 May 2011 20:13:14 +0000 (23:13 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:08 +0000 (09:38 -0800)
4e/b509668ad13964d6274e5b3a4beab63d0fd7cf [new file with mode: 0644]

diff --git a/4e/b509668ad13964d6274e5b3a4beab63d0fd7cf b/4e/b509668ad13964d6274e5b3a4beab63d0fd7cf
new file mode 100644 (file)
index 0000000..6dff755
--- /dev/null
@@ -0,0 +1,97 @@
+Return-Path: <felipe.contreras@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1D07F429E25\r
+       for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:13:29 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 2wIboHuoVHeH for <notmuch@notmuchmail.org>;\r
+       Wed,  4 May 2011 13:13:28 -0700 (PDT)\r
+Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
+       [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E7E2B429E2A\r
+       for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:13:26 -0700 (PDT)\r
+Received: by mail-ey0-f181.google.com with SMTP id 5so465261eyh.26\r
+       for <notmuch@notmuchmail.org>; Wed, 04 May 2011 13:13:26 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
+       :in-reply-to:references;\r
+       bh=VU1bQurqXDMxIH2v2tyJdqqie550/5fsqSVOgmqadFo=;\r
+       b=Ty/HVuiNN7I2A209zBemd6Aws2zrDOjqGob7fdFKQVZGYgVu9dKEVXYTfI0x30Hfzz\r
+       uy/hFmXm+l7sTeWZlzn9uf6eo8kvmmIggKphpJlInqp1WBtt1px/AgWGTAkxZMj8fC9s\r
+       BP9zktdn3vGmFF3V8qfesuO/ifUhqVily2EmY=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       b=JsEeFaZ7FfX2aTHqDKeEu7sFE6rXRmJkvTiPu7UTQL9lgBpinKl+tdAATRak5qIL7F\r
+       eANTWY3tZ8YAD0lyQHwOg7sBO8ENd/A2T9Zx8BQTDLpFpox8FlBYNJbrQhlcADE+/Ru8\r
+       94H2U3K4Q/22HHbMvbhldikrC9xuP4tXpVhTw=\r
+Received: by 10.213.32.147 with SMTP id c19mr2206007ebd.29.1304540006362;\r
+       Wed, 04 May 2011 13:13:26 -0700 (PDT)\r
+Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])\r
+       by mx.google.com with ESMTPS id\r
+       c14sm1092956eeb.18.2011.05.04.13.13.25\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 04 May 2011 13:13:25 -0700 (PDT)\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/4] vim: add support to mark as read in search view\r
+Date: Wed,  4 May 2011 23:13:14 +0300\r
+Message-Id: <1304539996-6686-3-git-send-email-felipe.contreras@gmail.com>\r
+X-Mailer: git-send-email 1.7.5\r
+In-Reply-To: <1304539996-6686-1-git-send-email-felipe.contreras@gmail.com>\r
+References: <1304539996-6686-1-git-send-email-felipe.contreras@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 04 May 2011 20:13:29 -0000\r
+\r
+Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
+---\r
+ vim/plugin/notmuch.vim |    6 ++++++\r
+ 1 files changed, 6 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
+index 05e4552..6f9ff18 100644\r
+--- a/vim/plugin/notmuch.vim\r
++++ b/vim/plugin/notmuch.vim\r
+@@ -118,6 +118,7 @@ let g:notmuch_search_maps = {\r
+         \ '<Space>':    ':call <SID>NM_search_show_thread(0)<CR>',\r
+         \ '<Enter>':    ':call <SID>NM_search_show_thread(1)<CR>',\r
+         \ '<C-]>':      ':call <SID>NM_search_expand(''<cword>'')<CR>',\r
++        \ 'I':          ':call <SID>NM_search_mark_read_thread()<CR>',\r
+         \ 'a':          ':call <SID>NM_search_archive_thread()<CR>',\r
+         \ 'A':          ':call <SID>NM_search_mark_read_then_archive_thread()<CR>',\r
+         \ 'f':          ':call <SID>NM_search_filter()<CR>',\r
+@@ -308,6 +309,11 @@ function! s:NM_search_edit()\r
+         endif\r
+ endfunction\r
\r
++function! s:NM_search_mark_read_thread()\r
++        call <SID>NM_tag([], ['-unread'])\r
++        norm j\r
++endfunction\r
++\r
+ function! s:NM_search_archive_thread()\r
+         call <SID>NM_tag([], ['-inbox'])\r
+         norm j\r
+-- \r
+1.7.5\r
+\r