Text editor component for curses
Reason this release was yanked:
Dependency version pinning mistake
Project description
PunkEditor
Consider vi as Beethoven, Emacs as Charlie Parker, and VS Code as Rush. In mom's garage, on cheap instruments, a band of teens rehearses a few hastily-scribed 3-chord songs for their first gig. Meet PunkEditor.
Logo by Freepik
Installation
For command line version only: pipx install punkeditor
To use the code library: pip3 install punkeditor
(or add to your requirements.txt
etc).
Use
We only have a prototype at the moment. It's a variation on the curses TextBox class. If you seek word wrapping, or even character mapping, or copy/paste, or basically anything, look elsewhere.
The command is:
punke
Optionally, provide --width
and --height
options for an edit box smaller than the full terminal window.
The editor will open with an empty buffer. Try keys:
Key | Action |
---|---|
<arrows> | move |
ctrl-a | left end of line |
ctrl-e | right end of line |
ctrl-d | delete character |
ctrl-k | delete remainder of line |
<backspace> | backspace |
Hit Tab to quit. The command will dump the contents of the buffer to the output after quitting.
We're still missing the concept of a newline character. The editor ignores the Return key, and only inserts a space between output
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
Hashes for punkeditor-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42e357d70743963adfb0f4dc51ff7980c65a1da2008f541aea6e1fbaee67c68d |
|
MD5 | a14ccdba5513400ca238b76777e0b527 |
|
BLAKE2b-256 | 12be82baefba275b456d528192f0bc9e56b12ec1e75ccf9edf767cd2259d2407 |