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

Is there a way to handle multi-lines instead of processing them line by line when pasting mult-lines? #240

Open
lvjinyu opened this issue Dec 11, 2024 · 1 comment

Comments

@lvjinyu
Copy link

lvjinyu commented Dec 11, 2024

For example, when I type or pasteselect host() \n, I hope to handle it directly when encounter\n, but when I directly paste the text select\nhost()\n, I hope to not handle it directly when encounter the first \n and wait for the input of host() before processing.
In summary, it is to determine whether there is any unread content after \n. If not, it will be processed directly. Otherwise, continue reading

something like the following
image

@aep
Copy link

aep commented Mar 4, 2025

i tried to fix this but its pretty hard. i think the way this usually works is via timing. i.e. if there's a \n , you'd check if the next character came in too fast to be a human typing. this is weird and i hate it

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

No branches or pull requests

2 participants