استوديو الكتابة

Find and replace: scopes / regex / auto-version safety

قراءة 3 دقيقة

Want to rename "J. Doe" to "M. Brown"? Want to clear every duplicate-typed "the the"? That's what find-and-replace is for.

Slima Writing Studio editor (single-pane reference; switching the activity bar to search shows search + scope + replace in the left panel)

Open the search panel

Cmd/Ctrl Shift F — left panel switches to global search.

Or click the 🔍 search icon in the left activity bar.

Single-file search Cmd/Ctrl F opens an in-page search bar at the top of the editor — that one's more common day-to-day.

Scope options

The top usually toggles search scope:

Scope For
Current file The file you're in (Cmd/Ctrl F default)
Current book Most-used scope
Current folder Restricted (e.g. only "Notes")
All books Cross-book search

Exact toggle UI may vary by version.

Search options

Nearby usually:

  • Aa Case sensitive (default off)
  • |abc| Whole word (searching cat won't match category)
  • .* Regex
  • 🔄 Enable the replace field

Replace

Opening replace adds a second field:

  • Replace → replaces the first / next match
  • Replace All → all at once

Important: before Replace All, Slima will create a version snapshot per its auto-version rules — you can roll back.

Results

Below: every hit listed with filename + line + surrounding text. Click any hit to jump.

Regex examples

Looking for regex
Curly vs straight quotes mixed [「『](.+?)[」』]
Duplicate characters (.)\1
Trailing whitespace \s+$
Number + "years" (\d+)\s*years

In regex mode the replace field can use $1 / $2 to reference capture groups.

Related

Was this helpful?