[neomutt-users] feature idea: keybinding to fold and unfold threads and subthreads

ng0 ng0 at pragmatique.xyz
Mon Apr 24 12:23:11 CEST 2017


Hi,

while most threads are rather short and keep the subject, I have seen
problematic ones while I sorted out mail.

A thread on one of the python.org lists had so many subthreads that
at some point its ascii arms and relations disappeared from the visible screen.

The root of this problem is not technical and can't be fixed, but
the visual aspect can.

I'd like to press <tab><tab> in the INBOX view (is it called "index" in
mutt?) and have the current active (marked) sub/thread fold or unfold.
Right now I am only aware of a complete fold with the optional setting
to fold read threads, where the fold is simply "do not show these
messages at all".

What I have in mind is:

16    [N L] Static libcurl size under Windows                                                                                                                    [Wed, Apr 19, 2017 at 06:38:45PM UTC]
17    [N L] └─>Re: Static libcurl size under Windows                                                                                                             [Wed, Apr 19, 2017 at 08:53:21PM UTC]
18    [N L]   └─>Re[2]: Static libcurl size under Windows                                                                                                        [Thu, Apr 20, 2017 at 11:08:46AM UTC]
19    [N L]   | └─>Re: Re[2]: Static libcurl size under Windows                                                                                                  [Thu, Apr 20, 2017 at 12:46:06PM UTC]
20    [N L]   |   └─>Re[4]: Static libcurl size under Windows                                                                                                    [Thu, Apr 20, 2017 at 01:02:31PM UTC]
21    [N L]   |     └─>Re: Re[4]: Static libcurl size under Windows                                                                                              [Thu, Apr 20, 2017 at 01:34:03PM UTC]
22    [N L]   |       └─>Re[6]: Static libcurl size under Windows                                                                                                [Thu, Apr 20, 2017 at 02:57:15PM UTC] <--
23    [N L]   |         ├─>RE: Re[6]: Static libcurl size under Windows                                                                                          [Mon, Apr 24, 2017 at 09:41:21AM UTC]
24    [N L]   |         ├─>Re: Static libcurl size under Windows                                                                                                 [Fri, Apr 21, 2017 at 06:14:25AM UTC]
25    [N L]   |         │ └─>RE: Static libcurl size under Windows                                                                                               [Fri, Apr 21, 2017 at 09:47:39AM UTC]
26    [N L]   |         └─>Re: Static libcurl size under Windows                                                                                                 [Thu, Apr 20, 2017 at 03:22:47PM UTC]
27    [N L]   |           └─>Re[2]: Static libcurl size under Windows                                                                                            [Thu, Apr 20, 2017 at 03:43:32PM UTC]
28    [N L]   |-->Re[2]: Static libcurl size under Windows                                                                                                       [Thu, Apr 20, 2017 at 12:08:59AM UTC]


<tab><tab> (fold) would only affect the messages in this subthread, message 28 wouldn't be affected.
The subthread would then have a visible mark as being folded, for example (thought now the best
example): […]

If you do <tab><tab> again, it will unfold.

Furthermore the state of the fold and unfolds should be memorized optionally, so that you don't have to do
the whole thing again.
-- 
PGP and more: https://people.pragmatique.xyz/ng0/


More information about the neomutt-users mailing list