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.
aerc/lib/ui
Tim Culverhouse 5b57d24afd textinput: make completions run async with cancellation
Make the Completer interface accept a context.Context. Provide a
cancellation feature on text input tab completion to cancel an inflight
completion command. This is particularly useful for address book
completion if the user has specified a network-accessing command, eg
carddav-query. The command is started according to the completion delay,
but is cancellable if another request comes in. We also check for
cancellation after the request is complete to ensure we only show valid
completion results.

Changelog-changed: Tab completions for text fields are run
 asynchronously. In-flight requests are cancelled when new input
 arrives.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2 weeks ago
..
borders.go aerc: change event interfaces to vaxis events 9 months ago
box.go aerc: change event interfaces to vaxis events 9 months ago
context.go vaxis: update to v0.7.2 and update ansi parser 9 months ago
fill.go fill: replace tcell.Style with vaxis.Style 9 months ago
grid.go mouse: use vaxis mouse events 9 months ago
interfaces.go ui: initialize vaxis directly, drop tcell.Screen initialization 9 months ago
popover.go aerc: change event interfaces to vaxis events 9 months ago
stack.go mouse: use vaxis mouse events 9 months ago
string.go vaxis: update to v0.7.2 and update ansi parser 9 months ago
tab.go tabs: update ui config in any tab 3 months ago
table.go vaxis: update to v0.7.2 and update ansi parser 9 months ago
text.go style: use vaxis style everywhere 9 months ago
textinput.go textinput: make completions run async with cancellation 2 weeks ago
textinput_test.go ui: make textinput grapheme aware 4 months ago
ui.go aerc: support terminal-based pinentry programs 4 weeks ago