Metadata-Version: 2.4
Name: ascii-pen
Version: 0.1.1
Summary: A minimalist terminal text editor with Python syntax highlighting, built on the ascii_colors TUI.
Author: ParisNeo
License: MIT
Keywords: tui,editor,terminal,syntax-highlighting,ascii-colors
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Text Editors
Classifier: Topic :: Terminals
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ascii_colors
Dynamic: license-file

# pen

A minimalist terminal text editor with live Python syntax highlighting, built
on the [`ascii_colors`](https://pypi.org/project/ascii_colors/) TUI framework.

## Install

```bash
pip install ascii-pen
```

Or, from a checkout of this directory:

```bash
pip install -e .
```

## Usage

```bash
pen                     # start with an empty untitled document
pen path/to/file.py     # open an existing file, or create a new one
```

## Controls

| Key                               | Action                                    |
| --------------------------------- | ----------------------------------------- |
| Arrow keys, Home, End, PgUp, PgDn | Move the cursor                           |
| Enter, Backspace, Delete          | Edit                                      |
| Ctrl+S                            | Save (prompts for a path if untitled)     |
| Ctrl+O                            | Open another file                         |
| Ctrl+Q                            | Quit                                      |

## Features

- Live Python syntax highlighting (keywords, strings, numbers, comments,
  builtins).
- Line-number gutter with the current line highlighted.
- Vertical and horizontal scrolling driven by the cursor.
- Wide-character aware rendering.
- Modal file dialogs (Save As / Open) built on `App.push_modal`.

## License

MIT
