Open in TheBrain

Find and Replace in Notes

Overview

When a note gets long, Find and Replace lets you jump to any word or phrase inside it and, if you want, swap it for something else. It works within the note you're currently editing — a focused search of one document, separate from searching across the whole brain.

How to Find and Replace

  1. In the notes editor, open Find and Replace — the default shortcut is Ctrl+F (⌘F on Mac) while you're working in a note. If text is selected, it becomes the search term — and pressing the shortcut again with a new selection updates the term while the bar stays open.
  2. Type what you're looking for; matches are highlighted and counted.
  3. Move through matches with the Next Match and Previous Match arrows on the bar, or with the keys listed under Keys in the Find Bar. Both directions wrap around at the ends of the note.
  4. To replace, click the chevron arrow at the left edge of the find bar to reveal the replace field, enter the replacement, and use Replace for one match or Replace All for every match.

The find bar at the top of a note searching for "client", with every match highlighted and the current one in orange

Match Options

The find bar of a note with its replace row open, searching for "client" with 2 of 12 matches, and labels on its parts: the Show replace chevron, the Match options (case sensitive, whole word and regular expression), the match count, the Previous and next match arrows, the replacement box, Replace and Replace all

Keys in the Find Bar

These work while the cursor is in the find box or the replace box:

KeyWhat it does
Enter in the find boxGoes to the next match
Shift+Enter (⇧Enter on Mac) in the find boxGoes to the previous match
Enter in the replace boxReplaces the current match and moves on to the next
Ctrl+H (⌃H on Mac)Shows or hides the replace row
TabMoves between the find box and the replace box while the replace row is showing
EscCloses the bar

Regular Expressions and Limits

The keys, the regular-expression rules, and the limit are the same in the rich editor's find bar and in the one the Text and Split views use.

  • This in-note Find and Replace acts on the current note only. To replace text across every note in the brain — or across thought names, labels, and attached URLs — use Main Menu > Brain > Replace in Brain instead; see Find in Brain.
  • The note's Text and Split views have their own Find & Replace, on the text toolbar and its right-click menu, with the same case, whole-word, and regular-expression options. Ctrl+F (⌘F on Mac) opens it whenever one of those views is showing, seeded with your current selection.

Related Topics