Skip to main content

Emacs Align by Regular Expression for IDLE

Project description

IDLEAlign

Python IDLE extension to align code by a regular expression

CI

pre-commit.ci status pre-commit

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)

  1. Go to terminal and install with pip install idlealign[user].
  2. Run command idleuserextend; idlealign. You should see the following output: Config should be good! Config should be good!.
  3. Open IDLE, go to Options -> Configure IDLE -> Extensions. If everything went well, alongside ZzDummy there should be and option called idlealign. This is where you can configure if idlealign is enabled or not.

Installation (Legacy, needs root permission)

  1. Go to terminal and install with pip install idlealign.
  2. Run command idlealign. You will likely see a message saying idlealign not in system registered extensions!. Run the command given to add lintcheck to your system's IDLE extension config file.
  3. Again run command idlealign. This time, you should see the following output: Config should be good!.
  4. Open IDLE, go to Options -> Configure IDLE -> Extensions. If everything went well, alongside ZzDummy there should be and option called idlealign. 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

idlealign-1.0.1.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idlealign-1.0.1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file idlealign-1.0.1.tar.gz.

File metadata

  • Download URL: idlealign-1.0.1.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for idlealign-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a19d424b5a9c67ac8c81d542579e85caed48f970d840d4d7bdb1ec967129df0c
MD5 8f0e489f9a1bac27532de4bed6f7133f
BLAKE2b-256 5f0ba9c7f3344c45bfbd41a5fd3d7ce8cbc383f3e06a5daa1a5b6ce2b40c275d

See more details on using hashes here.

Provenance

The following attestation bundles were made for idlealign-1.0.1.tar.gz:

Publisher: python-publish.yml on CoolCat467/idlealign

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file idlealign-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: idlealign-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for idlealign-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f9e930e65cf64fe358034cd8400e25d54f8bd751a688cd0e5eb40eb1388c45f
MD5 0f97bc53384f1e936834ebd4f074e16e
BLAKE2b-256 353267d560c92ed4607886b22fa6dfc7a528ba778bf9e7303bc77c0584a42eb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for idlealign-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on CoolCat467/idlealign

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page