Idle Align - Emacs Align by Regular Expression as an IDLE Extension
GPL-3.0 License
Python IDLE extension to align code by a regular expression
This IDLE extension allows you to align a block of code by a regular
expression selecting the text you would like to have aligned and then
running Format -> Align Selection or Alt+a
on default.
If space wrap
is enabled in the dialog that appears, regular expression
match in selected text will have a single space added on both sides. If
disabled, this will not happen. This is very helpful for making large
blocks of assignment statements pretty or for making comments for
your ruff rules in pyproject.toml all match up.
pip install idlealign[user]
.idleuserextend; idlealign
. You should see the followingConfig should be good! Config should be good!
.Options
-> Configure IDLE
-> Extensions
.ZzDummy
there should be andidlealign
. This is where you can configure ifpip install idlealign
.idlealign
. You will likely see a message sayingidlealign not in system registered extensions!
. Run the commandidlealign
. This time, you should see the followingConfig should be good!
.Options
-> Configure IDLE
-> Extensions
.ZzDummy
there should be andidlealign
. This is where you can configure if