Commit Graph

512 Commits (florian.dehau/layout)
 

Author SHA1 Message Date
Florian Dehau c64d754f88 feat(layout): add support for multiple weighted constraints by chunks 3 years ago
Christian Visintin 3797863e14
chore: add termscp to list of apps using tui (#510) 3 years ago
Florian Dehau 7870793b4b Release v0.16.0 3 years ago
Florian Dehau a7c21a9729 fix(widgets): avoid offset panic in `Table` and `List` when input changes 3 years ago
Florian Dehau 914d54e672 chore: bump crossterm to 0.20 3 years ago
Florian Dehau a68e38e59e fix(table): use `Layout` in table column widths computation 3 years ago
Florian Dehau e870e5d8a5 feat(layout): add private option to control last chunk expansion 3 years ago
Deepu K Sasidharan 29387e785c Add battleship.rs 3 years ago
Florian Dehau 8eb6336f5e refactor(widgets): remove iter::repeat for blank symbols 3 years ago
Florian Dehau 34a2be6458 fix(widgets/chart): remove panics with long axis labels 3 years ago
Florian Dehau fbd834469f doc(widgets/clear): clarify usage of clear 3 years ago
Florian Dehau 8da5f740af refactor(examples): show more use case in gauge example 3 years ago
Florian Dehau 38dcddb126 fix(widgets/gauge): apply label style and avoid overflow on large labels 3 years ago
Phillip Cloud 92948d2394 chore: add minesweep to list of apps using tui-rs 3 years ago
orhun a3a0a80a02 docs: add gpg-tui to the "apps using tui" list 3 years ago
jmrgibson a5f7019b2a
doc: fix minor grammatical errors (#489)
A missing "and" after "an" (which I do all the time) and some tense clarification.
3 years ago
Moritz e05b80cec1
doc: fix typos in comments. (#486) 3 years ago
Florian Dehau 23d5fbde56 refactor(examples): remove exit key from Events handler
The thread spawned by `Events` to listen for keyboard inputs had knowlegde of
the exit key to exit on its own when it was pressed. It is however a source of
confusion (#491) because the exit behavior is wired in both the event handler
and the input handling performed by the app. In addition, this is not needed as
the thread will exit anyway when the main thread finishes as it is already the
case for the "tick" thread. Therefore, this commit removes both the option to
configure the exit key in the `Events` handler and the option to temporarily
ignore it.
3 years ago
Oleks (オレクス) a346704cdc
feat(block): add option to center and right align the title (#462)
* Added ability to set title alignment, added tests, modified blocks example to show the feature

* Added test for inner with title in block

* Updated block example to show center alignment

* Formatting fixed

* Updated tests to use lamdas and be more concise. Updated title alignmnet code to be more straightforward and have correct behavior when placing title in the center without left border
3 years ago
Andrew Chin 24396d97ed doc: Add doctests that shows how Text can be created from Cow<str> 3 years ago
Andrew Chin 703e41cd49 feat(Text): Add a From<Cow<str>> impl for Text 3 years ago
Florian Dehau 975c4165d0 chore: fix clippy warnings 3 years ago
Arijit Basu dbf38d847a Add xplr to the "apps using tui" list
`xplr` is a hackable TUI file explorer.
3 years ago
Florian Dehau 91a2519cc3 chore: update links to examples in README
Links now include the fully qualified domain as well as the version.
This will make them work in docs.rs and make sure readers are looking at code which is consistent with the latest version available.
3 years ago
Alexandru Scvortov a1c3ba2088
fix: actually clear buffer in TestBackend::clear (#461) 3 years ago
Alexandru Scvortov d47565be5c
fix: actually clear buffer in TestBackend::clear (#461) 3 years ago
Florian Dehau 1028d39db0 chore: improve contributing guidelines
* Improve issue templates and make them mandatory.
* Improve CONTRIBUTING.md.
* Add template for pull requests.
3 years ago
Deepu K Sasidharan b250825c38
Add kdash to apps using this section (#469)
chore: add `kdash` to apps using `tui`
3 years ago
Florian Dehau 90a6a8f2d6 Release v0.15.0 3 years ago
Florian Dehau 414386e797
chore: update `rand` to 0.8 (#472) 3 years ago
Joey Ezechiëls 3a843d5074
fix(test): remove compile warning in TestBackend::assert_buffer (#466) 3 years ago
Luc Perkins 4e76bfa2ca
chore: add Vector to list of apps using tui (#452)
Signed-off-by: Luc Perkins <luc@timber.io>
3 years ago
Simas Toleikis 8832281dcf Update crossterm to 0.19. 3 years ago
Florian Dehau 853f3d9200 feat(terminal): add a read-only view of the terminal state after the draw call 3 years ago
Florian Dehau 67e996c5f4 feat(examples): add third tab to demo to show colors 3 years ago
Florian Dehau f09863faa0 Release v0.14.0 3 years ago
Florian Dehau eb1e3be722 fix(widgets/block): make Block::inner return more accurate results on small areas 3 years ago
Sagie Gur-Ari 4ec902b96f
chore: make run-examples available on all platforms (#429)
* Make examples available for all platforms
* limit windows to crossterm_demo only and make q exit demos work
3 years ago
Vadim Chekan 74243394d9
fix(widgets/table): draw table header and border even if rows are empty (#426) 3 years ago
Florian Dehau e7f263efa7 chore(ci): fix cargo-make cache on windows runner 3 years ago
Florian Dehau 0991145c58
chore(ci): simplify ci workflow (#428)
* chore(ci): simplify ci workflow

* use more up to date action
* restrict actions allowed to run
* cache cargo-make
3 years ago
Florian Dehau 01d2a8588a chore(ci): reduce the number of triggered jobs 3 years ago
Florian Dehau 45431a2649 chore: add first contributing guidelines 3 years ago
Florian Dehau 0b78fb9201 chore: use `cargo-make` in the CI as well 3 years ago
Florian Dehau 9cdff275cb chore: replace `make` with `cargo-make`
`cargo-make` make it easier to provide developers of all platforms an unified build workflow.
3 years ago
Arne Beer 77c6e106e4
doc(examples): Add comments to "list" example and fix list direction (#425)
* Add docs to list example and fix list direction

* List example: review adjustments and typo fixes
3 years ago
Florian Dehau efdd6bfb19 feat(tests): add tests covering new table features 4 years ago
Florian Dehau 117098d2d2 refactor(examples): add missing margin at the bottom of the header of table in the demo 4 years ago
Florian Dehau f933d892aa chore: update CHANGELOG 4 years ago
Florian Dehau 5ea54792c0 refactor(widgets/table): more flexible table
- control over the style of each cell and its content using the styling capabilities of Text.
- rows with multiple lines.
- fix panics on small areas.
- less generic type parameters.
4 years ago