Is there a way to do multiple playback of a macro, and ideally to the end of the file?
Playback Macro to the end of file
You can generally use multiple selections to do this:
Press Ctrl+A to select the entire file
Press Ctrl+Shift+L to split the selection into n selections, one per line
Press home to move each selection to just the beginning of the line
Playback the macro
Glad you like it
You generally don’t need macros at all with multiple selection, it’s often simpler just to make the selections on the lines you’re interested in, and do the editing directly.
[quote=“jps”]Glad you like it
You generally don’t need macros at all with multiple selection, it’s often simpler just to make the selections on the lines you’re interested in, and do the editing directly.[/quote]
Yup, I use macros more for repeated stuff that requires more than 3 steps, or for shortcuts to stuff just to be lazy
Multiselections are a God’s send
I do not think this would work in case you have a task like deleting alternate lines…
so don’t use a macro for it - a simple regex or Python plugin would suffice…
Find: (?:\G.*$\n(.*$\n))+
Replace: $1
Though there are workarounds for some operations, sometimes Macros to record a sequence of operations together with a ‘Repeat’ function (x times or to EOF) are the best way. I’ve found many situations where multi-cursors don’t fit and I usually have to fire another editor in such cases.
This would be especially useful if macros could record everything - like Find for example