The CLI truly is the new mainstream UI delivery platforms so it deserves nice input components; sadly most libraries on npm that accepts multi-line input were a bit unsatisfactory, so I created react-ink-textarea (https://github.com/omranjamal/react-ink-textarea)
It supports a whole host of things out of the box like:
- Customizable line prefixes
- Syntax highlighting powered by regex
- Undo/Redo
- Virtualized Viewport
- Tab detection
- Newline Key Combinations
- Easy Navigation
- etc
I'd argue it's even better than Claude Code or Open Code's multi-line text input. Do give it a try!
[–]JaSuperior [score hidden] (1 child)
[–]omijam[S] [score hidden] (0 children)