Find in File

Search the current file with Esc f.

Esc f (or Find in file from the menu) opens a single-row search bar pinned above the status bar.

 Find: foo█                       3 of 12   Enter: next · Shift+Enter: prev · Esc: close

How matching works

  • Case-insensitive substring. No regex, no whole-word, no case-sensitive toggle.
  • Results highlight live as you type — the editor shows every match in the visible buffer the moment you change the query.
  • The active match paints in a brighter color than the rest, so you can pick out where you are in the result set.
KeyAction
TypeUpdate the search query.
EnterJump to the next match (wraps).
Shift+EnterJump to the previous match (wraps).
EscClose the bar and clear highlights.

State across tabs

Each tab carries its own search state. Switch to another tab, search there, and switching back leaves the first tab’s last query waiting if you reopen the bar — useful when you’re hopping between two files looking for related symbols.

Closing the bar with Esc clears highlights. Opening it again starts fresh.

Why no regex

Regex search is a pile of UI surface (toggles, error states, escape rules) for a feature most “find in file” users never reach for. The 90% case is “I know roughly what I’m looking for, take me there.” That’s what Esc f does. For the 10% case, the right tool is rg in the next pane of your tmux session.

Edit this page on GitHub