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