dustinblackman / oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
https://dustinblackman.com/posts/oatmeal/
MIT License
487 stars 23 forks source link

Add hotkey to resend last user message #2

Closed dxrcy closed 9 months ago

dxrcy commented 9 months ago

Adds one of the features of #1:

I couldn't figure out how to stop current response, as I am not familiar with tokio::sync.

The code was extracted to a local macro to reduce duplication. Hope this helps :)

coveralls commented 9 months ago

Pull Request Test Coverage Report for Build 6934214750


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/application/ui.rs 0 46 0.0%
<!-- Total: 0 46 0.0% -->
Totals Coverage Status
Change from base Build 6885730002: -0.5%
Covered Lines: 808
Relevant Lines: 1716

💛 - Coveralls
dustinblackman commented 9 months ago

@darccyy Great idea, thank you!