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
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.11.0.tar.gz
(23.8 kB
view details)
Built Distribution
dedlin-1.11.0-py3-none-any.whl
(28.0 kB
view details)
File details
Details for the file dedlin-1.11.0.tar.gz
.
File metadata
- Download URL: dedlin-1.11.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1d986fa2a1f0a81d3f8be289c2ebfc43716ac90e1fd9db0bfbfde046116694 |
|
MD5 | 4a320abc602f71209635419caa3f7ed8 |
|
BLAKE2b-256 | 52b735792534df24e615c047c86a16bedb06a25eab11040da408d2ee838d1fea |
File details
Details for the file dedlin-1.11.0-py3-none-any.whl
.
File metadata
- Download URL: dedlin-1.11.0-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110e400d5226c5ec7c68cf2be5e4e2d72e604c57227c4bf8d973c5f5d661e398 |
|
MD5 | a2dcb11e93633776ae930a18e13a9ebe |
|
BLAKE2b-256 | 221a29d6fa196233b4ea78c4b5d2214aaeb73ee2a75505fb8a30f4a1760b0737 |