From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EFxjMJit7mDPXAEAgWs5BA (envelope-from ) for ; Wed, 14 Jul 2021 11:25:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CAMULJit7mAwZgAAbx9fmQ (envelope-from ) for ; Wed, 14 Jul 2021 09:25:44 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0E4D6F02C for ; Wed, 14 Jul 2021 11:25:44 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BA063290D2; Wed, 14 Jul 2021 05:25:39 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 472F8290A9 for ; Wed, 14 Jul 2021 05:25:36 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 8E2051B0011F; Wed, 14 Jul 2021 12:25:32 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1626254732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=02os2NrWVl84jYSMAEz6QytfMKnb/sr9pcWI+2J3YP4=; b=HEfkObbG3Fmm9YkQd2YgSNg9NcMRi4QjWRB2d9AUOIfuipXobywWiXM4l7HQky70GXx6Nb INNHIC0EkhUwohpSgX2FF871Gw2mDfIpY9oJNDpsqOnDlOaYng3YEtKEEUkWvNkO+KXAXD Y5iomfIOqRRfNPgDmANlAKx5z5DoSDZIrzvcWc8ifPG7ecMTr4jJFMLtl/3KWnufR04lE9 ZKPvfalQisDyxmB7lTJQoGis7h95DdfXTXywK7212OJ4JExHi+S38R55bUe6gOdOcE9TZ4 PjDozKe+yw20v9n88LGB7N4ClL/OABXruR4lO6oyCCIC0gx4X5ThuiqJTNacqQ== From: Tomi Ollila To: inwit , notmuch@notmuchmail.org Subject: Re: Repeat last tagging In-Reply-To: References: User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1626254732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=02os2NrWVl84jYSMAEz6QytfMKnb/sr9pcWI+2J3YP4=; b=lWuTAgRr2p0tUSz7uP+jEH1eyH7OL1oGnybJ01m1Duel21D4yHQ0eSikfXEhrih5WlzNlq J17JJt443Ta7cGHWBrlVRNN0zMEnuf7Ts+ChSYccdQMpodjZvqBIWJ9WDvYaXgx1T2kihu 9iGtSpBBnQRTEitl4iG+24EskM4mIYi6El+HnunCKbG9g0gNPzbbiy2+/qVhujWs8q0fWu /XDpULNyCoz7vHGjBA/XmAGPAliMk+kOITGlPwzF3VadNfVAqaZSsdoIPcQ5sUUYD4thwm SaPhHvgBuJP3z2jye5N4gyND8o0PVwWq7mkL79nzNI33AFdSQBouKZzswM45Iw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1626254732; a=rsa-sha256; cv=none; b=ZEvqsa5+wUVR1NfX++Upn1hD8ThvArCc6H+HU4xR1VJD3fwsf9srWqQIpr8UuRlrbzJM9S HXj4XZA660H5TLGSTTW3qoRnrOpLVNyqmHHyklEcOyvDuPEQJFFtDkrSG1DguE0BmtPmY8 ome1ZQCLOTdmqR9TARWRAnSubqm4HfUnhrCOc+npZwlWsGuroqcxkjXs3AhXyIoa1uMcHQ 9wjaIFcOEXZL+0vI4gu1T7Mu60aI7z9gjDNmnne7Nao0Q5/DEzRmDnW2DaylZHXP9peqJI 1sW1ubjeh//kuVQ8fgYDa4g4Et5zXBwZ5JWXYaCgt4550FfPYmI/uDRilV0Txw== Message-ID-Hash: HKWX36OTRDDFPTC7F2WL6GA6PM2BUIIY X-Message-ID-Hash: HKWX36OTRDDFPTC7F2WL6GA6PM2BUIIY X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626254744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JdUD/0fVNMU+UoKgSbBMg+4ZjqTTKMk80h8bXzq1bDU=; b=IwLByoAQgopIL5cZR1cuwo7jx9cQ/bHkn9ATXpteo4ESh8DtL3L3XksEZAZQQMK/cfQzfx lr8R83iYymY4A9mfvKdQRTl1TckBBEsyW2yAOGiEOF6kDbCmTLOa/en43YCVGxKWI3EocK 5+BUYfLXZMk2trBAJvohA4hw93mNXMwhMDUQHHjDp4e4hSmFtUThZr/OxS2gRJBhmbWz2/ ElT4s72aOwTNAgKb7Y9WfYX2PNvi9Tbc+WvuOvZql65gJZyf4VoTBOVxsY0zSESuAdhbPS oAxSBZxds3lerzsOAkV9nLFogpzEO/4beIW1JwDynRsTc1SfL+00wn/RCI62Cg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1626254744; a=rsa-sha256; cv=fail; b=UTIlQ1TkFm3Hx/QlDtONzhMQGN0P7Z4UpCKalpmhj+nD7zbYUucaaYaRSX5J3/ucje96/X vPVtpl7plH0D4+ktw/3lZYBBzmoIddFqTaLqoPn7cfsm7Zhx6T01m5R1f/YlTPoi3Sk38B JUWFLAoWJhpaF0duwp3gCxkOa8/TCETfGLzNhtqxq4pQQ1OJQjUrfcsvETVjCdqnWNgd/m ip9ZK5z+Gm0TYvlY/n+1yjKcgMbox25Wd4Rm3dmVQKL7HtxKc38C3/d33QxPH2wbfh2K7Q OLeffz5YZ1KFQUNc7EGsGid0NK2IRGlbM4tmfgRctSavVIT/fbFY4SUh7Cg69g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=HEfkObbG; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=HEfkObbG; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 0E4D6F02C X-Spam-Score: 0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: jirGAOacY8bI On Wed, Jul 14 2021, inwit@sindominio.net wrote: > Hi, > > While using notmuch in emacs (which I love, thank you so much!!) I was > wondering if there's a way to repeat the last tagging operation for a > different message or thread. > > My usecase is that, in tree-mode, sometimes I need to tag several emails > from different threads, and it would come very handy if, after the first > tag change, I could use a shortcut (I'd choose '.', as in vim/evil) > which would apply the same tag change to other emails. Does this make > sense? It does, what it would require is saving last-tag-change to a variable and then bind function to a key... I personally am not too interested for such a binding (It could be "dangerous" to do accidental undesired change (but I also could be wrong and like such a feature >;D) for reference I have the following bindings added to my configuration file (define-key notmuch-show-user-map "u" (lambda () "mark message unread" (interactive) (notmuch-show-tag-message "+unread"))) (define-key notmuch-show-user-map "i" (lambda () "remove inbox tag" (interactive) (notmuch-show-tag-message "-inbox"))) which means uu restores "unread" and ui removes "inbox". one can bind to notmuch-show-mode-map in order for just one keypress to do tag-change... storing last-tag-change may provide hard if there is no central place to execute "notmuch tag" command in notmuch emacs source code... Tomi > I know I could perform a search for all the emails that I need > to tag and tag them all at the same time, but the criteria to select > them is usually not obvious. Another option would be to be able to mark > emails, then tag them (I've seen the emacs-region thing, but it's not > the same). > > Thanks in advance. And cheers again for the good work! > > Regards, > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org