A component for bubbletea.
Crops view from string given position and size.
With ANSI SGR support.
For Usage checkout examples
Keymaps are inside the model struct, can be changed if you want to.
Default keymaps:
jmove down 1 linekmove up 1 linectrl+dmove down half pagectrl+umove up half pagehmove left 1 columnlmove right 1 columnHmove left half rowLmove right half row
- if not enough place for a char width over 1, the char will not display and replaced to (multiple) white space.
TAB(\t)will be replaced by 4SPACE( ), and it's hard coded, not sure ifprocessRuneshould be available to access from the outside
So, this is actually the first time i use go to make stuffs for others to use.
Any suggestion is welcomed here
