Keep the collapsed Backlinks section after a tab change

The Backlinks section expanded again when the user left a tab and came
back. The section lost its state when it closed with its tab.

- The workbench layout keeps the state in `backlinksOpen` and saves it
  with the other layout values.
- The user guide describes the control.

The outline smoke test and the workbenchLayout unit test check the
state. Card e81770bc.
This commit is contained in:
Knotty Wyvern
2026-11-04 21:41:20 -07:00
parent 18031e34e4
commit 012b65bced
7 changed files with 50 additions and 17 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ Read follows CommonMark: a single line break inside a paragraph is a space. To s
- A workspace file link opens in a new tab and keeps the current document open.
- A heading link, such as `guide.md#save-your-work` or `#save-your-work`, puts that heading at the top of the view. A heading near the end of a short document stays lower.
- A wiki link, such as `[[Meeting notes]]`, finds the note by name anywhere in the workspace. If two notes have the same name, use a relative or workspace path.
- The **Backlinks** section below the outline lists notes that link to the current note. Select an entry to open it.
- The **Backlinks** section below the outline lists notes that link to the current note. Select an entry to open it. Select the **Backlinks** title to collapse or expand the section. RuneStone keeps that choice for all notes and after a restart.
If backlinks look out of date, select **Rebuild note index**. Your Markdown files do not depend on this index.