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/helix-term/src/ui
Michael Davis 9e31ba5475
Consolidate DynamicPicker into Picker
DynamicPicker is a thin wrapper over Picker that holds some additional
state, similar to the old FilePicker type. Like with FilePicker, we want
to fold the two types together, having Picker optionally hold that
extra state.

The DynamicPicker is a little more complicated than FilePicker was
though - it holds a query callback and current query string in state and
provides some debounce for queries using the IdleTimeout event.
We can move all of that state and debounce logic into an AsyncHook
implementation, introduced here as `DynamicQueryHandler`. The hook
receives updates to the primary query and debounces those events so
that once a query has been idle for a short time (275ms) we re-run
the query.

A standard Picker created through `new` for example can be promoted into
a Dynamic picker by chaining the new `with_dynamic_query` function, very
similar to FilePicker's replacement `with_preview`.

The workspace symbol picker has been migrated to the new way of writing
dynamic pickers as an example. The child commit will promote global
search into a dynamic Picker as well.
4 months ago
..
picker Consolidate DynamicPicker into Picker 4 months ago
completion.rs tui: Constify functions, shrink Margin representation 6 months ago
document.rs don't manually grapheme align ts highlights (#10310) 7 months ago
editor.rs fix(editor): prevent overflow in count modifier (#10930) 5 months ago
info.rs tui: Constify functions, shrink Margin representation 6 months ago
lsp.rs tui: Constify functions, shrink Margin representation 6 months ago
markdown.rs tui: Constify functions, shrink Margin representation 6 months ago
menu.rs Bump nucleo to v0.4.1 4 months ago
mod.rs Consolidate DynamicPicker into Picker 4 months ago
overlay.rs Fix typos (#6643) 2 years ago
picker.rs Consolidate DynamicPicker into Picker 4 months ago
popup.rs tui: Constify functions, shrink Margin representation 6 months ago
prompt.rs Refactor Picker in terms of columns 4 months ago
spinner.rs use newtype parttern for langauge server id 7 months ago
statusline.rs Revert "Refactor statusline elements to build `Spans` (#9122)" (#10642) 6 months ago
text.rs Avoid cloning the whole paragraph content just for rendering (#9739) 9 months ago