7 releases
0.2.5 | Jun 26, 2023 |
---|---|
0.2.4 | Jun 25, 2023 |
0.1.0 | Jun 18, 2023 |
#477 in Command-line interface
36 downloads per month
16KB
343 lines
A reusable and mildly configurable TUI frontend library.
The library aims to provide a simple way of loading some data into a terminal interface with no frontend programming. It provides basic actions but it is possible to define custom keybindings too.
All the user needs to do is implement the Opts
trait with one mandatory method on a struct and pass it into the create_view
function.
An app I'm writing using the library
Since typing searches, it is not possible to define custom keybindings without modifiers.
Default keybindings
- <C-e>: Exit
- <C-d>: Scroll content down
- <C-u>: Scroll content up
- <C-j>: Select next dock item
- <C-k>: Select previous dock item
- <C-b>: Toggle dock
- <C-p>: Toggle popup
- Type to search.
Screenshots
Dependencies
~7–19MB
~202K SLoC