7 releases

0.2.5 Jun 26, 2023
0.2.4 Jun 25, 2023
0.1.0 Jun 18, 2023

#435 in Command-line interface

Download history 3/week @ 2024-02-25 91/week @ 2024-03-31

91 downloads per month

MIT license

16KB
343 lines

Crate Status Docs Status

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.

Documentation

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

Screenshot_20230623_210129 Screenshot_20230623_210208 Screenshot_20230623_210222 Screenshot_20230623_210242 Screenshot_20230623_210306

Dependencies

~7–17MB
~196K SLoC