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 AD47D431FB6 for ; Tue, 15 May 2012 09:49:06 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 EmCab+wmMJbs for ; Tue, 15 May 2012 09:49:06 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 277ED431FAE for ; Tue, 15 May 2012 09:49:06 -0700 (PDT) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id C585532805B; Tue, 15 May 2012 09:49:03 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (lair.fifthhorseman.net [108.58.6.98]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id D9CCE328036; Tue, 15 May 2012 09:49:00 -0700 (PDT) Received: by finestructure.net (Postfix, from userid 1000) id 94091995; Tue, 15 May 2012 09:48:59 -0700 (PDT) From: Jameson Graef Rollins To: Pavel Panchekha , notmuch@notmuchmail.org Subject: Re: Mark feature in notmuch.el In-Reply-To: References: User-Agent: Notmuch/0.12+183~g9d5ff3c (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Tue, 15 May 2012 09:48:55 -0700 Message-ID: <87ipfxie4o.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Tue, 15 May 2012 16:49:06 -0000 --=-=-= On Mon, May 14 2012, Pavel Panchekha wrote: > I was wondering if there were any plans to add a "mark" feature. By > hitting some keybinding, one could mark some set of mails and then apply > operations to them as a batch. This would be often useful for me for, for > example, tagging all mails matching a search except some. If there were a > way to mark ranges, this would also make the syntax of date searches less > painful. Hi, Pavel. It wouldn't be hard to put together something like you're suggesting with the current functionality: * add a key binding to add the tag "mark" to a message. In emacs: (define-key notmuch-search-mode-map "q" (lambda () "mark thread." (interactive) (notmuch-search-tag "+marked"))) * add a key binding that runs "notmuch tag $TAG_CHANGES -- tag:mark": (define-key notmuch-search-mode-map "Q" (lambda () "apply operation to marked threads." (interactive) (notmuch-tag "tag:marked" nil))) That last function should prompt for tags to apply to the marked threads. Note: those functions are NOT TESTED, and require 0.13 (which is not released yet). hth. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJPsoj3AAoJEO00zqvie6q8GC0P/RCwN4nAZQ/UaimGB442OJHP qFvMyOY74c+eMA6ZIfECJKzkIyz5eYgyevcB2GNQfE9SXkBYwoTbJxp5Rvqi2tek 344542N+ZKJ0w/Cv5EIuV1zOjh1QgzFyhuWJCnWoQIIUCgVTejbQe/gdy3YoIWsg 137iFBI3opkTBCmHg53mLC0u70lewSvTV4EcEhoj9yFjBGfxJbh1NptzPtMyH7hV LxsQnPlLW2A0VdOYDDH+RK25SV0/XzFxj5UCNh0C1w6OB1K9Z+Tg+X6aCTBkeCcP ql7C7mG5OqDOp+svtEmnBXfLN9BJN2NLSbfPFyvZ/vS31f3JSg5dkeoa5G9KrMQP 1HkAWX1ZfoL1OskRZhvYPBjYW5FqbtqDPxg4QdaHdAv68VihAwVK963fF2DW00N3 YSITONvCJKEAixLqk6U4KgkzNvq7Ab+ooFniHeHJA0wuvS0Kq1CTdxYmNX+iwGTq shZ1hTmsjdPcobyepGEyBok46jWR+sQpI8egkJtjWUnQrqgZ4tEc7/vBMFrkJwMN nmxzKlA8F0dI4+uvuSMstbNGVEBJDQkLGlkaFYb7ESBF40HkCEcW/xk4taSVmIdG rRaQUyM36hq2M3A6TMcFOYz5rbVIZkAtzwOQaeA7FjhMYl9bAk4J9dxERPyNFCFn g8QJcbMMqtByhjlns0ya =jbCX -----END PGP SIGNATURE----- --=-=-=--