helix-mods/helix-tui/src
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
2022-07-02 13:21:27 +02:00
..
backend Fix panics when resizing (#1408) 2022-01-16 10:55:28 +09:00
widgets Add workspace and document diagnostics picker (#2013) 2022-06-30 18:16:18 +09:00
buffer.rs fix typos (#2304) 2022-04-27 14:21:20 -05:00
layout.rs Refactor Margin for fine grained control (#2727) 2022-06-22 01:52:08 +09:00
lib.rs reverse the dependency between helix-tui and helix-view (#366) 2021-06-25 12:58:15 +09:00
symbols.rs Inline tui as helix-tui fork. 2021-05-09 17:52:55 +09:00
terminal.rs Add ctrl-z to suspend 2021-08-03 09:32:21 +09:00
text.rs Reuse menu::Item trait in picker (#2814) 2022-07-02 13:21:27 +02:00