Emacs Align by Regular Expression for IDLE
Project description
IDLEAlign
Python IDLE extension to align code by a regular expression
What does this extension do?
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.
Installation (Without root permissions)
- Go to terminal and install with
pip install idlealign[user]
. - Run command
idleuserextend; idlealign
. You should see the following output:Config should be good! Config should be good!
. - Open IDLE, go to
Options
->Configure IDLE
->Extensions
. If everything went well, alongsideZzDummy
there should be and option calledidlealign
. This is where you can configure if idlealign is enabled or not.
Installation (Legacy, needs root permission)
- Go to terminal and install with
pip install idlealign
. - Run command
idlealign
. You will likely see a message sayingidlealign not in system registered extensions!
. Run the command given to add lintcheck to your system's IDLE extension config file. - Again run command
idlealign
. This time, you should see the following output:Config should be good!
. - Open IDLE, go to
Options
->Configure IDLE
->Extensions
. If everything went well, alongsideZzDummy
there should be and option calledidlealign
. This is where you can configure if idlealign is enabled or not.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file idlealign-1.0.0.tar.gz
.
File metadata
- Download URL: idlealign-1.0.0.tar.gz
- Upload date:
- Size: 51.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c19882ee34f8dd793c8b809d699aa3158f71452cf1115c89ab146c76731e88ff |
|
MD5 | 186788c7df4b30527f17571a7858a20d |
|
BLAKE2b-256 | dfe0f14855684bdab23435b3716c02e5b7a4d6ed0292948805714f9f1023eb19 |
File details
Details for the file idlealign-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: idlealign-1.0.0-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d546a40b3f38f435304cec62852ae7f1b7a1ac1be76b47be7bd688ecc3d305 |
|
MD5 | 9035775e588c9806c510cbe20de4484e |
|
BLAKE2b-256 | c8b8fc7c3f106968b6b9d7e37bd8f08327999773ee3d0638f1a555a7e0573949 |