I’ve seen one topic in feature requests, Repeat Last Command, but the two plugins mentioned don’t appear to do what I’m looking for, and the one personal tool no longer exists on GitHub.
While there is “Redo”, all that does is cycles back a command/edit that was removed by Undo.
What I’m looking for is a “Repeat” command, akin to that found in Office or LibreOffice, which can then be hooked to a hotkey for easy repetition of a formatting command to different selections that are not otherwise easily targetable by a more global find & replace. And I can’t seem to find that in either core or community plugins, at least not with the search terms I’m using.
For instance, I have a document that I have written out without any major formatting, but it has sections that have headers, but no heading format has been applied to them (or they are inconsistent).
I select the first header, apply Heading2 format to it, now I go and select the next header and simply hit a hotkey assigned to “repeat”, and it applies the last explicit command (in this case, Heading2) to the selection, and I select the next, and hit the hotkey, ad infinitum, until I use some other command
This allows me to focus on a singular editing function without having to either set a hotkey for every potential formatting function, or having to constantly move the mouse & select multiple commands to repeat one format multiple times.
Alternately, is there a way to multi-select text, akin to Ctrl-select multiple non-adjacent pieces of text, such that one command can then be used to apply a format to all of them?