Expand description
Inline text editor for the TUI file explorer.
Provides a minimal, modal-free text editor that can open, display, edit, and
save plain-text files directly inside the terminal UI. Only files up to
[MAX_EDIT_FILE_SIZE] bytes are accepted — anything larger is rejected to
avoid freezing the terminal.
§Key bindings
| Key | Action |
|---|---|
| Arrow keys | Move cursor |
| Home / End | Jump to beginning / end of line |
| PgUp / PgDn | Scroll one page (20 lines) |
| Printable | Insert character at cursor |
| Enter | Split line at cursor |
| Backspace | Delete char before cursor / join lines |
| Delete | Delete char at cursor / join lines |
| Tab | Insert 4 spaces |
| Ctrl+S | Save to disk |
| Esc | Exit the editor |
Structs§
- Inline
Editor - A simple, single-file text editor that lives inside the TUI.
Enums§
- Editor
Action - Result of handling a key event in the inline editor.
Functions§
- render_
inline_ editor - Render the inline editor into the given area.