Collapsible headings

A heading can be collapsed to hide the content under it, up to the next heading of the same or a higher level. A lower heading is hidden along with the rest, and keeps its own state.

Collapsing and expanding

  • To collapse or expand a heading, click the arrow at the end of the heading. The arrow appears while the mouse is over the heading or the cursor is in it, and stays visible while the heading is collapsed.
  • To use the keyboard instead, place the cursor in the heading and press Ctrl+Alt+Enter.
  • The menu of the drag handle beside a heading also offers Collapse section and Expand section.

The collapsed state is saved with the note, so a heading stays collapsed when the note is opened again.

Editing around a collapsed heading

  • Pressing Enter at the end of a collapsed heading adds a new heading of the same level below the hidden content.
  • The arrow keys move the cursor past the hidden content.
  • Backspace right below a collapsed heading's content, or Delete at the end of a collapsed heading, expands the heading instead of deleting the hidden content. If the line right below the hidden content is empty, either key deletes that empty line instead.
  • Dragging a collapsed heading by its drag handle moves its hidden content along with it.
  • A collapsed heading expands when content is added to its section, for example by pasting or by dropping a block under it.
  • Search in note, the table of contents and links to a block show hidden content when they lead to it, without expanding the heading.

Read-only notes

The arrow also works in notes shown read-only (see Read-Only Notes), but there the changes are not saved: the note shows its saved state again when it is reopened.

To use the keyboard there, press Tab to move to a heading that has content under it, then Enter or Space to collapse or expand it.

Limitations

  • Shared notes and printouts always show all the content.
  • The collapsed state is kept in HTML exports, but not in Markdown exports.