Phase 5-2. - Ctrl+Shift+P opens the command palette: every workbench command with its shortcut, then the plugin commands (UI-048). - In Write, Ctrl+B, Ctrl+I, Ctrl+Shift+X, and Ctrl+Shift+H format the selection, and Ctrl+K inserts a Markdown link. The Format menu shows these shortcuts. - Ctrl+\ toggles the side pane. It matches the physical key on every keyboard layout. Ctrl+B now belongs to Write. - Help lists every shortcut in groups, open by default. The list comes from the command table. - src/lib/ui/shortcuts.ts writes shortcut labels for the platform: Ctrl+Shift+P on Windows and Linux, and the macOS symbols on a Mac. The catalog uses placeholders, so no translation contains "Ctrl". - 19 new catalog rows, and 10 rows converted to placeholders, in French, Japanese, and Simplified Chinese. - Docs: UI-048, the user guide keyboard tables, and a label rule in ui-design.md. New tests: layout/commands, tests/unit/ui/shortcuts.spec.ts, and new cases in workbenchKeys.spec.ts. Tests that read the old labels or pressed Ctrl+B for the side pane now use the new names and Ctrl+\. The smoke harness raises the resource timing buffer to 5000 entries. The new modules pushed the CodeMirror language module past the default 250 entries, so editor/markdownPaste could not find its URL.
248 lines
13 KiB
Markdown
248 lines
13 KiB
Markdown
# 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+\. |
|
||
| Find a command | Press Ctrl+Shift+P, type part of the command name, and press Enter. The list also shows each shortcut and the plugin commands. |
|
||
| 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.
|
||
In a list item, press Tab to make a nested item. Press Shift+Tab to move it one level up. RuneStone renumbers the list.
|
||
Nested ordered lists show letters, then Roman numerals. The Markdown source keeps the numbers, for example `1.`.
|
||
Tab in other text indents by 4 spaces.
|
||
|
||
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 |
|
||
|
||
In Writer, these shortcuts format the selected text:
|
||
|
||
| Format | Shortcut |
|
||
| --- | --- |
|
||
| Bold / Italic | Ctrl+B / Ctrl+I |
|
||
| Strikethrough / Highlight | Ctrl+Shift+X / Ctrl+Shift+H |
|
||
| Link (`[text]()`, with the cursor in the address) | Ctrl+K |
|
||
| 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. On macOS, Cmd replaces Ctrl, and RuneStone shows the macOS symbols, such as ⇧⌘P. Help lists every shortcut.
|
||
|
||
| Action | Shortcut |
|
||
| --- | --- |
|
||
| Find a command | Ctrl+Shift+P |
|
||
| 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 |
|
||
| Nest a list item / Move it up | Tab / Shift+Tab |
|
||
| Bold / Italic / Link (Writer) | Ctrl+B / Ctrl+I / Ctrl+K |
|
||
| Strikethrough / Highlight (Writer) | Ctrl+Shift+X / Ctrl+Shift+H |
|
||
| Show or hide the sidebar | Ctrl+\ |
|
||
| 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 every shortcut.
|
||
|
||
When you report a problem, include the app version, operating system, steps, expected result, and error text.
|