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.47k stars 2.77k forks source link

Add undo/redo functionality #2591 #2623

Closed timothycarambat closed 1 week ago

timothycarambat commented 1 week ago

Pull Request Type

Original by @MrSimonC on #2591

Relevant Issues

resolves #2590 closes #2591

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