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 728DF429E2C for ; Wed, 4 May 2011 13:13:30 -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 hyDNaHrplA7U for ; Wed, 4 May 2011 13:13:30 -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 17174431FB5 for ; Wed, 4 May 2011 13:13:28 -0700 (PDT) Received: by mail-ey0-f181.google.com with SMTP id 5so465261eyh.26 for ; Wed, 04 May 2011 13:13:28 -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=1ybTQjPDtGk84K+zkYJhCnoY2KchgvvNIEzk7PYh9mU=; b=U8VJd0hmD3ap4pEYEpMQ8ngUuFHWKY/ALEpWUQ/NTNu9JA0opOvMjKp8CtEg1dP+Hh yVxneftb6Kc3gq14sYtGe4LO7Y7HAHGsqsg6zBPPuTyzTkV6a5G4yAF0YMe+5EIBwiJx sIlcNAaaQx0lrtHQXMUiC22ByG+lq5xmoOXYo= 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=h7XZIa1zQ5RDNSm7q54l+f/9ooREf1QyzcfcyLZ2pDTDy7usr8//F5S2HCRupO6k// v4Q/pmz4eFakmLFFWMRSXNYEA6MYu1RceriQHxm308nf1uwdAAIpWecWLDtVDbxc5P6V sKX/2rTBusRnmCYQ5tk/b+THn50jvAXlEziIE= Received: by 10.14.2.93 with SMTP id 69mr762811eee.211.1304540008692; Wed, 04 May 2011 13:13:28 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id y7sm1092229eeh.21.2011.05.04.13.13.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2011 13:13:28 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 3/4] vim: add support for delete in search view Date: Wed, 4 May 2011 23:13:15 +0300 Message-Id: <1304539996-6686-4-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:30 -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 6f9ff18..c49ada5 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -121,6 +121,7 @@ let g:notmuch_search_maps = { \ 'I': ':call NM_search_mark_read_thread()', \ 'a': ':call NM_search_archive_thread()', \ 'A': ':call NM_search_mark_read_then_archive_thread()', + \ 'D': ':call NM_search_delete_thread()', \ 'f': ':call NM_search_filter()', \ 'm': ':call NM_new_mail()', \ 'o': ':call NM_search_toggle_order()', @@ -324,6 +325,11 @@ function! s:NM_search_mark_read_then_archive_thread() norm j endfunction +function! s:NM_search_delete_thread() + call NM_tag([], ['+delete','-inbox','-unread']) + norm j +endfunction + function! s:NM_search_filter() call NM_search_filter_helper('Filter: ', '', '') endfunction -- 1.7.5