iTerm Text Search – Why iTerm Text Search is in Reverse Order

iterm

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?

Best Answer

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