Cursor-based text manipulation engine
Project description
cusorx Module
This is a lightweight text manipulation engine built around a cursor-based module.
Allows precise control over text editing operations.
Features
- Cursor Movement (forward, backword, word-based, char-based)
-Text selection (range, word, line, char)
-Insert / Replace / Delete operations
-Undo / Redo System
-Clipboard system (copy, cut, paste)
-Snapshots for debugging
-Chainable API design
installation
pip install cursor
Basic usage
import cursorx as cx
c= cx.Cursor("Hello world")
c.mov(6) # -> cursor now at w
c.select_word() # -> selects the word 'world'
print(c.selected_text) # world
c.replace_text("CursorX")
print(c.return_text) # > replaces world with CursorX
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 cursorx-2.0.1.tar.gz.
File metadata
- Download URL: cursorx-2.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7140cb4edcd9ff632dde2ece719e295c0e9111c377806c41037d2bc272d9756a
|
|
| MD5 |
c2899494559066277a47b1e614542250
|
|
| BLAKE2b-256 |
aa5a20e92984528075c2e58eec67c6454890868fce587804b026bd2668c5a64e
|
File details
Details for the file cursorx-2.0.1-py3-none-any.whl.
File metadata
- Download URL: cursorx-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15b531908d6ab4a1b213484e1a2ae53b6385148aa488da9c360b9fcf00a83f25
|
|
| MD5 |
50bc00eb3bf9d2aab055b8a8075a9306
|
|
| BLAKE2b-256 |
ac26be54b80b04bba0b454a75429fd7cd184691cce377ffbf5491d8eca940412
|