Skip to content

feat: add hotkey to edit last message#927

Open
codedealer wants to merge 1 commit intoagnaistic:devfrom
codedealer:feat/quick-edit
Open

feat: add hotkey to edit last message#927
codedealer wants to merge 1 commit intoagnaistic:devfrom
codedealer:feat/quick-edit

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.

1 participant