Python IDLE extension to reload the currently opened file from disk contents
Project description
IdleReload
Python IDLE extension to reload the currently opened file from disk contents.
What does this extension do?
This IDLE extension allows you to reload the currently open file from disk contents. For example, say you have run an auto-formatter like black on your code, but you still have an IDLE window open. Regularly, you would have to close the window and re-open the file to see the changes. This extension allows you to reload the file's contents from what is saved on disk without restarting IDLE.
Installation (Without root permissions)
- Go to terminal and install with the following command:
pip install idlereload[user]
- Run configuration update/check commands:
idleuserextend; idlereload
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, alongsideZzDummythere should be and option calledidlereload. This is where you can configure how idlereload works.
Installation (Legacy, needs root permission)
- Go to terminal and install with the following command:
pip install idlereload
- Run configuration update/check commands:
idlereload
You will likely see a message saying
idlereload not in system registered extensions!. Run the command
it tells you to add idlereload to your system's IDLE extension config file.
- Run command
idlereloadagain after modifying the system extension configuration file. This time, you should see the following output:Config should be good!. - Open IDLE, go to
Options->Configure IDLE->Extensions. If everything went well, alongsideZzDummythere should be and option calledidlereload. This is where you can configure how idlereload works.
Future Work
Maybe add support for asynchronously checking if we need to reload and display a header message like code context that disk version has changed.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idlereload-0.1.0.tar.gz.
File metadata
- Download URL: idlereload-0.1.0.tar.gz
- Upload date:
- Size: 47.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b38d1322db02850d73dc18cab840c9aa71b218f8404c6ac1c725d2f3733377c
|
|
| MD5 |
7c0257c324f4ca3d8f8a5d0fccd26690
|
|
| BLAKE2b-256 |
6c7554896fdc9f847c99fdb0261d54ae8cad6b637c82cd9b9b56ab70eacad1f0
|
Provenance
The following attestation bundles were made for idlereload-0.1.0.tar.gz:
Publisher:
python-publish.yml on CoolCat467/idlereload
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
idlereload-0.1.0.tar.gz -
Subject digest:
0b38d1322db02850d73dc18cab840c9aa71b218f8404c6ac1c725d2f3733377c - Sigstore transparency entry: 245846300
- Sigstore integration time:
-
Permalink:
CoolCat467/idlereload@826dae5bb6a881ade998244d03a3b10cc6801571 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CoolCat467
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@826dae5bb6a881ade998244d03a3b10cc6801571 -
Trigger Event:
release
-
Statement type:
File details
Details for the file idlereload-0.1.0-py3-none-any.whl.
File metadata
- Download URL: idlereload-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab969b69382d0c834700f792a521d22edb3fe4d945f55cb68e0416c66fed11d1
|
|
| MD5 |
ffc8c0896eca87096cf517356771fd9b
|
|
| BLAKE2b-256 |
8b5e902beaabb65251fc0b721595266cf8dc82550109dfaaec05f9241dadc996
|
Provenance
The following attestation bundles were made for idlereload-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on CoolCat467/idlereload
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
idlereload-0.1.0-py3-none-any.whl -
Subject digest:
ab969b69382d0c834700f792a521d22edb3fe4d945f55cb68e0416c66fed11d1 - Sigstore transparency entry: 245846303
- Sigstore integration time:
-
Permalink:
CoolCat467/idlereload@826dae5bb6a881ade998244d03a3b10cc6801571 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CoolCat467
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@826dae5bb6a881ade998244d03a3b10cc6801571 -
Trigger Event:
release
-
Statement type: