A tiny terminal text editor built with Textual
Project description
tini-editor 📝
tini is a minimal, terminal-based text editor built with Python's curses module. It's inspired by nano, but written in Python and designed for simplicity and speed.
✨ Features
- Open and edit any text file from the terminal
- Keyboard shortcuts:
Ctrl+S– SaveCtrl+Q– Quit (prompts to save if file is modified)Ctrl+Z– UndoCtrl+Y– RedoEnter– New lineBackspace– Delete character to the leftDelete– Delete character to the rightArrow keys– Move cursor
- Line numbers
- Undo/Redo history (cleared on save or exit)
- Automatic scrolling for both vertical and horizontal movement
- If the file doesn’t exist, it will be created when saved
🚀 Installation
pip install tini-editor
🧑💻 Usage
tini <filename>
Example:
tini notes.txt
📦 Development Setup
Clone the repo and install dependencies:
git clone https://codeberg.org/yourusername/tini-editor.git
cd tini-editor
pip install -e .
Run locally:
python -m tini.app <filename>
🗺️ Planned Features
- Syntax highlighting for popular languages
- Copy, cut, and paste support
- Text selection and highlighting
- Search and replace
- Configurable tab width and indentation
- Mouse support (where available)
- Customizable color themes
- Status bar with file info and cursor position
📄 License
This project is licensed under the MIT License.
🙏 Acknowledgments
- Built with curses
- Inspired by
nano, but even tinier
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tini_editor-1.2.2.tar.gz.
File metadata
- Download URL: tini_editor-1.2.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98f5e9b7379c9392b451014d5cf03f296b2a5030a673e569ee2d8a25986494c6
|
|
| MD5 |
1ba776dc411ed4e95f1c14b0cd2f14ee
|
|
| BLAKE2b-256 |
f042f12c33f990b6b4ad957f1a22712234bc6bc8c67f86caf4cdc1df458694d4
|
File details
Details for the file tini_editor-1.2.2-py3-none-any.whl.
File metadata
- Download URL: tini_editor-1.2.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dce9459608c71c61c9bfbe5ba5771cee59073dfe2f25c5d620d9890d3a7b44c3
|
|
| MD5 |
b09c9986f1311e1cf485e04ae6a81453
|
|
| BLAKE2b-256 |
867efbfa93c3565fd7eb82a16cf09de49dbca32d305dced3b8a9aec9934ce6d1
|