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 DAF6940AB46 for ; Sat, 5 Jun 2010 04:13:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham 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 yritCrzht95i for ; Sat, 5 Jun 2010 04:13:28 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) by olra.theworths.org (Postfix) with ESMTP id 47FC2418C34 for ; Sat, 5 Jun 2010 04:13:04 -0700 (PDT) Received: by mail-bw0-f53.google.com with SMTP id 12so686857bwz.26 for ; Sat, 05 Jun 2010 04:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=cF1tPBBZYMz/IRgqmwt54PHnoGPWFueeR7CyFS3OCKE=; b=MooIayFnCM1Udl5Eom6trJvHPb3iG8ZGGqvsh0aTjBtqjVTkAFu0v/YepJE8/OgEaP HpcA025/mIo4D9SceHBMGIx0u2X2QHW79Q6K5TjkKHv5869pFKjEFa1PbDf/hTdtHm3H LuUPQsf1nCXxBMETB1YHgS/SXXQhd559vkl8w= 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=NI+oYIUY/9+rvbYHHsoajG9AS141Y/xMjLAC0e6tztN2fwkThTwGup4wcqeAOq3IFH rly4dJEUn6peniRem9izWLL6Acz5Sx1nUeZF/3AglGP94h5b27whGqIAtayS4xzG3Ugt 9DzcoR/YQ3FR9/KLWCOGlLHi+1IIweINUa2x0= Received: by 10.204.83.29 with SMTP id d29mr4676596bkl.130.1275736383927; Sat, 05 Jun 2010 04:13:03 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id z20sm9603099bkx.3.2010.06.05.04.13.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Jun 2010 04:13:03 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 6/9] vim: add option to mark as read + archive Date: Sat, 5 Jun 2010 14:12:39 +0300 Message-Id: <1275736362-22771-7-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1275736362-22771-1-git-send-email-felipe.contreras@gmail.com> References: <1275736362-22771-1-git-send-email-felipe.contreras@gmail.com> Cc: Bart Trojanowski 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: Sat, 05 Jun 2010 11:13:40 -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 01ee10f..968c4c1 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(1)', \ '': ':call NM_search_expand('''')', \ 'a': ':call NM_search_archive_thread()', + \ 'A': ':call NM_search_mark_read_then_archive_thread()', \ 'f': ':call NM_search_filter()', \ 'm': ':call NM_new_mail()', \ 'o': ':call NM_search_toggle_order()', @@ -310,6 +311,11 @@ function! s:NM_search_archive_thread() norm j endfunction +function! s:NM_search_mark_read_then_archive_thread() + call NM_add_remove_tags([], '-', ['unread', 'inbox']) + norm j +endfunction + function! s:NM_search_filter() call NM_search_filter_helper('Filter: ', '', '') endfunction -- 1.7.1