You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/helix-tui
Gokul Soumya 6e2aaed5c2
Reuse menu::Item trait in picker (#2814)
* Refactor menu::Item to accomodate external state

Will be useful for storing editor state when reused by pickers.

* Add some type aliases for readability

* Reuse menu::Item trait in picker

This opens the way for merging the menu and picker code in the
future, since a picker is essentially a menu + prompt. More
excitingly, this change will also allow aligning items in the
picker, which would be useful (for example) in the command palette
for aligning the descriptions to the left and the keybinds to
the right in two separate columns.

The item formatting of each picker has been kept as is, even though
there is room for improvement now that we can format the data into
columns, since that is better tackled in a separate PR.

* Rename menu::Item::EditorData to Data

* Call and inline filter_text() in sort_text() completion

* Rename diagnostic picker's Item::Data
2 years ago
..
src Reuse menu::Item trait in picker (#2814) 2 years ago
tests fix typos (#2304) 2 years ago
.gitignore Inline tui as helix-tui fork. 3 years ago
Cargo.toml build(deps): bump unicode-segmentation from 1.8.0 to 1.9.0 (#1632) 2 years ago
README.md Fix grammatical error (#1427) 3 years ago

README.md

helix-tui

This library is a fork of the great library tui-rs. We've mainly relied on the double buffer implementation and render diffing, side-stepping its widget and layouting.