2

I'm running iTerm2. When do a text search F, pressing Return moves the highlighted occurrence back (the previous occurrence). Is there a way to make it move to the next (forward) occurrence?

2

Searching in reverse is apparently how iTerm's search works by design (see https://gitlab.com/gnachman/iterm2/issues/4491).

As a user, I also find this design decision confusing.

If you would like to make Find Next / Find Previous in iTerm behave consistently with other apps, here are the proper keybinding overrides to add in System Preferences > Keyboard.

Note that I had to restart iTerm for the keybindings to fully take effect.

iterm find keybinding overrides

  • Can I ask what is going on with the "Function Keys" entry in your settings here? I do not have that on Mac os mojave, I don't think I've ever seen it – Devin G Rhode Dec 28 '19 at 1:50
-2

Try using Shift+Enter to reach the next occurrence.

  • We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything may be deleted. – Allan May 2 '16 at 17:39
  • I apologize, I'm new here. I tried to find documentation on the internet to back up my personal experience, and I found this thread. In the future, should I find a source on the web with my answers? groups.google.com/forum/#!searchin/iterm2-discuss/find/… – TMHahn May 2 '16 at 17:43
  • That's ok...it's how we learn.....but I don't belive shift-enter does anything in this context. You might want to try Cmd-G or just Enter – Allan May 2 '16 at 17:54
  • Cmd-G also works in reverse – tar Feb 16 '17 at 14:06

You must log in to answer this question.

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