Files
RuneStone/docs/user-guide.md
T
Knotty Wyvern 5e1533c371 Make Table Formulas a built-in feature
The formula engine, the rendered results, and the formula help now
come from src/lib/formulas/. The editor and the renderer call this
module directly. The tableFormulas contribution type is removed.

- Add the tableFormulas general setting (default on) and a switch in
  Settings > General. When it is off, formulas show as source text.
- Do not load an installed runestone.table-formulas package. Settings
  > Plug-ins marks it as included with RuneStone and tells the user
  that it can be removed. The user's files stay in place.
- Translate the formula help and the error descriptions into French,
  Japanese, and Simplified Chinese.
- Port the plugin unit tests. Test the setting and use a test-only
  contribution for the generic plugin lifecycle tests.
- Smoke tests load only Terminal. The formula and lifecycle tests use
  the built-in feature and its setting.
- Remove scripts/buildPlugins.mjs, the build:plugins script, and the
  plugin-packages requirement of the smoke runner.
- Remove RuneStone_Table_Formulas from the menu audit scope. It had no
  menu surfaces.
- Update the README, the user guides, and the developer references.
2026-10-28 01:05:43 -07:00

232 lines
12 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# User guide
[RuneStone](../README.md) · [Installation](installation.md)
This guide explains how to work with files, documents, tabs, settings, and the built-in browser in RuneStone.
| Task | Go to |
| --- | --- |
| Open or create a workspace | [Open a workspace](#open-a-workspace) |
| Create, find, or organize files | [Create and find files](#create-and-find-files) |
| Write, read, or follow a link | [Edit documents](#edit-documents) |
| Work with images, diagrams, or tables | [Images, diagrams, and tables](guides/document-tools.md) |
| Start a note from a template | [Use note templates](#use-note-templates) |
| Arrange tabs and windows | [Manage tabs](#manage-tabs) |
| Save, or recover from a changed file | [Save your work](#save-your-work) and [Resolve file conflicts](#resolve-file-conflicts) |
| Change the language or colors | [Change settings](#change-settings) and [Appearance](guides/themes.md) |
| Add Terminal, Git, or other features | [Install and manage plugins](plugins.md) |
| Browse websites | [Use the built-in browser](#use-the-built-in-browser) |
| Run commands or scripts | [Terminal guide](guides/terminal.md) |
## Open a workspace
A workspace is a folder on your computer. RuneStone reads and writes its files directly.
1. Select the folder button at the bottom of the sidebar, or press Ctrl+O.
2. Choose a recent workspace, **Open another folder…**, or **New workspace…**.
Each workspace opens in its own window. The current window keeps its documents and terminals.
**New workspace…** creates a named folder at the location that you choose. It does not replace an existing folder.
The recent list keeps the 20 most recent folders. Select × beside a folder to remove it from the list. This does not change the folder.
The navigator, Quick Open, and search hide `.git`, `.obsidian`, `.runestone`, and temporary save files.
They do not apply Git ignore rules, and the navigator does not follow folder symbolic links.
To show workspace settings and plugin data in the navigator, turn on **Settings → General → Show .runestone folder**.
## Create and find files
| Action | How |
| --- | --- |
| New file | Press Ctrl+N and type the full name with its extension, such as `notes/meeting.md` or `scripts/check.py`. RuneStone does not add an extension. |
| New note | Select **New note** in an empty tab, or right-click the navigator and choose **New note**. RuneStone creates a Markdown file. Rename it from the note title. |
| Find a file by path | Press Ctrl+P. |
| Search all files | Press Ctrl+Shift+F. |
| Find in the document | Press Ctrl+F. |
| Show or hide the sidebar | Press Ctrl+B. |
| Rename | Select an item in the navigator and press F2. RuneStone selects the name without the extension. |
| Move | Drag files between folders. |
| Bookmark | Right-click a file and choose **Bookmark**. The Bookmarks pane lists it. |
Right-click a file or folder for more actions, such as **Make a copy**, **Copy workspace path**, and **Open in default app**.
With the navigator focused, Ctrl+X, Ctrl+C, and Ctrl+V cut, copy, and paste files.
Ctrl+Z undoes a file move or rename, and Ctrl+Shift+Z or Ctrl+Y repeats it.
### Delete files
**Delete** moves the selected items to the Recycle Bin or Trash. To get them back, restore them from there. Ctrl+Z does not restore deleted files.
- Select items in the navigator and press Delete, or right-click and choose **Delete**. On macOS, you can also press Cmd+Backspace.
- RuneStone asks for confirmation before it moves a folder or several items. One file moves without a question.
- **Delete permanently** (Shift+Delete, or Cmd+Option+Backspace on macOS) removes the items from the disk. RuneStone always asks first.
- A link is deleted as a link. The file or folder that it points to stays.
Network drives, removable drives, and some Linux setups have no trash. There, **Delete** shows an error and keeps the files. Use **Delete permanently** if you want to remove them.
### Names of new files
A new name cannot contain these characters: `< > : " | ? *`. Windows does not allow them. This rule applies on every platform, so that a workspace that you share, for example through Git, also opens on Windows.
On macOS and Linux, you can still open, edit, rename, and delete existing files whose names contain these characters.
## Edit documents
Each document pane has two controls:
| Control | Choices |
| --- | --- |
| Editor layout (Ctrl+E) | **Writer** shows formatted Markdown and reveals the source of the active line. **IDE** shows the plain source with syntax colors. |
| Document view | **Edit**, **Read**, or **Split**. Split shows the editor and the reading view together. It stacks them in narrow panes. |
Hover over a control, or focus it with the keyboard, to see its name.
Writer keeps your Markdown source, frontmatter, and Windows line endings. Read shows frontmatter in a collapsed **Properties** section.
Select a checkbox to complete a task. Copy code blocks without their Markdown fences with the **Copy code** button.
To rename a note, select its title in Writer and type a new name. Press Enter or leave the field to save the name. Press Escape to cancel.
The file keeps its folder, extension, contents, and edit history.
### Links and backlinks
- Ctrl+click a link in Writer or IDE. In Read, a normal click follows the link.
- 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`, scrolls to that heading.
- 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.
If backlinks look out of date, select **Rebuild note index**. Your Markdown files do not depend on this index.
### Format text
Right-click Markdown text, or press Shift+F10, to open the context menu. Use the arrow keys for submenus. Press Escape to return to the text.
| Menu | Actions |
| --- | --- |
| Format | Bold, italic, strikethrough, highlight, code, math, comment, and clear formatting |
| Paragraph | Bulleted and numbered lists, tasks, headings 1–6, body text, and quotes |
| Insert | Footnotes, tables, callouts, horizontal rules, code blocks, and math blocks |
The menu also has link, search, extraction, and clipboard actions. RuneStone has no formatting toolbar.
Right-click a misspelled word to see spelling suggestions from the operating system.
## Use note templates
A template is a Markdown file in the workspace folder `.runestone/templates/`.
1. Right-click a Markdown file or its tab.
2. Choose **Save as template** and type a name.
3. To use the template, choose **New note** in an empty tab or in the navigator, then select the template.
New notes are copies. A change to a new note does not change the template.
To create, rename, edit, or delete templates, choose **New note → Manage templates…** in the navigator.
## Manage tabs
Each open tab keeps its undo history, cursor, and scroll position.
| Action | How |
| --- | --- |
| New empty tab | Select + or press Ctrl+T. The next file that you open uses this tab. |
| Next or previous tab | Ctrl+Tab or Ctrl+Shift+Tab |
| Close the tab | Ctrl+W |
| Reorder | Drag the tab. Press Escape to cancel. With a tab focused, press Alt+Shift+Left or Alt+Shift+Right. |
| Pin, close others, or close all | Right-click the tab. |
| Move to a new window | Drag the tab out of the tab strip, or right-click it and choose **Open in new window**. |
| Move to another window | Drag the tab to the tab strip of the other window. |
RuneStone moves the current text of the tab, also unsaved text. It closes the source tab only after the new window accepts the tab.
If the move fails, the source tab stays open.
When you start RuneStone again, it opens the document tabs of the workspace. It keeps their order, pins, and active tab.
This includes plugin tabs that show a file, such as a PDF. RuneStone reads the contents again from disk. Missing files do not stop the other tabs from opening.
## Save your work
Auto-save is on by default. It saves changed files every 5 seconds, also in background tabs. RuneStone does not write unchanged files.
Press Ctrl+S to save the active file immediately.
To change auto-save, open **Settings → General**. Set an interval from 1 to 300 seconds, or turn auto-save off.
**Restore defaults** sets auto-save on with a 5-second interval.
If you close a tab or window with unsaved edits, RuneStone asks before it discards them or ends terminal sessions.
Unsaved text and terminal sessions do not survive a restart or a crash.
## Resolve file conflicts
When another program changes an open file, RuneStone does one of two things:
- If the tab has no unsaved edits, RuneStone loads the new file contents.
- If the tab has unsaved edits, RuneStone keeps your edits and shows a message. Expand **View disk version** to compare. Auto-save pauses for this tab until you choose an action.
Then choose one action:
| Action | Result |
| --- | --- |
| **Use disk version** | Replaces your edits with the file on disk. |
| **Keep my edits** | Keeps your edits. The next save replaces the file on disk. |
| **Save a copy** | Saves your edits to a new file. |
If the file is deleted, the tab keeps your text. Use **Save a copy**, or **Retry** after the file is back.
Before it saves, RuneStone compares the file on disk with the version that it last read. It writes a complete temporary file, then replaces the original.
If a write fails, your edits stay in the tab. RuneStone does not lock files, so another program can still write at the same time.
## Change settings
Select the gear at the bottom of the sidebar, or press Ctrl+,. Use the search field to find a setting.
Settings apply to all workspaces on this computer and update all open windows.
| Category | Settings |
| --- | --- |
| General | Display language, **Table formulas**, **Show .runestone folder**, and auto-save |
| Appearance | Color theme, transparency, background image, and custom themes. See [Appearance and custom themes](guides/themes.md). |
| Plug-ins | Install, enable, update, and remove plugins. See [Install and manage plugins](plugins.md). |
| Browser | Homepage, search engine, profiles, ad blocking, and web data |
**Display language** sets the RuneStone controls to English, Français, 日本語, or 简体中文.
It does not translate documents, plugin content, or operating system messages. Some error messages stay in English.
Reopen a document to update its editor tooltips after a language change.
## Use the built-in browser
RuneStone includes a Chromium-based browser. It needs no plugin.
1. Select the globe button at the top right of the window to open a **New browser tab**.
2. Type an address or a search.
Use **Settings → Browser** to set the homepage and search engine, manage profiles, block ads, and clear cookies, cache, or history.
Each profile keeps its own cookies and bookmarks. Web bookmarks show in the Bookmarks pane.
To open web links from your documents in your system browser instead, turn off **Open web links in RuneStone**.
## Keyboard reference
This table lists the Windows and Linux keys.
| Action | Shortcut |
| --- | --- |
| Open a workspace | Ctrl+O |
| Find a file / New file | Ctrl+P / Ctrl+N |
| New tab / Close tab | Ctrl+T / Ctrl+W |
| Next tab / Previous tab | Ctrl+Tab / Ctrl+Shift+Tab |
| Move the focused tab | Alt+Shift+Left / Alt+Shift+Right |
| Save | Ctrl+S |
| Find in document / Search workspace | Ctrl+F / Ctrl+Shift+F |
| Switch Writer and IDE | Ctrl+E |
| Show or hide the sidebar | Ctrl+B |
| Rename | F2 |
| Delete to the trash / Delete permanently | Delete / Shift+Delete |
| Context menu | Shift+F10 |
| Settings / Help and about | Ctrl+, / F1 |
The [Terminal guide](guides/terminal.md) lists the terminal shortcuts.
## Limits
- Math shows as formatted source text. RuneStone does not typeset formulas.
- The IDE editor colors syntax, but has no language services such as error checks or go to definition.
- RuneStone does not support Obsidian Bases.
- Plugins have full access to RuneStone and your files. See [Install and manage plugins](plugins.md).
## Get help
Press F1, or select the question mark at the bottom of the sidebar, for **Help and about**. It shows the app version, basic steps, and shortcuts.
When you report a problem, include the app version, operating system, steps, expected result, and error text.