Show one view control and name the file once
Phase 5-3. - One radio group shows Write, Source, and Read at all times, with an icon and a name. Narrow panes show only the icons. The arrow keys move the choice, and the group has one Tab stop. The current choice gets the selection fill and an accent bar. Hover gets only a fill. - A Split toggle shows Read beside Write or Source. Each document pane keeps a split flag beside its reading flag. Read ends Split. - Ctrl+Shift+E switches between Read and the editor. Ctrl+E still switches between Write and Source. - "IDE" becomes "Source" in the Chrome type, the tab menu (a View submenu), the status bar, the catalog, the tests, and the docs. - Settings, General, File name title hides the title in Write and Read. It is on by default. - The breadcrumb shows only the folder of the file. The status bar shows the view, not the path. - ModeSwitcher.svelte and its hover test are gone. The new test layout/viewModes covers the control. - The command palette from 5-2 gets its row in docs/menu-surfaces.json. - The user guide Format table is whole again. The 5-2 edit had put the Paragraph and Insert rows under the shortcut table. - 8 new catalog rows and 10 removed rows, in French, Japanese, and Simplified Chinese. - Docs: UI-049, the user guide, ui-design.md, document-tools.md, development.md, and the README feature list. Tests: the new layout/viewModes, new cases in documentPanes.spec.ts and settings.spec.ts, and the chooseView harness helper. 21 smoke tests use the new control. Tests that read the full path from the breadcrumb now read its tooltip.
This commit is contained in:
@@ -918,3 +918,19 @@ Native shell, background image, and desktop acceptance remain open.
|
||||
- Evidence: `tests/smoke/layout/commands.smoke.mjs`, `tests/unit/ui/shortcuts.spec.ts`, and `tests/unit/layout/workbenchKeys.spec.ts`.
|
||||
- Replaces / replaced by: The Ctrl+B sidebar shortcut in the user guide.
|
||||
- Limits: The macOS labels are tested as unit cases, not on a Mac. Browser checks use desktop service mocks.
|
||||
|
||||
### UI-049 — One view control and one file name
|
||||
|
||||
- Type: Rule change
|
||||
- Date: 2026-10-28
|
||||
- Status: Implemented for user review
|
||||
- Decision source: Owner decisions 4 and 5 of 2026-10-27 (interface review issues 5 and 7), stage 5-3.
|
||||
- Previous rule: Two icon-only switchers, "Document view" (Edit, Read, Split) and "Editor layout" (Writer, IDE), showed only the current choice until hover. Hover widened them, so the target moved. The same views had other names in the tab menu ("Reading view", "Source mode") and in the status bar ("IDE"). The file name showed in the tab, in the breadcrumb as a full path, as a title, and in the status bar.
|
||||
- New rule: One radio group shows Write, Source, and Read at all times, with an icon and a name. Narrow panes show only the icons. The arrow keys move the choice, and the group has one Tab stop. The current choice gets the selection fill and an accent bar. Hover gets only a fill. A separate **Split** toggle shows Read beside Write or Source. Write and Source keep Split, and Read ends it. Ctrl+E switches between Write and Source, and Ctrl+Shift+E switches between Read and the editor. The tab menu, the status bar, the docs, and the code use the same names. "IDE" is not a view name.
|
||||
- File name: The file name title stays on by default. **Settings → General → File name title** hides it in Write and Read. The breadcrumb shows only the folder, with the full path in its tooltip. The status bar shows the view, not the path.
|
||||
- Reason: A choice that a user cannot see does not help, and a target must not move under the pointer. "IDE" promised language services that Source does not have. The tab already names the file.
|
||||
- Scope: Document panes, the tab menu, the status bar, Settings → General, and the docs.
|
||||
- Shared implementation: `ViewModes.svelte`, `documentPanes.ts` (`split` beside `reading`), `fileTitle.ts`, and the `Source` value of the `Chrome` type.
|
||||
- Evidence: `tests/smoke/layout/viewModes.smoke.mjs`, `tests/unit/layout/documentPanes.spec.ts`, and `tests/unit/layout/settings.spec.ts`.
|
||||
- Replaces / replaced by: `ModeSwitcher.svelte` and its hover test.
|
||||
- Limits: Split now shows Write beside Read when Write is the editor. Choose Source for the former source and preview layout. Browser checks use desktop service mocks.
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ A new command needs an entry in `generate_handler!` in `lib.rs`, in the command
|
||||
|
||||
| Folder | Responsibility |
|
||||
| --- | --- |
|
||||
| `layout/` | The app shell: `Workbench.svelte` holds the state and the commands, and `WorkbenchHeader`, `PluginRibbon`, `LeftPane`, `DocumentArea`, `RightPane`, and `StatusBar` draw its regions. Also the file tree, tabs, panes, Settings, and dialogs |
|
||||
| `layout/` | The app shell: `Workbench.svelte` holds the state and the commands, and `WorkbenchHeader`, `PluginRibbon`, `LeftPane`, `DocumentArea`, `RightPane`, and `StatusBar` draw its regions. `ViewModes` is the Write, Source, and Read control of each document pane. Also the file tree, tabs, panes, Settings, and dialogs |
|
||||
| `editor/` | The document editor (`DocumentEditor.svelte`) with its Write and Source configurations, Markdown lists, tables, links, images, and editor menus |
|
||||
| `formulas/` | Table formulas: the parser and evaluator (`engine.ts`), the rendered results, the formula help, and the `tableFormulas` setting (`index.ts`) |
|
||||
| `workspace/` | Tauri wrappers, document buffers, the workspace session (`session.svelte.ts`: marks, renames, change events, and the note index), paths, templates, and tab transfer (`tabTransfer.ts`) |
|
||||
|
||||
@@ -13,7 +13,7 @@ This guide explains how to insert and edit images, read diagrams, edit Markdown
|
||||
|
||||
Undo removes the inserted link. It keeps the image file.
|
||||
|
||||
In Writer, the image shows and its Markdown stays hidden. To edit the Markdown, choose **Edit image source**. To hide it again, choose the same button, press Escape, or move the cursor away.
|
||||
In Write, the image shows and its Markdown stays hidden. To edit the Markdown, choose **Edit image source**. To hide it again, choose the same button, press Escape, or move the cursor away.
|
||||
|
||||
Select an image, then right-click it or press Shift+F10 for these actions:
|
||||
|
||||
@@ -22,11 +22,11 @@ Select an image, then right-click it or press Shift+F10 for these actions:
|
||||
- **Copy path** and **Show in Explorer**, for workspace images
|
||||
|
||||
**Remove image**, or the Delete key, removes the image link from the note. It does not delete the file. Undo restores the link.
|
||||
Zoom works in Writer, Read, and Split. It can fit the image or magnify it. Press Escape to close it.
|
||||
Zoom works in Write, Read, and Split. It can fit the image or magnify it. Press Escape to close it.
|
||||
|
||||
## Read diagrams and document properties
|
||||
|
||||
Writer, Read, and Split show wiki links, note callouts, and Mermaid diagrams.
|
||||
Write, Read, and Split show wiki links, note callouts, and Mermaid diagrams.
|
||||
RuneStone renders Mermaid diagrams locally. If a diagram is not valid, RuneStone shows an error message and the diagram source.
|
||||
Read shows frontmatter in a collapsed **Properties** section.
|
||||
|
||||
@@ -95,7 +95,7 @@ Start a cell with `=` to make a formula. Columns use letters A, B, … AA. Row 1
|
||||
| Functions | SUM, AVERAGE, MIN, MAX, COUNT, ABS, and ROUND |
|
||||
|
||||
Functions that take a range ignore text and blank cells. Arithmetic uses zero for a blank cell.
|
||||
Results update in Writer, Read, and Split. Select a result to edit its formula. Enter saves the formula, and Tab moves to the next cell.
|
||||
Results update in Write, Read, and Split. Select a result to edit its formula. Enter saves the formula, and Tab moves to the next cell.
|
||||
The **Formulas** control below each table explains the syntax. The active cell shows its address.
|
||||
A formula that is not valid, a missing cell, or a circular reference shows an error label.
|
||||
|
||||
|
||||
@@ -94,6 +94,14 @@
|
||||
"design": "Shared action menu",
|
||||
"check": "tests/smoke/menus/consistency.smoke.mjs"
|
||||
},
|
||||
"RuneStone/src/lib/layout/CommandPalette.svelte": {
|
||||
"counts": {
|
||||
"picker": 1,
|
||||
"localPopup": 3
|
||||
},
|
||||
"design": "Shared searchable picker (rs-picker) for the command palette",
|
||||
"check": "tests/smoke/layout/commands.smoke.mjs"
|
||||
},
|
||||
"RuneStone/src/lib/layout/QuickOpen.svelte": {
|
||||
"counts": {
|
||||
"picker": 1,
|
||||
|
||||
+6
-6
@@ -167,10 +167,10 @@ Decisions: [UI-028](design-decisions.md#ui-028--adjustable-surface-transparency-
|
||||
## Typography and tables
|
||||
|
||||
- The interface uses `--rs-font-ui`. Prose uses `--rs-font-prose`. Headings use `--rs-font-heading`.
|
||||
- The IDE and Terminal share `--rs-font-mono` and `--rs-code-font-weight` (default 300). The monospace stack starts with Cascadia Mono, then Cascadia Code, JetBrains Mono, Fira Code, and Consolas. Terminal font size is a separate setting.
|
||||
- Source and Terminal share `--rs-font-mono` and `--rs-code-font-weight` (default 300). The monospace stack starts with Cascadia Mono, then Cascadia Code, JetBrains Mono, Fira Code, and Consolas. Terminal font size is a separate setting.
|
||||
- Document headings use space between sections, not separator lines. Heading fold controls use the shared chevron and take keyboard focus.
|
||||
- Tables use shared cell padding and line height. Entering a cell does not change its row height.
|
||||
- A table row needs an unescaped pipe. Writer and Reading use the same row rule. A paragraph after a table stays a paragraph when the separator line is removed.
|
||||
- A table row needs an unescaped pipe. Write and Read use the same row rule. A paragraph after a table stays a paragraph when the separator line is removed.
|
||||
- A table link shows its Markdown source when the caret enters it. The caret stays at the chosen label character. Edit link selects the full target inside the cell. Test ordinary clicks and keyboard entry before menu actions ([UI-025](design-decisions.md#ui-025--table-links-hide-their-source-after-repeated-fixes)).
|
||||
|
||||
Decisions: [UI-005](design-decisions.md#ui-005--heading-spacing).
|
||||
@@ -200,8 +200,8 @@ Decisions: [UI-009](design-decisions.md#ui-009--character-theme-appearances), [U
|
||||
|
||||
- The app image fills the work area below the titlebar, including new tabs and document views. It stays fixed while content scrolls.
|
||||
- Sidebars use `--rs-image-sidebar-bg` (82% tint). Editor surfaces use `--rs-image-editor-bg` (90% tint). Without an image, both are opaque.
|
||||
- Writer, Reading, split, and IDE views share the editor surface. CodeMirror layers stay transparent above it.
|
||||
- Code blocks in Writer and Reading use `--rs-code-block-bg`.
|
||||
- Write, Source, Read, and Split share the editor surface. CodeMirror layers stay transparent above it.
|
||||
- Code blocks in Write and Read use `--rs-code-block-bg`.
|
||||
- New-tab buttons use `--rs-image-control-bg` and `--rs-image-control-hover-bg`. Their tint keeps labels readable while the image stays visible. The new-tab screen shows only its action buttons, with icons, labels, and shortcuts.
|
||||
- Headers and dialogs keep their own surfaces.
|
||||
- The app work area and Project Management keep separate images and settings in every theme. An image can be up to 50 MiB. Image bytes stay in IndexedDB, and settings keep a small reference.
|
||||
@@ -233,7 +233,7 @@ Decisions: [UI-015](design-decisions.md#ui-015--slower-slideshow-fades), [UI-020
|
||||
|
||||
- Use one tooltip per control, with no duplicate native `title`. Tooltips use the `--rs-tooltip-*` tokens for padding, font size, surface, text, and shadow. Table cell hints use the same surface.
|
||||
- Hover and keyboard focus show a tooltip. Escape dismisses it. It stays inside the viewport.
|
||||
- Text selection uses `--rs-selection` and `--rs-selection-text` in Writer, Reading, the IDE, and Project Management fields. A CodeMirror selection layer must override its generated default styles.
|
||||
- Text selection uses `--rs-selection` and `--rs-selection-text` in Write, Source, Read, and Project Management fields. A CodeMirror selection layer must override its generated default styles.
|
||||
- Text selection keeps the theme hue at 65% opacity or less, so the background shows through. A lower explicit opacity stays unchanged. Text stays opaque. Theme exports keep the source colors.
|
||||
|
||||
Decisions: [UI-019](design-decisions.md#ui-019--one-tooltip-surface), [UI-029](design-decisions.md#ui-029--text-selection-transparency).
|
||||
@@ -243,7 +243,7 @@ Decisions: [UI-019](design-decisions.md#ui-019--one-tooltip-surface), [UI-029](d
|
||||
- A workspace link can open another document in a pane to the right. A duplicate target focuses its existing pane.
|
||||
- Closing a split keeps its tab and unsaved text. The focused pane controls Save, the outline, and the Terminal selection.
|
||||
- Narrow work areas stack the panes vertically. Pane layouts stay local to the window.
|
||||
- Writer, source, Reading, and plugin editor views share `FindPanel.svelte` and `find.css`.
|
||||
- Write, Source, Read, and plugin editor views share `FindPanel.svelte` and `find.css`.
|
||||
- A plugin document editor without a Find handler searches its visible rendered text through `readingSearch.ts`. Rendered-text Find has no replace controls. Plugin Find handlers stay in use for views with their own search engine.
|
||||
- Generic plugin views and Kanban documents have no fallback Find.
|
||||
- Ctrl+F opens Find. Enter and Shift+Enter move between matches. Escape closes Find and returns focus. Find and Replace fields turn off saved-input suggestions.
|
||||
|
||||
+22
-16
@@ -70,26 +70,31 @@ On macOS and Linux, you can still open, edit, rename, and delete existing files
|
||||
|
||||
## Edit documents
|
||||
|
||||
Each document pane has two controls:
|
||||
Each document pane has one view control with three choices, and a **Split** button:
|
||||
|
||||
| Control | Choices |
|
||||
| Choice | Shows |
|
||||
| --- | --- |
|
||||
| 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. |
|
||||
| **Write** | Formatted Markdown. The active line shows its Markdown source. |
|
||||
| **Source** | The plain source with line numbers and syntax colors |
|
||||
| **Read** | The rendered document, without editing. Markdown files only. |
|
||||
| **Split** | Read beside Write or Source. Narrow panes stack the two views. Select **Split** again to close it. Markdown files only. |
|
||||
|
||||
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.
|
||||
Press Ctrl+E to switch between Write and Source. Press Ctrl+Shift+E to switch between Read and the editor. The tab menu has the same choices under **View**.
|
||||
In a narrow pane, the control shows only icons. Hover over an icon, or focus it with the keyboard, to see its name. The arrow keys move the choice.
|
||||
The status bar shows the current view. The bar above the document shows the folder of the file, and the tab shows the file name.
|
||||
Write 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.
|
||||
To rename a note, select its title in Write 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.
|
||||
To hide the title in Write and Read, turn off **Settings → General → File name title**. Then use F2 or **Rename…** in the tab menu.
|
||||
|
||||
### Links and backlinks
|
||||
|
||||
- Ctrl+click a link in Writer or IDE. In Read, a normal click follows the link.
|
||||
- Ctrl+click a link in Write or Source. 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.
|
||||
@@ -104,16 +109,16 @@ 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 |
|
||||
| Paragraph | Bulleted and numbered lists, tasks, headings 1–6, body text, and quotes |
|
||||
| Insert | Footnotes, tables, callouts, horizontal rules, code blocks, and math blocks |
|
||||
|
||||
In Writer, these shortcuts format the selected text:
|
||||
In Write, 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.
|
||||
@@ -187,7 +192,7 @@ 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 |
|
||||
| General | Display language, **File name title**, **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 |
|
||||
@@ -221,10 +226,11 @@ This table lists the Windows and Linux keys. On macOS, Cmd replaces Ctrl, and Ru
|
||||
| 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 |
|
||||
| Switch Write and Source | Ctrl+E |
|
||||
| Switch Read and the editor | Ctrl+Shift+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 |
|
||||
| Bold / Italic / Link (Write) | Ctrl+B / Ctrl+I / Ctrl+K |
|
||||
| Strikethrough / Highlight (Write) | Ctrl+Shift+X / Ctrl+Shift+H |
|
||||
| Show or hide the sidebar | Ctrl+\ |
|
||||
| Rename | F2 |
|
||||
| Delete to the trash / Delete permanently | Delete / Shift+Delete |
|
||||
@@ -236,7 +242,7 @@ 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.
|
||||
- Source 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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user