Describe the bug
Copy and paste things in textarea breaks somehow the fast user experience while using it in a CLI tool.
When you paste a large text into a textarea, all characters are written one by one.
Also, I've noticed that, the larger the text is and the more number of lines it has, user input slows down incrementally.
Setup
Please complete the following information along with version numbers, if applicable.
- OS: Ubuntu
- Shell: zsh
- Terminal Emulator: Terminator
To Reproduce
Steps to reproduce the behavior:
- Execute the text area tutorial, change the
CharLimit of the TextArea to a high value (so large texts can be pasted) and paste a large file. I am actually pasting a PEM file (a certificate) which has 28 lines and 65 characters per line.
- See how the text is being copied character by character, and it slowed down the more characters are currently in the textarea
Source Code
https://github.com/charmbracelet/bubbletea/tree/master/examples/textarea
Expected behavior
It should be fast on pasting things to not break the user experience.
Describe the bug
Copy and paste things in textarea breaks somehow the fast user experience while using it in a CLI tool.
When you paste a large text into a textarea, all characters are written one by one.
Also, I've noticed that, the larger the text is and the more number of lines it has, user input slows down incrementally.
Setup
Please complete the following information along with version numbers, if applicable.
To Reproduce
Steps to reproduce the behavior:
CharLimitof the TextArea to a high value (so large texts can be pasted) and paste a large file. I am actually pasting a PEM file (a certificate) which has 28 lines and 65 characters per line.Source Code
https://github.com/charmbracelet/bubbletea/tree/master/examples/textarea
Expected behavior
It should be fast on pasting things to not break the user experience.