EdJoPaTo
a60eb5266b
refactor: simplify docs and LSP hints with names exactly as exported
2024-03-14 11:55:10 +01:00
EdJoPaTo
d5f3635613
build: v0.19.0
2024-02-26 21:12:44 +01:00
EdJoPaTo
a2f8100fe7
refactor!: remove get_identifier_without_leaf
...
remove as its no longer used either internally or in mqttui for some time.
Either its quickly implemented yourself or `Vec::pop()` does the job better.
2024-02-26 20:49:21 +01:00
EdJoPaTo
ed9a54a55a
feat(state)!: return true when something changed
2024-02-26 19:09:57 +01:00
EdJoPaTo
0a5c7d6cfb
refactor(example): move draw to App::draw
2024-02-26 18:09:26 +01:00
EdJoPaTo
15f05be46c
fix: do not move offset on unselect
2024-02-26 18:05:17 +01:00
EdJoPaTo
d3386fe016
build: v0.18.0
2024-02-24 18:39:38 +01:00
EdJoPaTo
83dd95b87f
fix(scrollbar): calculate area margin from inside and outside of border areas
2024-02-24 18:39:34 +01:00
EdJoPaTo
9a0b26f5c9
refactor(scrollbar): use variable names over unnamed pair content
2024-02-24 11:21:48 +01:00
EdJoPaTo
49bfa7e5f0
refactor(example): restructure import / use
2024-02-24 11:18:09 +01:00
EdJoPaTo
b31a599a37
refactor(scrollbar): experimental prefix over feature
...
A feature flag has quite some complexity with it and is annyoing.
Write a rustdoc comment about it and be clear about it being experimental and include it as is.
2024-02-24 11:08:30 +01:00
EdJoPaTo
98b53e448f
fix(scrollbar): workaround overscroll
2024-02-24 03:09:58 +01:00
EdJoPaTo
ce3b2b530e
fix(scrollbar): change margin to individual start/end
2024-02-24 03:09:58 +01:00
EdJoPaTo
86458ffc39
perf: prefer into_iter() over clone()
2024-02-24 03:09:58 +01:00
EdJoPaTo
4130a800b8
perf: get item.height() less often on render
2024-02-24 03:09:58 +01:00
EdJoPaTo
2781a2d146
refactor: deconstruct Flattened for more speakable variables
2024-02-24 03:09:58 +01:00
EdJoPaTo
4e00f07c74
fix(scrollbar): use current height rather than available height
...
with item height = 1 its the same but with height != 1 its not
2024-02-24 00:04:39 +01:00
EdJoPaTo
85bfecc568
fix!: remove start_corner
...
While is somewhat works its not used and doesnt seem that useful
2024-02-23 23:51:37 +01:00
EdJoPaTo
9e93b3ecd1
fixup! feat: support for a scrollbar
2024-02-23 23:42:41 +01:00
EdJoPaTo
355d18bf41
ci: add workflow_dispatch for manual trigger
2024-02-23 23:29:28 +01:00
EdJoPaTo
ed9d91f58c
fix(example): show state in bottom title
2024-02-22 19:41:23 +01:00
EdJoPaTo
8806c105ec
docs(readme): link to ratatui and mention use case of mqttui
2024-02-22 19:32:23 +01:00
EdJoPaTo
92466615b1
feat: support for a scrollbar
2024-02-22 19:20:27 +01:00
EdJoPaTo
27cf513eeb
feat(example): add more items
...
longer tree to play with
2024-02-22 19:05:31 +01:00
EdJoPaTo
ec359d513b
refactor: use multi character variable name
2024-02-22 18:38:52 +01:00
EdJoPaTo
5d750b13b0
build(lint): warn on clippy::pedantic or clippy::nursery
2024-02-22 18:32:46 +01:00
EdJoPaTo
766d4f1d58
refactor: one struct per file
2024-02-22 18:32:35 +01:00
EdJoPaTo
3cafeaef0a
ci: update actions
2024-02-03 03:26:49 +01:00
EdJoPaTo
5104ec582e
build: v0.17.0
2024-02-03 03:16:45 +01:00
EdJoPaTo
01726df5ed
feat: scroll independently from selection
2024-02-03 02:24:44 +01:00
EdJoPaTo
14b9e42cb2
refactor(example): merge into single file
2024-02-03 02:15:36 +01:00
EdJoPaTo
4cbe932332
build: update to ratatui 0.26
2024-02-03 01:05:47 +01:00
EdJoPaTo
969b78ab06
feat: select_*() returns whether it changed
2024-01-26 05:24:17 +01:00
EdJoPaTo
632a95f853
perf(key_left): remove clones
...
Selection access is mutable already. Operate on it directly.
2024-01-26 05:22:20 +01:00
EdJoPaTo
d1a241266f
perf!: flatten -> TreeState::flatten
...
This allows to use internals without cloning
BREAKING CHANGE: flatten is not directly available anymore
2024-01-15 15:50:06 +01:00
EdJoPaTo
4545b9039b
build: v0.16 for ratatui v0.25
2023-12-18 14:45:53 +01:00
EdJoPaTo
6c437375d1
build: v0.15.0
2023-10-30 13:25:50 +01:00
EdJoPaTo
b914819283
feat: generic identifier ( #27 )
2023-10-30 13:18:58 +01:00
EdJoPaTo
58a80b64a7
docs: improve doc comments
2023-10-26 16:46:50 +02:00
EdJoPaTo
9a47f5e0a9
feat: add TreeState::select_visible_index and relative
2023-10-26 00:39:14 +02:00
EdJoPaTo
89cb1dd6d9
docs: improve example code
...
Simplify main and use const fn.
2023-10-25 15:07:09 +02:00
EdJoPaTo
bc24ad2aa4
docs: add missing word
2023-10-25 14:59:11 +02:00
EdJoPaTo
cf67025aff
build: v0.14.0
2023-10-24 19:35:58 +02:00
EdJoPaTo
b4d0c302b0
perf!: accept Vec explicitly
...
on mqttui I always cloned the vec implictly as into() cloned it.
This wasted performance.
BREAKING CHANGE: requires Vec now explicitly
2023-10-24 19:34:06 +02:00
EdJoPaTo
87e1bb4b2f
build: update to ratatui 0.24
2023-10-24 19:19:57 +02:00
EdJoPaTo
3a720d293a
ci(rust): improve workflow
2023-10-24 19:09:08 +02:00
EdJoPaTo
0d9d132a67
perf: use more const functions
...
This will run on compile time rather than every time on runtime.
2023-09-04 14:17:35 +02:00
EdJoPaTo
18bc19abaf
build: v0.13.0
2023-09-04 12:48:32 +02:00
EdJoPaTo
3f30effd19
feat: migrate to ratatui ( #26 )
...
Co-authored-by: Ben PHL <benphawke@gmail.com >
2023-09-04 12:44:30 +02:00
dependabot[bot]
100a8166a3
build(cargo): update crossterm requirement from 0.25 to 0.27 ( #25 )
...
Updates the requirements on [crossterm](https://github.com/crossterm-rs/crossterm ) to permit the latest version.
- [Release notes](https://github.com/crossterm-rs/crossterm/releases )
- [Changelog](https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossterm-rs/crossterm/compare/0.25...0.27.0 )
---
updated-dependencies:
- dependency-name: crossterm
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-12 09:42:11 +02:00