Counts for commands
Document which commands accept a count
From the usage and keymap pages of the documentation, it is unclear which commands accept counts and which ignore them. I think it would be good to document exactly which commands do / will accept a count, either as a summary or per-item in the keymap.
As an example, when writing this issue I was under the impression that Alt-( and Alt-( did not accept a count, and almost suggested something like the current behaviour as an improvement, leading me to discover the current behaviour.
Allow more commands to accept a count
Some commands do not currently accept a count, but could benefit from allowing repetition. (this list may be incomplete, and I'm keen to promote discussion what could/should be changed):
ms- to allow surrounding with multiples of a character, e.g.ms*ms*becomes2ms*. However I realise this would be inconsistent with how counts work on the othermsubmode commands..- to allow repeating arbitrary changesAlt-.- to allow repeating arbitrary relative motionsAlt-,- to allow removing series of cursors
Not sure if any of those would be worth implementing, but here are some commands in vim that take counts, that do not in helix:
- Counts with
i/I/a/A, cause the additions to be repeated when you hit escape. - Counts with
dandcdelete or change the next n characters if there is no selection, but ignore the count if there is a selection. Withhelix's select-act model it seems less obvious how those should work.
Possible improvement to counts on transposition: #2478
count also doesn't work for: gn & gp