pype

Python programmers editor

PyPE (Python Programmers Editor) is a lightweight but powerful
editor. Tools for the new and seasoned user alike are included
out of the box, including syntax coloring, multiple open documents
with tabs, per-document browsable source trees, and many others.

/usr/share/pype/macros/samples/readme.txt

Some of these macros contain possible failure conditions when running
macros. Copy them into your macros folder to discover what they are and
what to avoid.
Other macros offer additional functionality that some users may find
useful generally, or as an example of what can be done.