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

diff --git a/2f/33bb6c30c4cb7740ae1039e4f5736df0ed09ae b/2f/33bb6c30c4cb7740ae1039e4f5736df0ed09ae
new file mode 100644 (file)
index 0000000..c496346
--- /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 7E798429E25\r
+       for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:13:28 -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 WVAyhmJsdYZQ for <notmuch@notmuchmail.org>;\r
+       Wed,  4 May 2011 13:13:27 -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 50BF6429E27\r
+       for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:13:25 -0700 (PDT)\r
+Received: by eyh5 with SMTP id 5so465261eyh.26\r
+       for <notmuch@notmuchmail.org>; Wed, 04 May 2011 13:13:24 -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=1xCVoQfhmtVXnib868ilmrHzF5KTj5qkbmQrZa11DvE=;\r
+       b=HWAoa8RF2c/VgFPm4+bu0oAlKRpZTpjZCmiwCshbCl8VLwA65Xz4+x5LNuRyRQQk53\r
+       jH2GPZfFMeM2WfvkUBtF5qHX6m5byDKR2E3f+gf5V8S26b3wXkD8t85iioLoVgizd/Vv\r
+       yX+CZIzVwcobBxy/JDhlMVUY0iiZXbLjUJmUA=\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=bBixCdYiBFu3k/8ZgbHOGvfiP5LayjbnBXH2pVSkVy+t3jIbFzgj7bSy5UXPAzI140\r
+       vtcH/VbFvyL3Wp36NgDB6kd+lji1buc3DbvbsFWNGlzY15XOoKqcZhxHOELzSZL+N+X0\r
+       o6gM1UFcQxXAlub130QmeIvTeBUOCXq8pkFng=\r
+Received: by 10.14.0.133 with SMTP id 5mr747904eeb.144.1304540003868;\r
+       Wed, 04 May 2011 13:13:23 -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
+       u16sm1092336eei.23.2011.05.04.13.13.22\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 04 May 2011 13:13:23 -0700 (PDT)\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/4] vim: add support to mark as read in show view\r
+Date: Wed,  4 May 2011 23:13:13 +0300\r
+Message-Id: <1304539996-6686-2-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:28 -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 3375a96..05e4552 100644\r
+--- a/vim/plugin/notmuch.vim\r
++++ b/vim/plugin/notmuch.vim\r
+@@ -147,6 +147,7 @@ let g:notmuch_show_maps = {\r
+         \ 'h':          ':call <SID>NM_show_fold_toggle(''h'', ''hdr'', !g:notmuch_show_fold_headers)<CR>',\r
+         \ 'i':          ':call <SID>NM_show_fold_toggle(''s'', ''sig'', !g:notmuch_show_fold_signatures)<CR>',\r
+         \\r
++        \ 'I':          ':call <SID>NM_show_mark_read_thread()<CR>',\r
+         \ 'a':          ':call <SID>NM_show_archive_thread()<CR>',\r
+         \ 'A':          ':call <SID>NM_show_mark_read_then_archive_thread()<CR>',\r
+         \ 'N':          ':call <SID>NM_show_mark_read_then_next_open_message()<CR>',\r
+@@ -494,6 +495,11 @@ function! s:NM_show_next_thread()\r
+         endif\r
+ endfunction\r
\r
++function! s:NM_show_mark_read_thread()\r
++        call <SID>NM_tag(b:nm_search_words, ['-unread'])\r
++        call <SID>NM_show_next_thread()\r
++endfunction\r
++\r
+ function! s:NM_show_archive_thread()\r
+         call <SID>NM_tag(b:nm_search_words, ['-inbox'])\r
+         call <SID>NM_show_next_thread()\r
+-- \r
+1.7.5\r
+\r