pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
695 stars 164 forks source link

More flexible "move" command in thread mode #1490

Open pacien opened 4 years ago

pacien commented 4 years ago

Is your feature request related to a problem? Please describe.

Currently, the "move" command in thread mode only accepts notmuch queries with the "next" and "previous" subcommand.

It doesn't support:

This is quite inconvenient and prevents the user from defining shortcuts such as "select; move first tag:unread" in the search mode to open a thread and focus directly on the first unread message [1].

Describe the solution you'd like

The "move" command could be made more flexible to allow the combination of multiple filters (currently subcommands) and the use of notmuch queries.

Describe alternatives you've considered

In the scenario [1]: using "select; move next tag:unread" moves to the second unread message in new threads, which is not the desired effect.

Additional context

Turning subcommands into filters could actually simplify the implementation of that command.

pazz commented 4 years ago

Yes, that'd be cool. Also, It be gread to write this somehow so that it doesn't blow up the code to 10000 lines. Suggestions welcome :)