commands/search: Add option --all-folded to select#1618
Conversation
Allow users who prefer to have all messages collapsed by default to have that behavior. For example, with this change, a user can change her default binding of "enter" to execute "select --all-folded".
|
Personal note: I prefer to have all messages in the thread closed and just open those I'm interested in. With this change, I have the binding |
|
Why not just I even had this in my config for a while |
|
Hm... I just tried |
|
Ping. Is this PR still under consideration or should I give it up? :-) |
lucc
left a comment
There was a problem hiding this comment.
The code looks very simple and I quickly tested it on some thread with several messages.
As noted by @guludo my suggested a alternative of select; fold * seems to invert the folding of all messages in the thread so it folds all messages that match the search query but unfolds all others. Only select; fold *; fold * seems to fold all messages.
But as these workarounds are quite slow and work unreliable I would accept this PR. @pazz what do you think?
|
Thanks for looking into this.
I do not object, let's go for it.
P
Quoting Lucas Hoffmann (2024-01-02 13:51:30)
… @lucc approved this pull request.
The code looks very simple and I quickly tested it on some thread with several
messages.
As noted by @guludo my suggested a alternative of select; fold * seems to
invert the folding of all messages in the thread so it folds all messages that
match the search query but unfolds all others. Only select; fold *; fold *
seems to fold all messages.
But as these workarounds are quite slow and work unreliable I would accept this
PR. @pazz what do you think?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.*Message ID: <pazz/alot/pull/
***@***.***>
|
Allow users who prefer to have all messages collapsed by default to have that behavior. For example, with this change, a user can change her default binding of "enter" to execute "select --all-folded".