Line editor, edlin clone with many improvements
Project description
dedlin
Dedlin is an interactive line-by-line text editor and a DSL. Line editors suck, but they are easy to write and the DSL is mildly interesting.
This is not intended to be backwards compatible with anything. I have made
changes to make the app less user hostile, but there is a --vim_mode
where all help, warnings, feedback will be suppressed.
Installation
Requires python 3.11 or higher. Someday I'll write a standalone installer for it.
pip install dedlin
Usage
Launch and edit file_name.txt
python -m dedlin file_name.txt
Command line help
> python -m dedlin --help
Dedlin.
An improved version of the edlin.
Usage:
dedlin [<file>] [options]
dedlin (-h | --help)
dedlin --version
Options:
-h --help Show this screen.
--version Show version.
--macro=<macro> Run macro file.
--echo Echo commands.
--halt_on_error End program on error.
--promptless_quit Skip prompt on quit.
--vim_mode User hostile, no feedback.
--verbose Displaying all debugging info.
Sample session
_ _ _ _
__| | ___ __| || |(_) _ _
/ _` |/ -_)/ _` || || || ' \
\__,_|\___|\__,_||_||_||_||_|
Editing /home/mmartin/github/dedlin/sample.txt
? * 1i
1 INSERT
Control C to exit insert mode
? 1 : cabbage
? 2 : bread
? 3 : carrots
? 4 : ghost peppers
? 5 : coffee
? 6 : tortillas
? 7 :
Exiting insert mode
? * SORT
SORT
Sorted
? * LIST
1,6 LIST
1 : bread
2 : cabbage
3 : carrots
4 : coffee
5 : ghost peppers
6 : tortillas
? * EXIT
1,6 EXIT
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dedlin-1.12.0.tar.gz
(24.0 kB
view details)
Built Distribution
dedlin-1.12.0-py3-none-any.whl
(28.3 kB
view details)
File details
Details for the file dedlin-1.12.0.tar.gz
.
File metadata
- Download URL: dedlin-1.12.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a91b62859f0a407a6acab0c4a6a01f48ea93804c4172e4233bd3be12ed433f |
|
MD5 | 92943f64aef461b2a71f761c340fceac |
|
BLAKE2b-256 | e5c43be36c052e5e073e2f2774998e10caf98d2be3356491449130630549aea5 |
File details
Details for the file dedlin-1.12.0-py3-none-any.whl
.
File metadata
- Download URL: dedlin-1.12.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1a1919e4b18083a3f985bac2361ac34e6fbcd299d7b82c2cbd6aae8c664311 |
|
MD5 | d36f5f1017dcbd95424d05da084e5271 |
|
BLAKE2b-256 | c4f8d15edf85c1d7f921e661ea9b592e28e4f2f61592f8d4c825489207462069 |