Re: add a TILDE-D for "marked DELETE-ME", plus TILDE-P for PRIOR-regexp



David Combs <dkcombs@xxxxxxxxx> wrote:
> This should be a HUGE help, and safety-addition, for mutt, when
> deleting messages.
>
> What with so much spam, probably most of us go down the subj-line page,
> hitting D for anything that looks like spam.

Yep.

>
> HOWEVER, any of us could have made a mistake when doing that;
>
> THUS, it'd be a real help if we could review just those subject-lines
> that we've marked D -- before we hit that "$" key!
>
> Now, how to do that?
>
> Well, we've already got the "ell" "l" key -- we could use that
> if we had a TILDE-D (no regexp needed following it).

We do have that. Just type

l~D

and you will see only deleted messages. If you want to restrict
your index display to only non-deleted messages without committing
the deleted messages to that big bit bucket by typing "$", you can
type

l!~D

Look in the mutt manual (not the man page) for section 4.2,
Patterns.

>
> Now, having done that, maybe undeleting one or two messages, and
> doing the $ command, we want to go back to the PRIOR "l" regexp --
> so maybe a TILDE-P for prior, that on <cr> would "expand" into
> that prior regexp (the one before the TILDE D), which on <cr>
> would execute that l-command.

We have that, too. Just type the up-arrow at the limit prompt to
move backwards in the limit history. To find out more about this,
see the mutt manual again, section 2.2, Editing Input Fields. You
can not only repeat limit commands this way, but you can edit them
as well.

HTH,
Gary
.