Pasting into search field -- text sometimes duplicated
Scenario: I hit Ctrl+F to search within the code. Muscle memory wants to press Ctrl+V to search for what I just copied to the clipboard (because that's how most programs work).
But the selected text might already be in the search text box, so when I press Ctrl+V, that text gets appended or duplicated. Now there are multiple copies of the search text; obviously that text won't be found.
Basically, Webstorm is trying to be helpful. What should happen is, if I paste text and it matches what's already there, just overwrite.
Know what I mean?
Please sign in to leave a comment.
2016.3.3: select a string, Ctrl+C, Ctrl+F, Ctrl+V => text in search box is not duplicated, just de-selected...
Thanks for the reply.
Try this. Clear the search bar, but leave it open. Select text, Ctrl+C, Ctrl+F, Ctrl+V. Text duplicated.
This is because when you hit Ctrl+F, it automatically fills the search text with the selected text. This is where I'm getting tripped up.
If I hit Ctrl+V at the end of all that, it should be smart enough to know that I'm duplicating what's already there.
@Elena
I also though it works similar to that (that once I hit Ctrl+F text gets preselected .. so Ctrl+V will just overwrite the existing text) .. and it worked for me for a short period of time. But next launch it does not. (and still the same till now)...
http://stackoverflow.com/q/41851022/783119
Yep, that article is exactly what's happening to me. I guess I just didn't use the same words when I searched for this issue :)
So . . . can there be a fix?
Please vote for https://youtrack.jetbrains.com/issue/IDEA-167955