Add the command palette, Write formatting keys, and platform labels

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.
This commit is contained in:
Knotty Wyvern
2026-10-28 19:10:25 -07:00
parent b2348d0fe8
commit ebacdb8164
48 changed files with 506 additions and 125 deletions
+16 -4
View File
@@ -42,7 +42,8 @@ To show workspace settings and plugin data in the navigator, turn on **Settings
| 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. |
| 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. |
@@ -103,6 +104,14 @@ Right-click Markdown text, or press Shift+F10, to open the context menu. Use the
| 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 |
@@ -200,10 +209,11 @@ To open web links from your documents in your system browser instead, turn off *
## Keyboard reference
This table lists the Windows and Linux keys.
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 |
@@ -213,7 +223,9 @@ This table lists the Windows and Linux keys.
| 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 |
| Show or hide the sidebar | Ctrl+B |
| 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 |
@@ -230,6 +242,6 @@ The [Terminal guide](guides/terminal.md) lists the terminal shortcuts.
## 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.
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.