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:
+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