Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hotkey to resend last user message #2

Merged
merged 3 commits into from Nov 20, 2023
Merged

Add hotkey to resend last user message #2

merged 3 commits into from Nov 20, 2023

Conversation

dxrcy
Copy link
Contributor

@dxrcy dxrcy commented Nov 20, 2023

Adds one of the features of #1:

  • Press Ctrl+R to repeat the previous prompt

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 :)

@dustinblackman dustinblackman self-assigned this Nov 20, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6934214750

  • 0 of 46 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 47.086%

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

💛 - Coveralls

@dustinblackman
Copy link
Owner

@darccyy Great idea, thank you!

@dustinblackman dustinblackman merged commit adf0519 into dustinblackman:main Nov 20, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants