Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / ff / 96b4d3e660e353e512709402b11a8ae42dc504
1 Return-Path: <jani@nikula.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id B11BB6DE02C4\r
6  for <notmuch@notmuchmail.org>; Thu,  4 Aug 2016 13:50:51 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.571\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.571 tagged_above=-999 required=5 tests=[AWL=0.149,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
13  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id axdkgI3XX71I for <notmuch@notmuchmail.org>;\r
17  Thu,  4 Aug 2016 13:50:43 -0700 (PDT)\r
18 Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com\r
19  [74.125.82.43]) by arlo.cworth.org (Postfix) with ESMTPS id 0AFCC6DE02B0 for\r
20  <notmuch@notmuchmail.org>; Thu,  4 Aug 2016 13:50:43 -0700 (PDT)\r
21 Received: by mail-wm0-f43.google.com with SMTP id o80so9240246wme.1\r
22  for <notmuch@notmuchmail.org>; Thu, 04 Aug 2016 13:50:42 -0700 (PDT)\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
24  d=nikula-org.20150623.gappssmtp.com; s=20150623;\r
25  h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
26  :message-id:mime-version;\r
27  bh=xmV8u/3sXx5DlhsbEpTi1rsj9YqHLUYAl/MGjAQPAOc=;\r
28  b=zBpV+Oaj+iojdJz059Le9NaWPw5ayywCvHQPCqX9MSnA4qCnt8qr355cAoEUk5gI4i\r
29  ByPONKhK4oCP3OFEm6VYA3uG3vMRn5QWscll87XGo1M5ttF7m7f77TeJzg8BMAVq52Ut\r
30  VeooWSLkE2cVHf4DxztXQviDf0ZOEXxlNRcnQ13RWWllCIJp9Xjdd8PBTER6SdR5khrO\r
31  Qx/eQIvAB12XPjz8r2iZiRsEyv8Y2tNrYMcm2zfF8g/lNSLEnR0wUj6N891r235rCdtl\r
32  4AY78SFDqbQbg5w718NUzVxrAiYCDNaqSywlm4wjImPGiRplAbmeUfZiHcYbnIEZlSjx\r
33  +5kg==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:from:to:cc:subject:in-reply-to:references\r
37  :user-agent:date:message-id:mime-version;\r
38  bh=xmV8u/3sXx5DlhsbEpTi1rsj9YqHLUYAl/MGjAQPAOc=;\r
39  b=k3GYHI7OTKwQ0Xi0KvfiHv6IzYLrDjZyrGrST3dawBuq42VLPv8+V0Y43Infecpbwh\r
40  F6fL2ztF8bpmBoLMw53KwEdcY8jObxtgvrLobsDzac3VrXfCKWSr0JWBLDAas3Z69gpV\r
41  8lOqeZMWIRbbEifQVfu5jbrVi81VXbBiVVzkNfkQJfsPKKgKDL00HY+iL5IVG2F+GukX\r
42  apDvgPIybdtJJl7JFydJL9NHKGzwATGAYwCNzNKS24DjhoeKKJR0Jl9ToJiT+Rn8LT5G\r
43  K/gS6BnQUsVC1qWwJs8h+7n7ke4STEV05XEWVrbdnxa4JqrXlMK7/Ut3s9d3f76T2Fq3\r
44  05Sw==\r
45 X-Gm-Message-State:\r
46  AEkoousWhawLUrAqxVy1s9+4pak4+4BOeE3oADHOKY0B2lqiaxg9tc0iinrlrhhIbZHAoQ==\r
47 X-Received: by 10.194.149.176 with SMTP id ub16mr67668515wjb.54.1470343840702;\r
48   Thu, 04 Aug 2016 13:50:40 -0700 (PDT)\r
49 Received: from localhost (mobile-access-bcee5c-212.dhcp.inet.fi.\r
50  [188.238.92.212])\r
51  by smtp.gmail.com with ESMTPSA id q187sm5297281wma.17.2016.08.04.13.50.39\r
52  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
53  Thu, 04 Aug 2016 13:50:40 -0700 (PDT)\r
54 From: Jani Nikula <jani@nikula.org>\r
55 To: Carl Worth <cworth@cworth.org>, Matt Armstrong <marmstrong@google.com>,\r
56  notmuch@notmuchmail.org\r
57 Subject: Re: notmuch.el: controlling what does and doesn't get expanded in\r
58  searches\r
59 In-Reply-To: <87r3a4nwu0.fsf@wondoo.home.cworth.org>\r
60 References: <qf54m70o7h5.fsf@marmstrong-linux.kir.corp.google.com>\r
61  <87a8gsv787.fsf@nikula.org>\r
62  <qf57fbw4fx4.fsf@marmstrong-linux.kir.corp.google.com>\r
63  <87r3a4nwu0.fsf@wondoo.home.cworth.org>\r
64 User-Agent: Notmuch/0.22.1+62~g2a7b11b (https://notmuchmail.org) Emacs/24.4.1\r
65  (x86_64-pc-linux-gnu)\r
66 Date: Thu, 04 Aug 2016 23:49:16 +0300\r
67 Message-ID: <87zios9s4z.fsf@nikula.org>\r
68 MIME-Version: 1.0\r
69 Content-Type: text/plain\r
70 X-BeenThere: notmuch@notmuchmail.org\r
71 X-Mailman-Version: 2.1.20\r
72 Precedence: list\r
73 List-Id: "Use and development of the notmuch mail system."\r
74  <notmuch.notmuchmail.org>\r
75 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
76  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
77 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
78 List-Post: <mailto:notmuch@notmuchmail.org>\r
79 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
80 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
81  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
82 X-List-Received-Date: Thu, 04 Aug 2016 20:50:51 -0000\r
83 \r
84 On Thu, 04 Aug 2016, Carl Worth <cworth@cworth.org> wrote:\r
85 >>  i) notmuch could have an "also expand tags" feature, where thread based\r
86 >>     results would auto expand matching tags.  I would set this to\r
87 >>     "unread".\r
88 >\r
89 > This approach makes a lot of sense to me based on how notmuch.el works.\r
90 \r
91 My idea on how to do this: I'd like to have a key binding in the show\r
92 view to go through a customizable list of rules on how to\r
93 collapse/expand the messages. The rules could be:\r
94 \r
95 * [ ] expand all matching messages\r
96   [ ] expand messages having any of the specified tags\r
97   [ ] expand messages having all of the specified tags\r
98 * expand all messages\r
99 * collapse all messages\r
100 \r
101 (* are mutually exclusive, [ ] are not)\r
102 \r
103 The first rule would define what is displayed by default. So you could\r
104 have, for example, "expand all matching messages and any messages that\r
105 have both inbox and unread tags", followed by "expand all matching\r
106 messages", followed by "expand messages that have inbox tag", followed\r
107 by "expand all messages", etc. any way you wish.\r
108 \r
109 It would be a nice bonus if you could specify at which rule to start per\r
110 each saved search, instead of the first in the list.\r
111 \r
112 I think this could replace the current M-RET and C-u M-RET\r
113 expand/collapse all bindings. Maybe M-RET could be reused for this.\r
114 \r
115 This would obviously not require any changes to the SPC, n, p or other\r
116 navigation bindings, which I think are currently just fine.\r
117 \r
118 \r
119 BR,\r
120 Jani.\r