Skip to content
Guide › Write
In this chapter

Finding and replacing

Find a word or a name in one chapter, or in the whole book. Change it in one go if you want to. Finding and replacing are free: they never use your pages.

How to do it

Find in a chapter

In the full-screen editor, press Cmd/Ctrl + F. A one-line bar opens at the bottom. Type what you are looking for. The first match is selected, and the bar shows how many there are, for example "3 of 12".

  • Enter or Cmd/Ctrl + G goes to the next match. Shift + Enter or Shift + Cmd/Ctrl + G goes to the previous one. The arrows in the bar do the same.
  • Aa matches capitals exactly. W finds whole words only, so "Jon" does not match "Jonathan". Hover to see what each one does. VSProse remembers both between sessions.
  • Straight and curly quotes count as the same. Type don't and it finds don’t.
  • Esc closes the bar. Press it again to close the editor.

Replace in a chapter

Press Option + Cmd + F (Ctrl + H on Windows), or choose Edit › Find and Replace…. A second box opens for the new word.

  • Replace changes the selected match and moves to the next.
  • All changes every match in the chapter.

A replacement is an ordinary change to your text. Nothing is saved until you save the chapter. Cmd/Ctrl + Z undoes it, and after All one Cmd/Ctrl + Z puts every match back.

If a match starts with a capital, VSProse keeps it. Replace "queen" with "king" and "Queen Mab" becomes "King Mab". Turn on Aa and the new word goes in exactly as you typed it.

Find in the whole book

Close the editor, then choose Edit › Find in Book… (Shift + Cmd + F, or Ctrl + Shift + F on Windows). A sheet opens over the chapter screen.

Type your word. The results list the chapters in book order, with a line of context for each match. Click a line to open that chapter with the match selected.

To change them, open the replace box with the small arrow. Every chapter with matches has a tick box, ticked to start. Untick any chapter you want to leave alone, then press Replace in 3 (the number is your ticked chapters). VSProse asks once before it goes ahead.

Undo a replace in the book

When the replace is done, the sheet shows Undo beside each chapter and Undo all. Use one chapter's Undo to put back just that chapter.

The same undo is on the menu as Edit › Undo Replace in Book. It is still there after you quit and open VSProse again. It covers your last few book replaces.

What to expect

  • Your notes are left alone. Text inside a <<note>> is never found and never changed. The same goes for the hidden id at the end of each chapter.
  • Some chapters are skipped. A chapter with a review in progress, or with unsaved writing, shows greyed out and unticked. Hover over the small i to see why. Finish the review, or save the chapter, and search again.
  • Your later work is safe. If you edit a chapter after a book replace, Undo leaves that chapter as it is now. It never writes over what you wrote since.
  • Your chapters keep their names and their status. A replace changes the words inside the chapter and nothing else.

If something goes wrong

  • A word I expected is not found. Check that W is not on and the word is not inside a note. A hyphen (-) and a dash (—) are different marks: searching for one does not find the other.
  • A chapter is greyed out. Hover to see the reason. It is almost always a review you have not finished or text you have not saved.
  • The replace skipped a chapter. If you changed it after you searched, or another app was using the file, VSProse leaves it alone. Search again and replace again.
  • I want a replace back and Undo is gone. Write to support. We can help you get the old text back.

See also