Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curlpipe/alinio
A library to assist in alignment and table generation in TUI applications
https://github.com/curlpipe/alinio
Last synced: about 1 month ago
JSON representation
A library to assist in alignment and table generation in TUI applications
- Host: GitHub
- URL: https://github.com/curlpipe/alinio
- Owner: curlpipe
- License: mit
- Created: 2022-02-19T00:38:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-19T13:36:59.000Z (almost 3 years ago)
- Last Synced: 2024-09-18T00:25:45.837Z (2 months ago)
- Language: Rust
- Size: 3.45 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alinio
> A library to assist in alignment and table generation in TUI applicationsThis library contains utilties to align text, and build tables.
It contains a very powerful table struct that allows creation of responsive, padded and
aligned tables that make creating complicated interfaces quite simple.## Installation
Go ahead and add in `alinio = "0"` into your `Cargo.toml` under `[dependencies]`.## Usage example
You can find a few examples under the documentation over on https://docs.rs/alinioI've made sure to properly document this library, but please let me know if you don't understand anything.
## Release History
* 0.2.1
* Made table rendering context aware, so that whitespace and columns don't weirdly change when scrolling
* 0.2.0
* Added `partial_render` function to allow for rendering only part of the table
* 0.1.1
* Fixed panic when there is not enough space to render the table when surround is `false`
* 0.1.0
* Inital releaseDistributed under the MIT license. See ``LICENSE`` for more information.