Metadata-Version: 2.1
Name: dedlin
Version: 1.12.0
Summary: Line editor, edlin clone with many improvements
Home-page: https://github.com/matthewdeanmartin/dedlin
License: MIT
Keywords: editor,edlin,line editor
Author: Matthew Martin
Author-email: matthewdeanmartin@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: webapi
Requires-Dist: art
Requires-Dist: docopt-ng
Requires-Dist: fastapi ; extra == "webapi"
Requires-Dist: html2text
Requires-Dist: icontract
Requires-Dist: pydantic
Requires-Dist: pygments
Requires-Dist: pyspellchecker
Requires-Dist: pywin32 ; sys_platform == "win32"
Requires-Dist: questionary
Requires-Dist: requests
Requires-Dist: rich
Requires-Dist: textstat
Requires-Dist: uvicorn ; extra == "webapi"
Project-URL: Bug Tracker, https://github.com/matthewdeanmartin/dedlin/issues
Project-URL: Change Log, https://github.com/matthewdeanmartin/dedlin/blob/main/CHANGES.md
Project-URL: Documentation, https://github.com/matthewdeanmartin/dedlin
Project-URL: Repository, https://github.com/matthewdeanmartin/dedlin
Description-Content-Type: text/markdown

# 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.

```bash
pip install dedlin
```

## Usage
Launch and edit file_name.txt
```bash
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
- [User Manual](https://github.com/matthewdeanmartin/dedlin/blob/main/docs/user_manual.md)
- [Developer roadmap](https://github.com/matthewdeanmartin/dedlin/blob/main/docs/TODO.md)
- [Prior Art](https://github.com/matthewdeanmartin/dedlin/blob/main/docs/prior_art.md)

