3

I have iTerm2 and Chrome open.

In iTerm2 I press Cmd+F to search for "###".

Then in Chrome I search for something on the page using Cmd+F like the word "event"

When I go back to iTerm2, the search window has "event" in it instead of "###". Likewise for Chrome, when I go back there after fixing the iTerm2 search, it now has "###" in the search bar.

The issue is more than just having to retype my search every time. When I search in Chrome, it begins an active search in iTerm2 that I didn't tell it to search for. It's annoying switching back to iTerm2 and seeing yellow highlighting all over for things I didn't search for there.

1

1 Answer 1

2
+50

A workaround specific to iTerm2:

For iTerm2 you can use Shift+Command+F which opens a "Find Globally" search which is private to iTerm2. It is 'global' in the sense that it searches all the open iTerm2 windows and tabs.

This solves your problem with iTerm2 and any single other app, but doesn't generalise to any app.

1
  • This does work, though comes with its own set of issues. My ### was actually a printout with 200 #'s, so searching for ### gives me 198 matches, each one being a line in the matching window. I do like how it centralizes all of the matches.
    – rtaft
    Commented May 2, 2022 at 11:35

You must log in to answer this question.

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