[neomutt-devel] Tagging (Intent)

Pietro Cerutti gahr at gahr.ch
Fri Apr 24 20:29:57 CEST 2026


On Apr 24 2026, 13:20 +0000, Filippo Bonazzi <fbonazzi at suse.de> wrote:
>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.

I vote for 1. I favour consistency here, and in my opinion 
<num><command> should be equivalent to <command> repeated <num> times.


-- 
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5390 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20260424/17637a74/attachment.bin>


More information about the neomutt-devel mailing list