3 ms·
I love the ability to record a macro, I use it all the time. But unfortunately only one macro can live in memory at any one time. I was hoping for the ability
by tpoacher 6y ago
I love the ability to record a macro, I use it all the time. But unfortunately only one macro can live in memory at any one time.
I was hoping for the ability to record a macro, and then 'save' it somewhere for future reuse (possibly by binding a shortcut to it).
The link you point to seems very interesting to me for this reason. If that means what I think it means, then that is a good workaround for me, so I wanted to make sure: can you bind a shortcut to a string which uses ansi sequences to simulate keystrokes, and something like, e.g. "^R" to simulate pressing control+R?
If that's the case, while I cannot "record and save" per se, I could still use this technique to bind a key to a series of keystrokes, like I would with a macro inside the editor.
- marcodiego 6y agoYes you can use ansi use pre-defined macros to fire key combos. Edit your .nanorc and bid a sequence to a key (like in the given example). To specify combos, press alt+v then hit the key combo you desire.