In this chapter
Writing and editing¶
The editor is where you write. It is a plain-text editor with no formatting ribbon and no autocorrect: just your prose and the chapter file on disk. It fills the whole window. Use it whenever you draft, revise or hand-edit a chapter.
How to do it¶
Open a chapter¶
Select a chapter in the list. Its chapter screen opens in the middle.
Press [EDIT CHAPTER TEXT], or double-click the chapter in the list,
to open the editor. Chapter › Open in Full-Screen Editor
(Cmd/Ctrl + Return) opens it too.
You cannot open the editor while a review of that chapter is waiting. Finish the review or leave it first.
Write¶
Type. A moment after you stop, VSProse writes what is on screen to a
recovery copy inside the book's .VSProse/ folder, so an
interrupted session cannot cost you the chapter. That recovery copy is
not your chapter. Your chapter file is written when you save.
The dot beside the chapter name in the list marks chapters with
unsaved changes; it clears when you save.
Coming back to your book explains what is saved when, and what comes back after a crash.
You can type Markdown marks (headings, italics, lists). The editor shows them as plain text. The Cmd/Ctrl + M preview shows them formatted. Plain prose is fine too.
A quiet place to write¶
Once you start typing, the bar at the top and the row of controls at the bottom fade away, so the page is just your words. Move the pointer to the top or the bottom edge of the window and they come back. They also stay when something needs you, such as a dialog, the preview or the find bar. Press any key to type again and they fade once more.
Lines stay at a comfortable reading width, and a soft edge shows where the text column begins and ends. Small messages wait until you leave the editor, so nothing pops up over your page. The editor stays quick in long chapters, tens of thousands of words included.
Keys in the editor¶
Cmd/Ctrl + S: save the chapter, keeping its status.Shift + Cmd/Ctrl + S: Save As: save and choose the chapter's status. This is how you promote an outline into a draft. See The chapter ladder.Cmd/Ctrl + M: switch between editing and preview.Option + Cmd + N(Ctrl + Alt + Non Windows): add a note at the cursor. Edit › Add Note has the other kinds (TODO, Question, Check, Flag). See Story notes.Cmd/Ctrl + =or+,Cmd/Ctrl + -,Cmd/Ctrl + 0: make the text bigger, smaller, or back to normal. This zooms the whole app.Esc: close the editor and go back to the chapter screen.
Along the bottom of the editor is a row of bracketed controls: [Cmd+S] Save, [Shift+Cmd+S] Save As, [Cmd+M] Preview (or Edit), and [ESC] Close. They are buttons as well as reminders: click them or use the keys, whichever you like. The row also shows the chapter's word count.
An ordinary Cmd/Ctrl + S saves at the chapter's current status,
without asking. Save As is the one that asks: it
opens the Save Chapter As… dialog with [O] Outline and
[D] Draft, so you can promote an outline into a draft, or send a
chapter back down if a heavy revision undid earlier polish. Press O
or D, or click. The same dialog is on the menu bar as
File › Save Chapter As….
Promoting an Outline to Draft keeps your outline text. It moves into a
<<outline: … >> note block at the end of the chapter. Nothing bills it
and no editor edits it until you delete it yourself.
The chapter ladder tells the whole story.
Recover from a crashed or force-quit session¶
If VSProse closed before your text was saved (a crash, a forced quit, a power loss), the next launch opens the Unsaved changes from your last session prompt. It lists every chapter with unsaved text waiting, with the chapter name and how long ago the text was captured.
Two choices:
- Restore all: the autosave buffers stay on disk and load into the editor when you open each chapter. A dot in the sidebar marks these until you save.
- Discard all: VSProse drops the buffers and opens the chapters as they are on disk.
Discard is final
Discarding the autosave buffers cannot be undone. The file on disk is the only copy left.
Quitting with unsaved changes¶
If you quit VSProse while a chapter has unsaved changes, the Unsaved changes prompt asks what to do. It lists each affected chapter with the chapter name and the time since you last changed it.
- Save all: writes each buffer to its chapter file at the current status, then quits.
- Discard all: drops the buffers and quits.
- Cancel: closes the prompt; VSProse stays open.
What to expect¶
The editor reads from, and saves back to, the same .txt (or .md)
chapter file in your book folder. Autosave writes its recovery copy
only when you pause typing, so one keystroke does not cause a hundred
file writes a minute. The chapter file on disk is the true copy of your
prose as of your last save.
On disk
Open any chapter file in another editor (TextEdit, Vim, BBEdit, a different IDE) and you will see just your prose, in plain text. VSProse does not own the format.
If something goes wrong¶
- The file changed underneath me. If something else on your computer edited the chapter file while VSProse had it open, VSProse says This chapter was changed outside VSProse and does not overwrite it. You can choose Use VSProse changes, Use external changes, or Create a new chapter from the VSProse changes. The other version is kept as a backup first.
- The dot beside my chapter will not clear. The dot means unsaved
changes. Only saving clears it. Pausing does not. Press
Cmd/Ctrl + S. If the dot survives that, check the file is not read-only in the Finder / file manager.