Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.48k stars 2.77k forks source link

Add undo/redo functionality #2591

Closed MrSimonC closed 1 week ago

MrSimonC commented 2 weeks ago

Pull Request Type

Relevant Issues

resolves #2590

What is in this change?

This pull request addresses the issue of the lack of undo functionality for paste actions in the main prompt text box of Anything LLM. Specifically, it ensures that when users press Ctrl+Z on Windows or Command+Z on Mac after pasting text, the paste operation is undone, and the pasted text is removed from the text box. This change improves the user experience by allowing users to easily revert paste actions without manually deleting the text.

Additional Information

Developer Validations

shatfield4 commented 1 week ago

LGTM