From: Jani Nikula Date: Thu, 4 Aug 2016 20:49:16 +0000 (+0300) Subject: Re: notmuch.el: controlling what does and doesn't get expanded in searches X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=65ab6c8a9b4a0c60c19c50c1a6c5ff19900a3987;p=notmuch-archives.git Re: notmuch.el: controlling what does and doesn't get expanded in searches --- diff --git a/ff/96b4d3e660e353e512709402b11a8ae42dc504 b/ff/96b4d3e660e353e512709402b11a8ae42dc504 new file mode 100644 index 000000000..ace43c857 --- /dev/null +++ b/ff/96b4d3e660e353e512709402b11a8ae42dc504 @@ -0,0 +1,120 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id B11BB6DE02C4 + for ; Thu, 4 Aug 2016 13:50:51 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.571 +X-Spam-Level: +X-Spam-Status: No, score=-0.571 tagged_above=-999 required=5 tests=[AWL=0.149, + 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 axdkgI3XX71I for ; + Thu, 4 Aug 2016 13:50:43 -0700 (PDT) +Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com + [74.125.82.43]) by arlo.cworth.org (Postfix) with ESMTPS id 0AFCC6DE02B0 for + ; Thu, 4 Aug 2016 13:50:43 -0700 (PDT) +Received: by mail-wm0-f43.google.com with SMTP id o80so9240246wme.1 + for ; Thu, 04 Aug 2016 13:50:42 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=nikula-org.20150623.gappssmtp.com; s=20150623; + h=from:to:cc:subject:in-reply-to:references:user-agent:date + :message-id:mime-version; + bh=xmV8u/3sXx5DlhsbEpTi1rsj9YqHLUYAl/MGjAQPAOc=; + b=zBpV+Oaj+iojdJz059Le9NaWPw5ayywCvHQPCqX9MSnA4qCnt8qr355cAoEUk5gI4i + ByPONKhK4oCP3OFEm6VYA3uG3vMRn5QWscll87XGo1M5ttF7m7f77TeJzg8BMAVq52Ut + VeooWSLkE2cVHf4DxztXQviDf0ZOEXxlNRcnQ13RWWllCIJp9Xjdd8PBTER6SdR5khrO + Qx/eQIvAB12XPjz8r2iZiRsEyv8Y2tNrYMcm2zfF8g/lNSLEnR0wUj6N891r235rCdtl + 4AY78SFDqbQbg5w718NUzVxrAiYCDNaqSywlm4wjImPGiRplAbmeUfZiHcYbnIEZlSjx + +5kg== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:in-reply-to:references + :user-agent:date:message-id:mime-version; + bh=xmV8u/3sXx5DlhsbEpTi1rsj9YqHLUYAl/MGjAQPAOc=; + b=k3GYHI7OTKwQ0Xi0KvfiHv6IzYLrDjZyrGrST3dawBuq42VLPv8+V0Y43Infecpbwh + F6fL2ztF8bpmBoLMw53KwEdcY8jObxtgvrLobsDzac3VrXfCKWSr0JWBLDAas3Z69gpV + 8lOqeZMWIRbbEifQVfu5jbrVi81VXbBiVVzkNfkQJfsPKKgKDL00HY+iL5IVG2F+GukX + apDvgPIybdtJJl7JFydJL9NHKGzwATGAYwCNzNKS24DjhoeKKJR0Jl9ToJiT+Rn8LT5G + K/gS6BnQUsVC1qWwJs8h+7n7ke4STEV05XEWVrbdnxa4JqrXlMK7/Ut3s9d3f76T2Fq3 + 05Sw== +X-Gm-Message-State: + AEkoousWhawLUrAqxVy1s9+4pak4+4BOeE3oADHOKY0B2lqiaxg9tc0iinrlrhhIbZHAoQ== +X-Received: by 10.194.149.176 with SMTP id ub16mr67668515wjb.54.1470343840702; + Thu, 04 Aug 2016 13:50:40 -0700 (PDT) +Received: from localhost (mobile-access-bcee5c-212.dhcp.inet.fi. + [188.238.92.212]) + by smtp.gmail.com with ESMTPSA id q187sm5297281wma.17.2016.08.04.13.50.39 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Thu, 04 Aug 2016 13:50:40 -0700 (PDT) +From: Jani Nikula +To: Carl Worth , Matt Armstrong , + notmuch@notmuchmail.org +Subject: Re: notmuch.el: controlling what does and doesn't get expanded in + searches +In-Reply-To: <87r3a4nwu0.fsf@wondoo.home.cworth.org> +References: + <87a8gsv787.fsf@nikula.org> + + <87r3a4nwu0.fsf@wondoo.home.cworth.org> +User-Agent: Notmuch/0.22.1+62~g2a7b11b (https://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Thu, 04 Aug 2016 23:49:16 +0300 +Message-ID: <87zios9s4z.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Thu, 04 Aug 2016 20:50:51 -0000 + +On Thu, 04 Aug 2016, Carl Worth wrote: +>> i) notmuch could have an "also expand tags" feature, where thread based +>> results would auto expand matching tags. I would set this to +>> "unread". +> +> This approach makes a lot of sense to me based on how notmuch.el works. + +My idea on how to do this: I'd like to have a key binding in the show +view to go through a customizable list of rules on how to +collapse/expand the messages. The rules could be: + +* [ ] expand all matching messages + [ ] expand messages having any of the specified tags + [ ] expand messages having all of the specified tags +* expand all messages +* collapse all messages + +(* are mutually exclusive, [ ] are not) + +The first rule would define what is displayed by default. So you could +have, for example, "expand all matching messages and any messages that +have both inbox and unread tags", followed by "expand all matching +messages", followed by "expand messages that have inbox tag", followed +by "expand all messages", etc. any way you wish. + +It would be a nice bonus if you could specify at which rule to start per +each saved search, instead of the first in the list. + +I think this could replace the current M-RET and C-u M-RET +expand/collapse all bindings. Maybe M-RET could be reused for this. + +This would obviously not require any changes to the SPC, n, p or other +navigation bindings, which I think are currently just fine. + + +BR, +Jani.