Open in TheBrain

The Text Editor (Text and Split Views)

Overview

The note's Text view (and the text pane of the Split view) is a real plain-text Markdown editor, not just a raw file display. It has the editing behaviors you'd expect from a code editor — smart indentation, Markdown list continuation, bracket pairing, line moves and duplication, go-to-line, and visual aids like line numbers, indent guides, and whitespace markers. The same editor is used when you open an editable text attachment.

A brain window with the note of Existing Clients in the Text view — its Markdown, with a number beside each line and its headings shown in color

Switch views with the status bar under the note (see Writing and Formatting Notes), or right-click the note and choose Edit as Text. The Text and Split views aren't available on phones; on tablets, the shortcuts described here need a hardware keyboard. Most of the behaviors below can be turned on or off in Settings > User > Notes > Text Editor — see Notes Settings.

The Actions menu of the Text view's toolbar: Alter Case, Make Paragraphs, Hard Wrap at 80, Sort Lines, Reverse Lines, Remove Duplicate Lines, Collapse Blank Lines, Trim Trailing Whitespace and Straighten Quotes

The note of Existing Clients in the Split view — its Markdown on the left and the formatted note on the right

Typing and Indentation

Brackets, Quotes, and Comments

Moving and Duplicating Lines

These are the same commands the rich editor uses, so a shortcut you customize in Settings > User > Keyboard applies in both views — as do the shortcuts for Cut, Copy, Paste, Select All, and Find & Replace.

Navigation

Visual Aids

All of the others have options in Settings > User > Notes > Text Editor; word wrap and auto-indent also have quick toggles on the text editor's toolbar.

The Split View and Diagrams

The Split view keeps the text pane and the rendered preview scrolled together, anchored on your caret. When the caret is inside a Mermaid diagram's code, the preview centers the rendered diagram and stops following your caret so you can study the drawing while you edit — scroll the preview freely; normal following resumes when the caret leaves the diagram, and returning to it re-centers.

Saving in the Text and Split Views

The rich editor saves by itself shortly after you stop typing. The Text and Split views do not: there is no timed save while you type in them. Your edits are saved when you:

Until one of those happens, Discard Changes returns the text to the last saved version, after asking you to confirm. Save and Discard Changes are available only while there are unsaved edits.

The text editor's toolbar also offers font size controls and the Actions menu of whole-text transformations — see Writing and Formatting Notes for the full toolbar and status bar description.

Related Topics