From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 107FC6DE0C97 for ; Sun, 18 Sep 2016 08:55:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.062 X-Spam-Level: X-Spam-Status: No, score=0.062 tagged_above=-999 required=5 tests=[AWL=0.782, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-9cg69EfbSP for ; Sun, 18 Sep 2016 08:55:17 -0700 (PDT) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id 1B0796DE0C78 for ; Sun, 18 Sep 2016 08:55:17 -0700 (PDT) Received: by mail-wm0-f66.google.com with SMTP id 133so11216447wmq.2 for ; Sun, 18 Sep 2016 08:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=JG0bNEn9N3Bez17xAjwrKrQjQVeEGJCrUes7ap8kujI=; b=rfOtpU5DxFz/n/j1qhztdVMBWKdNMbtlfhTODGotg+6VIgoUqB5NEHM+wQzwN9Jnqz hOSjYbLyFWQvbz1GQasCSGN1kdINlYzySdTe/XytGt4oJ07ISyS4UAjwWmGj61sYDOJl 1yTHdRlgyKRZx8LjC1RCr9zBO4SJt3MLkUZs7CjcDxLvB9rsLlU9eKu7PrzU2sh4Cv4a kvJoyszEisLSSir2W133K35kd4uGgRK0o68wyvsGZ1SpbW1hDtX2wx5pKupAZBD4p4j0 utFpZN0ybxFPropyDCj8DtgiJACPc+XD8S1QfVZZhTCZBinz3qEYVOYYMAyrdmqDFaBy 0CGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=JG0bNEn9N3Bez17xAjwrKrQjQVeEGJCrUes7ap8kujI=; b=IYMKMbmJiFfUsaSPUm0Cmeta4pcMB5sU7mY2V6o5S4WbhoBVOmc6ZWvL1gLGzErI/t JrSDV59OOeVMMdOFrrwQPdEC0gR1FGixy6CbveKMPSL8Noy2Kh0zZsBRDsFb0ClPgOEP K9xl8uCzCPBxbBwSZ50h7rNuN8enKBswJ0onKLdvmUYc96zrB84uau7R8Fh5KK/TBWEK hCdrqrZXzgAnpOCR/gu0/pGOQxFJaT83jet5d0mBvxZMBmytUMeww3UEYL+53W96gAZ2 Wbhh3KMR2pi051VHQuZEi04N5IcrdrTnHFUEl6XvNhlKZnJ73m1eraaLLVwvRmc66G/x 34iQ== X-Gm-Message-State: AE9vXwPVvd5P1TBkP24BGldXsf7iLrBjAv7XqoEw3FxJ/e3TxXoFvBxotiF94LZBx+DYqw== X-Received: by 10.28.210.5 with SMTP id j5mr5448037wmg.67.1474214115776; Sun, 18 Sep 2016 08:55:15 -0700 (PDT) Received: from localhost (dsl-hkibrasgw2-58c368-70.dhcp.inet.fi. [88.195.104.70]) by smtp.gmail.com with ESMTPSA id z4sm17461829wmg.19.2016.09.18.08.55.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Sep 2016 08:55:15 -0700 (PDT) From: Jani Nikula To: Ioan-Adrian Ratiu , Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: add tag jump menu In-Reply-To: <87poo19t6i.fsf@adiPC.i-did-not-set--mail-host-address--so-tickle-me> References: <1474146583-28476-1-git-send-email-markwalters1009@gmail.com> <87h99dg0af.fsf@adiPC.i-did-not-set--mail-host-address--so-tickle-me> <8737kxbmnx.fsf@qmul.ac.uk> <87poo19t6i.fsf@adiPC.i-did-not-set--mail-host-address--so-tickle-me> Date: Sun, 18 Sep 2016 18:53:28 +0300 Message-ID: <87a8f5uruv.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sun, 18 Sep 2016 15:55:18 -0000 On Sun, 18 Sep 2016, Ioan-Adrian Ratiu wrote: > On Sun, 18 Sep 2016, Mark Walters wrote: >> On Sun, 18 Sep 2016, Ioan-Adrian Ratiu wrote: >>> Hi >>> >>> I have implemented something similar in my tree and I really like the >>> idea. I have one issue though. >>> >>> On Sat, 17 Sep 2016, Mark Walters wrote: >>>> Add a "jump" style menu for doing tagging operations. >>>> --- >>>> >>>> Jani suggested something like this on irc today. This is a first cut >>>> to see if people like it. By default the tagging jump menu is bound to >>>> k (which works in search/show/tree mode), and has the following options >>>> >>>> a (Archive) -inbox -unread >>>> u (Mark Read) -unread >>>> d (Delete) +deleted >>>> >>>> If you do ctrl-u k the it will do the reverse operation. >>> >>> I know C-u is default emacs behaviour but I find very cumbersone to do >>> C-u for unapplying the tag. What I do and want is to simply apply the >>> tag when pressing "d" then unapply it when pressing "d" again if the >>> mail/thread already contains the deleted tag (basically it's a toggle). >> >> I agree that C-u is a little cumbersome -- I think I would be happy for >> a toggle for single messages (with a single tag change), but for >> multiple messages like a thread I think it would be very unclear what it >> was doing. > > My workflow with the kind of code shown above is as follows: > > If in notmuch-search then pressing 'd' "deletes" everything selected, > including multiple messages in a region and if a thread was selected in > that region then the entire thread is deleted. You are not addressing the toggle case where some of the messages in those threads have the tag, and some do not. How should notmuch know whether you want to add or remove the deleted tag? > IMO this is the simplest and the clearest workflow. While working on Notmuch, one of the main lessons I've learned is that *everyone* has their own, personal email workflow. We need to try to give people discoverable and intuitive *mechanisms* on dealing with email, and let people build their own workflows that suit them. (That said, I always try to encourage people to rethink their workflows when switching to Notmuch. But it's still *their* workflow.) BR, Jani.