Skip to main content

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.

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


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.10.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

dedlin-1.10.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file dedlin-1.10.0.tar.gz.

File metadata

  • Download URL: dedlin-1.10.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dedlin-1.10.0.tar.gz
Algorithm Hash digest
SHA256 75f78b60acec0c603e7735bc58b1fe0bb61b373c9b8aaa9e3bf4eaeb6998ae04
MD5 9752dccb99b45c9eeb1f6595ca2a85ae
BLAKE2b-256 c9e7a8917fab4350cb8a5f8d7cab5cd9359a236f4723cd530b707d7bf043a0bb

See more details on using hashes here.

File details

Details for the file dedlin-1.10.0-py3-none-any.whl.

File metadata

  • Download URL: dedlin-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for dedlin-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecfd448c325f2f8f7a871b36d233883c364519e7ec1f50be060baa73a63c4325
MD5 e8ff550f485b75e71f601ffa4ad968b4
BLAKE2b-256 d4a1365f92f83b09e48d143028f419acd4d7b10ca4a1d5c2fefa4e48edc440a8

See more details on using hashes here.

Supported by

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