edtui-0.2.0 has been yanked.
edtui
EdTUI
Overview
EdTUI is a text editor widget for the Ratatui ecosystem. It is designed to provide a light-weight user experience inspired by Vim. Note that it's not intended to be a full fletched editor.
Features
- Vim-like keybindings and editing modes for efficient text manipulation.
- Normal, Insert and Visual mode.
Keybindings
EdTUI offers a set of keybindings similar to Vim. Here are some of the most common keybindings:
Normal Mode:
| Keybinding | Description |
|---|---|
i |
Enter Insert mode |
v |
Enter Visual mode |
h, j, k, l |
Navigate left, down, up, and right |
w, b |
Move forward or backward by word |
x |
Delete the character under the cursor |
Del |
Delete the character left of the cursor |
u, r |
Undo/Redo last action |
Insert Mode:
| Keybinding | Description |
|---|---|
Esc |
Return to Normal mode |
For more keybindings and customization options, refer to the code.
Demo
Features
- "arboard" (Enabled by Default): Utilizes the Arboard clipboard, allowing copy-paste operations between the system clipboard and the editor. If this feature is disabled, the internal clipboard is used, which only supports copying and pasting within the editor.
Roadmap
- Clipboard
- Support termwiz and termion
- Display line numbers
- Remap keybindings
- Soft-wrap lines
License: MIT