[neomutt-devel] Extend the ~m pattern to allow relative ranges

Richard Russon rich at flatcap.org
Sat Jan 21 02:13:27 CET 2017


The ~m pattern now accepts absolute ranges, relative ranges and has some
mnemonics (shortcuts).

Many thanks to Ian Zimmerman (@nobrowser) for this new feature.

There are new shortcuts for some emails:
    ^   First email
    .   Current email
    $   Last email

These shortcuts can be used anywhere a number is used in the examples
below.

Relative ranges have a comma ',' in them:
    -3,.    Previous 3 emails plus the current one
    .,$     Current email and all the later ones
    -2,2    Previous 2, current and next 2 emails
    0,1     Current and next email

Absolute range:
    3-10    Emails 3-10
    -10     Emails 1-10
    10-     Emails 10-last
    7       Just email 7 

The history of the new feature can be found:
    https://github.com/neomutt/neomutt/pull/269
    https://github.com/neomutt/neomutt/pull/283
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20170121/8bda5274/attachment.sig>


More information about the neomutt-devel mailing list