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 1D07F429E25 for ; Wed, 4 May 2011 13:13:29 -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 2wIboHuoVHeH for ; Wed, 4 May 2011 13:13:28 -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 E7E2B429E2A for ; Wed, 4 May 2011 13:13:26 -0700 (PDT) Received: by mail-ey0-f181.google.com with SMTP id 5so465261eyh.26 for ; Wed, 04 May 2011 13:13:26 -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=VU1bQurqXDMxIH2v2tyJdqqie550/5fsqSVOgmqadFo=; b=Ty/HVuiNN7I2A209zBemd6Aws2zrDOjqGob7fdFKQVZGYgVu9dKEVXYTfI0x30Hfzz uy/hFmXm+l7sTeWZlzn9uf6eo8kvmmIggKphpJlInqp1WBtt1px/AgWGTAkxZMj8fC9s BP9zktdn3vGmFF3V8qfesuO/ifUhqVily2EmY= 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=JsEeFaZ7FfX2aTHqDKeEu7sFE6rXRmJkvTiPu7UTQL9lgBpinKl+tdAATRak5qIL7F eANTWY3tZ8YAD0lyQHwOg7sBO8ENd/A2T9Zx8BQTDLpFpox8FlBYNJbrQhlcADE+/Ru8 94H2U3K4Q/22HHbMvbhldikrC9xuP4tXpVhTw= Received: by 10.213.32.147 with SMTP id c19mr2206007ebd.29.1304540006362; Wed, 04 May 2011 13:13:26 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id c14sm1092956eeb.18.2011.05.04.13.13.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2011 13:13:25 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 2/4] vim: add support to mark as read in search view Date: Wed, 4 May 2011 23:13:14 +0300 Message-Id: <1304539996-6686-3-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:29 -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 05e4552..6f9ff18 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -118,6 +118,7 @@ let g:notmuch_search_maps = { \ '': ':call NM_search_show_thread(0)', \ '': ':call NM_search_show_thread(1)', \ '': ':call NM_search_expand('''')', + \ 'I': ':call NM_search_mark_read_thread()', \ 'a': ':call NM_search_archive_thread()', \ 'A': ':call NM_search_mark_read_then_archive_thread()', \ 'f': ':call NM_search_filter()', @@ -308,6 +309,11 @@ function! s:NM_search_edit() endif endfunction +function! s:NM_search_mark_read_thread() + call NM_tag([], ['-unread']) + norm j +endfunction + function! s:NM_search_archive_thread() call NM_tag([], ['-inbox']) norm j -- 1.7.5