1

I've noticed the following behavior, but cannot find a reason or a bug report on why this may be happening. Maybe this is normal on OSX?

The situation:

With the terminal open, I search for some text, say "hello", which exists in the terminal. I get a few matches and Cmd+G even searches for more occurrences.

I then switch to Chrome which has some web page open, and search for some text, say "world".

Here is the kicker: when I switch back to the terminal and press Cmd+G, the terminal is now searching for "world" instead of the original "hello" I searched for in ther Terminal.

Is there some option to fix this or is this a bug/designed behavior in OSX?

Version: OS X Yosemite 10.10.4

2
  • Personally, I had seen this as a feature, being able to carry the same search terms across several applications has been useful to me in the past. – forquare Jul 26 '15 at 9:05
  • I feel it is a bad choice (for programming users) – Zabba Nov 22 '15 at 7:52
2

It's a 'feature' - though its use in a Find dialog may have been almost accidental initially, it is actually an intentional usage.

OS X, in common with several other flavours of unix, has two copy buffers.

The one you know & love, cut/copy/paste itself on Cmd ⌘ X , Cmd ⌘ C & Cmd ⌘ V
& another, known as Kill & Yank, which can be called from Ctrl ⌃ K & Ctrl ⌃ Y
though incidentally in Stack Exchange's markdown language, Ctrl ⌃ K will format as code instead.
Kill is the equivalent of Cut, rather than Copy, but Yank is equivalent to Paste.

It is actually this kill/yank buffer that most Find/replace dialogs use.
There is no way to avoid that, I'm afraid.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .