[neomutt-devel] Tagging (Intent)

Filippo Bonazzi fbonazzi at suse.de
Fri Apr 24 15:20:40 CEST 2026


On Fri, Apr 24, 2026 at 01:57:44PM +0100, Richard Russon wrote:
>NeoMutt supports tagging items in a Menu so that you can perform a
>function on a set of items.
>
>  <tag> (default key 't')
>
>The <tag> function is actually a toggle, so the result depends of the
>item's original state.
>
>I recently merged some improvements to the key handling code
>which allow a repeat-count for functions, e.g. `5<next-entry>`.
>
>If I type `5t` (`5<tag>`) what should happen?
>
>1. Behave as if I'd typed `ttttt`
>   The next 5 entries have the 'tagged' state *toggled.*
>
>2. My intent is to <tag>, so 5 entries should be *tagged.*
>
>3. Determine my intent from the first entry.
>   If it is:
>   - *tagged*,   then I intend to *untag* 5 entries
>   - *untagged*, then I intend to *tag*   5 entries
>
>What do you think?

1 seems more correct, but 3 seems more useful in practice.

Thanks for everything as always,

Filippo

-- 
Filippo Bonazzi
Security Engineer                        suse.com
8257 4398 947A 2DBE F21D 76E6 937A 63F0 5B36 46D9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 525 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20260424/1946d6bc/attachment.sig>


More information about the neomutt-devel mailing list