4 ms·
Control-x ( starts recording a macro Control-x ) stops recording a macro Control-x e replays the macro They're no more obscure than the rest of emacs (which
by joosters 9y ago
Control-x ( starts recording a macro
Control-x ) stops recording a macro
Control-x e replays the macro
They're no more obscure than the rest of emacs (which isn't a great starting point!) but everything comes down to keybindings in any text editor, you can map them to any key you want.
- omaranto 9y agoI prefer the more "modern" F3 and F4. They're not just shorter, they run slightly different commands that I find more useful.
- KirinDave 9y agoIt seems you've completely missed the point and in so doing have focused on the most trivial set of keybindings for macro usage. Why do you think this conversation is about keybindings? Who even mentioned them? Cool, you can start and record a macro. What does the temp macro do on this line? On a different line? Does your undo stack flip over or through the macro? How do you run the macro on lines with a specific suffix? Because macros inherently make a big blob of actions and turn them into a single action, they're inherently more obscure than multiple cursors. The funny part is of course that macros are dictated in emacs, not programmed. So what the multi-line cursor is doing is essentially showing you the results of a macro and letting you interactively work with it visually rather than deny you that option. Macros have uses, but Swift multi-line editing is by no means their strong suit.