Sublime Forum

Find text automatically copied between Chrome and Sublime

#1

This strange find behavior burns me every time, and I can’t figure out if it’s a bug or a feature. I can’t seem to find any settings that might let me disable it, if it’s indeed a feature.

Steps to Reproduce:

  1. Open Sublime, go to Find > Find…
  2. Open Google Chrome, find in page on Chrome e.g. (⌘F → “Hey hey”)
  3. Tab back to Sublime, the same text “Hey hey” appears in Sublime’s find prompt, erasing whatever was there before (e.g. some regex that took you 5 minutes to write)

The reverse is true too: Entering a string into Sublime’s find prompt and then tabbing to Chrome will cause the same text to be inserted into Chrome’s find input.

As mentioned above it’s particularly painful when writing regular expressions since they can get overwritten and do not appear in the find input’s history when hitting the up arrow.

Screenshots:
cl.ly/image/052U1M1K193w
cl.ly/image/2T433j2M3t2i

0 Likes

#2

This is a feature in OS X - all applications use the same find pasteboard, just as they use the same copy pasteboard.
In Sublime Text’s search box, you can press the up arrow to get a previous find string (as long as you hit “find” at least once).

0 Likes