eTextEdit, a lightweight text editor built on prompt-toolkit
Project description
# eTextEdit Extensible Text Editor; built with prompt toolkit
Originally a simple text editor created by Jonathan Slenders Source: https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/examples/full-screen/text-editor.py
Modified and Enhanced by Eliran Wong: * added file and clipboard utilities * added regex search & replace feature * added key bindings * added handling of unasaved changes * added dark theme and lexer style * support stdin, e.g. echo “Hello world!” | python3 eTextEdit.py * support file argument, e.g. python3 eTextEdit.py <filename> * support plugins (forthcoming)
eTextEdit repository: https://github.com/eliranwong/eTextEdit
# Screenshots
![search_replace](https://github.com/eliranwong/eTextEdit/assets/25262722/c7a564ce-2e3c-4913-8210-52e259545044?raw=True)
# Download
> pip install –upgrade etextedit
# Usage
To launch eTextEdit:
> etextedit
To open a text file, e.g. test.txt:
> etextedit test.txt
To pipe in a text string, e.g. “Hello World!”:
> echo “Hello World!” | etextedit
To append a file, e.g. test.txt, with a text string, e.g. “Hello World!”:
> echo “Hello World!” | etextedit test.txt
# Key Bindings
escape + m: toggle menu
control + k: help
control + q: quit
control + a: select all
escape + a: deselect all
control + c: copy
control + v: paste
control + x: cut
control + z: undo
control + i: insert spaces
control + f: find
escape + f: clear i-search highlights
control + r: find & replace
control + l: go to line
control + d: delete
control + n: new file
control + o: open file
control + s: save file
control + w: save as file
## Navigation
escape + a: go to beginning of document
escape + z: go to end of document
escape + b: go to beginning of current line
escape + e: go to end of current line
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
Built Distribution
File details
Details for the file etextedit-0.7.tar.gz
.
File metadata
- Download URL: etextedit-0.7.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c7e62b5d6a0edcf64792f51dea50bcae60f4f748801700ebb1448073fd8bb3 |
|
MD5 | b814db8f4da86b46b7a77668f2a498d7 |
|
BLAKE2b-256 | 32bb8a619e6c921d0223c1de67c0057f741b92f74c48bb61c98bcaee5252bf9d |
File details
Details for the file etextedit-0.7-py3-none-any.whl
.
File metadata
- Download URL: etextedit-0.7-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f90efb0db5dc777342175c4f1da0440b70e884a8748d9f826617b98f79bb0f |
|
MD5 | 1b66fc16cfb6ed89a82d7744989a55bf |
|
BLAKE2b-256 | 60d77b4ac2dc8c271232ded7f1ea97f99a6bf228d3b7ebb2577e518df54ba424 |