Mini-Me
An embeddable, customizable, inline text-editor based on crossterm
.
╭─── Input Prompt
1 │ hello there
2 │ this is a simple prompt
3 │ thats multiline and decent enough
4 ┃ _
╰─── Lines: 4 Chars: 70 Ln: 3, Col: 0
Features
- Simple, intuitive, and embeddable.
- Customize header, footer, and or margin gutters.
- Preset styles are unstable.
- Range selection.
- (Unstable) Clipboard support.
Binary Installation
minime
can be used as a CLI. The best way to install it is using:
The binary can be used by invoking minime -h
.
Default Controls
- Arrow keys work as expected.
- Home, end, delete, Tab and backtab mirrors VSCode behavior.
- Shift-arrow keys create a selection range.
Esc
orEnter
on the last empty line to close and submit the prompt.- Control-X/C/V clipboard support is unstable.
Usage
Basic Setup
This is the most basic setup available.
use ;
Advanced
You can lock stdout()
or stderr()
to get better performance. You can also
customize several settings in the renderer.
use ;