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 7E798429E25 for ; Wed, 4 May 2011 13:13:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 WVAyhmJsdYZQ for ; Wed, 4 May 2011 13:13:27 -0700 (PDT) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 50BF6429E27 for ; Wed, 4 May 2011 13:13:25 -0700 (PDT) Received: by eyh5 with SMTP id 5so465261eyh.26 for ; Wed, 04 May 2011 13:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=1xCVoQfhmtVXnib868ilmrHzF5KTj5qkbmQrZa11DvE=; b=HWAoa8RF2c/VgFPm4+bu0oAlKRpZTpjZCmiwCshbCl8VLwA65Xz4+x5LNuRyRQQk53 jH2GPZfFMeM2WfvkUBtF5qHX6m5byDKR2E3f+gf5V8S26b3wXkD8t85iioLoVgizd/Vv yX+CZIzVwcobBxy/JDhlMVUY0iiZXbLjUJmUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=bBixCdYiBFu3k/8ZgbHOGvfiP5LayjbnBXH2pVSkVy+t3jIbFzgj7bSy5UXPAzI140 vtcH/VbFvyL3Wp36NgDB6kd+lji1buc3DbvbsFWNGlzY15XOoKqcZhxHOELzSZL+N+X0 o6gM1UFcQxXAlub130QmeIvTeBUOCXq8pkFng= Received: by 10.14.0.133 with SMTP id 5mr747904eeb.144.1304540003868; Wed, 04 May 2011 13:13:23 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id u16sm1092336eei.23.2011.05.04.13.13.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2011 13:13:23 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 1/4] vim: add support to mark as read in show view Date: Wed, 4 May 2011 23:13:13 +0300 Message-Id: <1304539996-6686-2-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.5 In-Reply-To: <1304539996-6686-1-git-send-email-felipe.contreras@gmail.com> References: <1304539996-6686-1-git-send-email-felipe.contreras@gmail.com> 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: Wed, 04 May 2011 20:13:28 -0000 Signed-off-by: Felipe Contreras --- vim/plugin/notmuch.vim | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 3375a96..05e4552 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -147,6 +147,7 @@ let g:notmuch_show_maps = { \ 'h': ':call NM_show_fold_toggle(''h'', ''hdr'', !g:notmuch_show_fold_headers)', \ 'i': ':call NM_show_fold_toggle(''s'', ''sig'', !g:notmuch_show_fold_signatures)', \ + \ 'I': ':call NM_show_mark_read_thread()', \ 'a': ':call NM_show_archive_thread()', \ 'A': ':call NM_show_mark_read_then_archive_thread()', \ 'N': ':call NM_show_mark_read_then_next_open_message()', @@ -494,6 +495,11 @@ function! s:NM_show_next_thread() endif endfunction +function! s:NM_show_mark_read_thread() + call NM_tag(b:nm_search_words, ['-unread']) + call NM_show_next_thread() +endfunction + function! s:NM_show_archive_thread() call NM_tag(b:nm_search_words, ['-inbox']) call NM_show_next_thread() -- 1.7.5