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

feat: add hotkey to edit last message #927

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

codedealer
Copy link
Contributor

Adds a hotkey (arrow up) to edit the last message in the chat, a functionality present in most chat applications. This closes the ux loop: send message -> edit response -> apply changes -> send new message, allowing to complete it with keyboard only.

Implementation note
After some deliberation I worked around solidjs in a simple 10 lines js handler. The only viable alternative I see for this to be implemented the "right way" is to introduce a new field to the Message Store which seemed excessive for such a trivial thing.

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

1 participant