Crate edtui

source ·
Expand description

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:
KeybindingDescription
iEnter Insert mode
vEnter Visual mode
h, j, k, lNavigate left, down, up, and right
w, bMove forward or backward by word
xDelete the character under the cursor
DelDelete the character left of the cursor
u, rUndo/Redo last action
Insert Mode:
KeybindingDescription
EscReturn to Normal mode

For more keybindings and customization options, refer to the code.

Demo

Re-exports

Modules