When I originally started hacking macros, it was very much:
- create code that does $X when run
- bind macro to some unused keybinding
- try and remember what that key-binding was the next time I need the macro.
A particularly astonishing example of this has been playing out over the last few weeks on the Komodo forums:
Komodo user Stan has created an amazing monster of a macro that auto-completes html and XML tags. When he first posted it, the macro was pretty straightforward in how it worked, but also vey sophisticated in how it executes. Instead of being some chunk of Code that triggers on-demand, Stan’s instead executes when Komodo starts and listens for key-press events of certain types while you are editing. The upshot of this is that Stan’s tag completion macro fundamentally alters how Komodo’s editor behaves, and manages to tie in not only close-tag completion, but Abbreviations supports as well. Very cool.