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

copy-pasting from VSCode behavior #22

Open
fpvandoorn opened this issue Nov 18, 2024 · 2 comments
Open

copy-pasting from VSCode behavior #22

fpvandoorn opened this issue Nov 18, 2024 · 2 comments

Comments

@fpvandoorn
Copy link

If I copy-paste text from VSCode into the Loogle search bar, and the search bar is already non-empty, two unexpected things happen:

  • A space is inserted before and after the pasted text (if the cursor is not at the end or the beginning of the existing search query at least)
  • The cursor is placed one character before the end of the pasted string

This behavior is easily visible if you copy text in VSCode and then paste it multiple times in the Loogle search bar.

I am using Windows & Firefox.

@nomeata
Copy link
Owner

nomeata commented Nov 18, 2024

Hmm, can’t reproduce on Firefox and Linux. Does it depend on what you are copying, e.g. if it involves unicode or backslashes or so?

@fpvandoorn
Copy link
Author

Nope, it can be any word or a single letter, highlighted or not. I expect that it has to do with the fact that some markup is copied with it.

FWIW: I also cannot reproduce this on Windows + Chrome...

E.g. if I copy AddAction from VSCode, and paste it a couple times in Chrome I get

AddActionAddActionAddActionAddActionAddActionAddActionAddActionAddAction

in Firefox I get

AddAction AddActio AddActio AddActio AddActio AddActio AddActio
AddAction
n n n n n n

Only when copying it here I notice that there's even newlines in there...

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