Make Git a native feature with an off switch

- Add the native feature runtime in src/lib/features/: the catalog, the switches, the first-start migration, the loader, and the feature sessions.
- Add Settings → Features and the features settings section.
- Add features_legacy. It reads the old plugin packages and changes nothing.
- Move Git from the plugin into src/lib/features/git/, on host internals.
- Remove api.git, the git contribution key, and the SDK Git types.
- Add pnpm check:features. It fails when a feature module loads at start.
- Update the tests, the menu inventory, the docs, and UI-055.
This commit is contained in:
Knotty Wyvern
2026-10-29 15:51:21 -07:00
parent 58f77b2e9f
commit d3218b2501
68 changed files with 2068 additions and 324 deletions
+15
View File
@@ -1012,3 +1012,18 @@ Native shell, background image, and desktop acceptance remain open.
- Evidence: `tests/smoke/browser/engine.smoke.mjs`, with screenshots of each state in both themes and a 360-pixel Settings window.
- Replaces / replaced by: The bundled engine.
- Limits: The download does not resume. A failed download starts again from zero. The engine installs for the current Windows account only. Browser checks mock the native download.
### UI-055 — Settings → Features and native Git
- Type: Rule change
- Date: 2026-10-29
- Status: Implemented for user review
- Decision source: The owner decisions "Native features decision" and "Phase 7 replaced" of 2026-10-29, and Phase 7 decisions 1A, 2A, 3A, 4A, and 5C.
- Previous rule: Git was the optional Git plugin. Settings → Plug-ins enabled or disabled it. Its strings were English only, its file rows and buttons drew their own icons, and its status refreshed every 10 seconds. The "Show Git graph" command showed in the **Plug-in views** menu.
- New rule: Git is a native feature. A new Settings page, **Features**, between Appearance and Plug-ins, has one switch for each native feature with its name and one line of description. A feature that is off loads no code and shows no controls. A feature that is on loads its code at first need. Off applies at once in all windows. Source control uses the shared `IconButton`, tooltips, icons, and catalog. Its status refreshes after a workspace change, on window focus, and after each Git action. **Show Git graph** is in the command palette and in Source control. The new shared icons are `toggle`, `minus`, and `upload`.
- Reason: The owner chose response time and memory over the versatility of the plugin API. A switch lets users remove the controls of a feature that they do not use.
- Scope: Settings → Features, the Source control pane, the Git diff and Git graph tabs, the line history in the status bar, and the command palette.
- Shared implementation: `src/lib/features/`, `src/lib/layout/SettingsDialog.svelte`, `src/lib/plugins/external.ts`, and `src-tauri/src/features.rs`.
- Evidence: `tests/smoke/features/settings.smoke.mjs` and `tests/smoke/features/git.smoke.mjs`, with screenshots in both themes and at 360 pixels in `output/smoke/features/`.
- Replaces / replaced by: The Git plugin (`runestone.git` 0.1.10).
- Limits: Code that a window loaded stays in memory until the window reloads. The old package stays installed until the user removes it.
+30 -6
View File
@@ -62,7 +62,8 @@ Windows is the primary platform. macOS and Linux builds are experimental.
| `workspace.rs` | The workspace root of each window, path checks, atomic saves, the file watcher, search |
| `plugins.rs` | Plugin package review, installation, enable state, removal, and recovery |
| `plugin_sources.rs` | Plugin downloads from Gitea releases |
| `git.rs` | The Git service for the Git plugin. It runs the `git` program. |
| `git.rs` | The Git service of the Git feature. It runs the `git` program. |
| `features.rs` | Reads the old plugin packages of the native features one time, for the switch migration. It changes no plugin file. |
| `pty.rs`, `terminal_platform.rs` | Pseudo-terminals for the Terminal plugin |
| `browser.rs` | The process of the built-in browser engine |
| `backgrounds.rs` | Background image folders for themes and plugins |
@@ -87,7 +88,9 @@ A new command needs an entry in `generate_handler!` in `lib.rs`, in the command
| `settings/` | The settings store (`store.ts`), and the code that moves the old browser values to the settings file (`migration.ts`) |
| `plugins/` | The plugin runtime, the host types (`sdk.ts`, which also exports the SDK types), and Settings → Plug-ins |
| `browser/` | The interface of the built-in browser |
| `completion/`, `git/` | Contracts and services that plugins use |
| `features/` | The native features with an off switch: the catalog (`catalog.ts`), the switches (`state.ts`), the first-start migration, the loader, and one folder for each feature (`git/`). See [Native features](#native-features). |
| `completion/` | Contracts and services that plugins use |
| `git/` | The Git service and its types, for the Git feature and the line history in the status bar |
| `theme/` | Appearance settings, palettes, and the theme tokens (`tokens.css`) |
| `ui/` | Shared menus, pickers, and action icons |
| `i18n/` | Interface text in English, French, Japanese, and Simplified Chinese |
@@ -131,13 +134,14 @@ On macOS, it is `~/Library/Application Support/<identifier>/`. On Linux, it is `
"appearance": { "theme": "default", "mode": "dark" },
"customThemes": [],
"customThemesLegacy": [],
"language": "en"
"language": "en",
"features": { "git": true }
}
```
| Rule | Detail |
| --- | --- |
| Sections | `general`, `appearance`, `customThemes`, `customThemesLegacy` (the original version 1 themes), and `language`. The host does not interpret their values. The frontend normalizes each section. |
| Sections | `general`, `appearance`, `customThemes`, `customThemesLegacy` (the original version 1 themes), `language`, and `features` (the switches of the native features). The host does not interpret their values. The frontend normalizes each section. |
| Size | At most 8 MiB in total. The appearance can hold an image data URL of up to 3,000,000 characters. |
| Writes | `settings_write` replaces one section. The host writes a complete temporary file and renames it. Then it sends `settings-changed` to all windows with the section, the revision, and the value. |
| Damaged file | The host moves the file to `settings.corrupt-<seconds>.json` and writes a new file with the defaults. The first window that reads the settings shows a message one time. |
@@ -152,7 +156,7 @@ After that, `src/lib/settings/store.ts` reads the sections from memory and tells
- Workspace documents stay ordinary local files. Users keep access to them when plugins are disabled.
- The core includes Markdown table editing, rendering, and table formulas.
- Native file access, file watching, search, Git, and terminals belong in Rust.
- Optional features ship as plugins. The [plugin development reference](plugin-development.md) defines the package format and the API.
- Built-in features with an off switch live in `src/lib/features/`. Other optional features ship as plugins. The [plugin development reference](plugin-development.md) defines the package format and the API.
- For sync, prefer a local Git clone. Do not use a live network share as the sync path.
These stay outside the product:
@@ -177,6 +181,7 @@ Run these commands from the repository folder. They do not need an installer.
| `pnpm smoke` | Browser smoke tests. See [Browser smoke tests](#browser-smoke-tests). |
| `pnpm build` | The production frontend build |
| `pnpm check:menus` | The inventory of menu surfaces. See [Interface design](ui-design.md). |
| `pnpm check:features` | A full build. It fails when a native feature module loads at start. See [Native features](#native-features). |
To run one test file, use `node --experimental-strip-types --import ./tests/unit/_svelte/register.mjs --test tests/unit/tables/selection.spec.ts`.
The `--import` hook compiles `.svelte.ts` modules, so a test can import them.
@@ -199,6 +204,25 @@ All text that a user reads goes through the catalog in `src/lib/i18n/messages.ts
Errors of the plugin API stay in English, because they are for plugin developers.
`pnpm check` runs `scripts/i18nAudit.mjs`. It fails for a key that the catalog does not have, a catalog key that the code does not use, and a row without all translations.
## Native features
Git is a native feature: host code with an off switch in **Settings → Features**. It does not use the plugin API.
| Part | File |
| --- | --- |
| The catalog: ID, old plugin ID, name, views, and commands | `src/lib/features/catalog.ts` |
| The switches: the `features` settings section | `src/lib/features/state.ts` |
| The first start: each switch takes the state of the old plugin package | `src/lib/features/migration.ts` and `src-tauri/src/features.rs` |
| One import at first need in each window | `src/lib/features/loader.ts` |
| Views and commands in the workbench | `src/lib/features/session.ts` and `src/lib/plugins/external.ts` |
| The feature code | `src/lib/features/<feature>/index.ts` and its components |
- The catalog holds only static data, so the main bundle stays small. The feature code loads when the user first opens a view, a tab, or a command of the feature. An off feature loads nothing.
- Host code never imports a feature folder statically. `pnpm check:features` builds the app. It fails when a feature module, or a library that only a feature needs, is in a chunk that loads at start.
- Saved tabs and tab transfers keep the ID of the old plugin package as the owner ID, for example `runestone.git`. `builtInPackages` in `external.ts` lists the old package, so it never loads.
- Off stops the feature at once in each window and closes its views. The loaded module stays in memory until the window reloads.
- To add a feature, add its entry to `catalog.ts`, its import to `loader.ts`, its folder to `FEATURE_FOLDERS` in `scripts/featureChunks.mjs`, and its old plugin ID to `LEGACY_PACKAGES` in `src-tauri/src/features.rs`.
## Plugin SDK
The plugin SDK in `packages/plugin-sdk/` is the only source of the public plugin types.
@@ -241,7 +265,7 @@ A test states what it needs near its top. The runner skips the test, with the re
| Line | Requirement |
| --- | --- |
| `// @requires plugin:terminal` | The compiled Terminal plugin |
| `// @requires repo:RuneStone_Git/dist` | A file or folder in a sibling plugin checkout |
| `// @requires repo:RuneStone_Local_Autocomplete/src` | A file or folder in a sibling plugin checkout |
| `// @requires electron` | The browser engine dependencies. Run `npm ci --prefix browser-runtime`. |
| `// @known-issue <defect>` | The test fails because of a known app defect. The run reports it as `known`. If the test passes, the run fails, so that someone removes the line. |
+53
View File
@@ -0,0 +1,53 @@
# Git guide
[RuneStone](../../README.md) · [User guide](../user-guide.md)
This guide explains how to review changes, stage files, commit, push, and pull with Git in RuneStone.
Git is part of RuneStone and is on by default. It needs the `git` program on the system path. To turn it off, see [Turn features on or off](../user-guide.md#turn-features-on-or-off).
## Review and stage changes
1. Open the root folder of the repository as the workspace.
2. Select **Source control** in the navigation buttons at the top of the side pane.
3. Select a file to open its diff in an editor tab. **Open file** in that tab opens the file in the editor.
4. Select the plus button beside a file to stage it, or the minus button to unstage it. The button beside a group stages or unstages all files in that group.
Source control shows the current branch and two groups. **Staged changes** go into the next commit. **Changes** holds the files that still need review or staging.
A file shows in both groups when only part of its content is staged. Unstage keeps the content of the working file.
Source control reads the repository again after each change in the workspace, also in the `.git` folder, and when the window gets focus. **Refresh source control** reads it at once.
A diff tab shows the file as it was when you selected it. Select the file again to update the diff. Git reads the files on disk, so save your edits first.
## Commit
1. Stage the files for the commit.
2. Enter a commit message.
3. Select **Commit staged**, or press Ctrl+Enter (⌘+Enter on macOS).
A commit contains only the staged changes. Git hooks and signing settings apply as usual. Set your author name, email, and signing tools in Git outside RuneStone.
If a hook stops the commit, the error stays visible, and the message stays in the field.
## Push and pull
**Push to the upstream branch** and **Pull from the upstream branch** use the upstream branch of the current branch and your current Git sign-in.
Pull accepts only a fast-forward update. It stops when local changes or diverging commits prevent that update. RuneStone never forces a push, and it does not set an upstream branch.
## Commit graph
Select **Show Git graph** in Source control, or run **Show Git graph** from the command palette (Ctrl+Shift+P). The graph opens in an editor tab.
The graph shows the latest 100 commits with their branches, tags, IDs, authors, dates, and messages. Dashed lines continue to parents outside these 100 commits.
Select a commit to see its changed files, then select a file to see its diff. The arrow keys, Home, and End move through the commits.
## Line history
While a saved text file is open, the status bar shows the author and the date of the last commit for the line of the cursor. A new or changed line can show no author until you commit it.
## Limits
- Parent repositories and linked worktrees with their metadata outside the workspace do not work. Open the repository root.
- RuneStone does not include a Git program.
- Create repositories, switch branches, resolve conflicts, and set remotes with Git outside RuneStone. RuneStone has no discard, reset, or force push.
- A Git operation stops after 30 seconds or 2 MiB of output. If an operation stops, refresh to see its result before you do it again.
- The diff of a new text file shows at most 512 KiB. A binary file shows a notice instead of a diff.
+7 -8
View File
@@ -6,7 +6,6 @@
"RuneStone_Terminal",
"RuneStone_Background_Slideshow",
"RuneStone_Local_Autocomplete",
"RuneStone_Git",
"RuneStone_PDF_Viewer",
"RuneStone_CSV_Viewer"
],
@@ -94,6 +93,13 @@
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/features/git/GitGraph.svelte": {
"counts": {
"picker": 1
},
"design": "Commit history listbox of the native Git feature, not a popup menu",
"check": "tests/smoke/features/git.smoke.mjs"
},
"RuneStone/src/lib/layout/CommandPalette.svelte": {
"counts": {
"picker": 1,
@@ -298,13 +304,6 @@
"design": "Host radio menu; native server select only on older hosts",
"check": "tests/smoke/plugins/choiceMenus.smoke.mjs"
},
"RuneStone_Git/src/view.js": {
"counts": {
"picker": 1
},
"design": "Commit history listbox, not a popup menu",
"check": "Source inspection: persistent history list retains its own layout"
},
"RuneStone_CSV_Viewer/src/index.js": {
"counts": {
"action": 1,
+1 -26
View File
@@ -14,7 +14,6 @@ This reference gives the package contract, the build procedure, and the API for
- [Terminal API](#terminal-api)
- [Folder grants](#folder-grants)
- [Plugin services](#plugin-services)
- [Git API](#git-api)
- [Background API](#background-api)
## Install the SDK
@@ -265,7 +264,6 @@ Older hosts ignore unknown fields in objects that you pass to the host, such as
| `assets.read(path)` | | Read a package file as a `Uint8Array`. |
| `ui.showActionMenu(options)` | yes | Open the shared RuneStone action menu. See [Menus](#menus). |
| `completion` | yes | Autocomplete fields and providers. See the [completion API](completion.md). |
| `git` | yes | Git operations for the active workspace. See [Git API](#git-api). |
| `pty` | yes | Terminal sessions. See [Terminal API](#terminal-api). |
| `files` | yes | Folders outside the workspace that the user granted to the plugin. See [Folder grants](#folder-grants). |
| `services` | yes | Data that one plugin offers to other plugins. See [Plugin services](#plugin-services). |
@@ -388,7 +386,6 @@ Only one enabled plugin can own each key. The host removes contributions before
| Key | Purpose | Owner |
| --- | --- | --- |
| `terminal` | Mounts terminal controls in a host element. Returns update, command, and dispose functions. | Terminal plugin |
| `git` | Supplies line blame for the editor. | Git plugin |
| `browser` | The built-in browser. `newTab(url?)` opens a browser tab. `open(url)` returns false when the system browser must open a web link, for example before the engine is installed. | RuneStone |
A terminal contribution must stop its controls and native sessions before its cleanup finishes.
@@ -442,7 +439,7 @@ The host still accepts the native calls of released plugins. A later host can re
| Background Slideshow | `api.backgrounds.chooseFolder`, `list`, `read`, `defaultFolder`, `readImageSettings`, `writeImageSettings` | Read images and per-image settings from a folder outside the workspace | `api.files` with a folder grant |
| Background Slideshow | `api.workspace.readOptional(".runestone/pm/workspace.json")` | Read the board names of Project Management | A service of Project Management through `api.services` |
The Git, Project Management, Local Autocomplete, PDF Viewer, and CSV Viewer plugins make no native calls.
The Project Management, Local Autocomplete, PDF Viewer, and CSV Viewer plugins make no native calls.
Their test scripts replace `window.__TAURI_INTERNALS__` with a test double. That is test code and does not go into the package.
## Terminal API
@@ -509,28 +506,6 @@ Each method call returns a promise. The host copies the arguments and the result
When the provider stops, the host removes its services and notifies the subscribers. Calls through an old service object then fail. Call `get` again after a notification.
Make the data of a service a documented contract of the provider. Give its name, methods, and result shapes in the documentation of the provider plugin.
## Git API
`api.git` gives Git operations for the active workspace of the window. The host runs the `git` command, one operation at a time.
The SDK type is `GitApi`. Every method checks for plugin shutdown first.
| Method | Contract |
| --- | --- |
| `status()` | Returns `{ available, repository, branch, changes }`. Each change has `path`, `originalPath?`, `index`, and `worktree`. |
| `diff(path, staged)` | Returns the diff text of one file. |
| `stage(paths)` / `unstage(paths)` | Change the index for 1 to 10,000 paths. |
| `commit(message)` | Commit the staged changes. The message has 1 to 65,536 bytes. |
| `push()` / `pull()` | Push or pull the current branch. |
| `graph()` | Returns `{ commits }` with at most 100 commits from all refs. |
| `commitDetails(commit)` | Returns `{ id, parents, author, date, message, files }` for a full commit ID. |
| `commitDiff(commit, path)` | Returns the diff of one file in a commit, compared to the first parent. |
| `blame(path, line)` | Returns `{ commit, author, date, summary }` for one line, or `null`. `date` is ISO 8601. |
Each graph commit is `{ id, parents, refs, summary, author, date }`. Parent IDs can refer to commits outside the 100 returned commits.
Older hosts can have `git` without `push`, `pull`, `graph`, `commitDetails`, or `commitDiff`. Make sure that a method exists before you call it.
Example: the [Git plugin](https://git.knottywyvern.com/kwyvern/RuneStone_Git/src/branch/main/docs/usage.md#commit-graph) draws the graph from these commits.
For its native service and test setup, see the [Git plugin development guide](https://git.knottywyvern.com/kwyvern/RuneStone_Git/src/branch/main/docs/development.md).
## Background API
`api.backgrounds` (`version: 1`) lets a plugin show image frames behind the RuneStone interface.
+2
View File
@@ -33,6 +33,8 @@ The browser preview (`pnpm dev`) has no installed plugins unless a smoke test su
The built-in browser and the theme editor use the plugin API, but they are not packages. `builtInModules` in `src/lib/plugins/external.ts` lists them. The host starts them in each window, and the plugin menus do not list their tools. A browser window starts only the browser.
`builtInPackages` lists the IDs of old packages for features that RuneStone now includes. The host never loads such a package. Settings → Plug-ins shows it as included with RuneStone, so that the user can remove it.
Native features, such as Git, do not use the plugin API. `syncFeatures` in `external.ts` gives each feature that is on a feature session (`src/lib/features/session.ts`) under the ID of its old package, so that its views share the tab model of plugin views. Browser windows start no native feature. See [Native features](development.md#native-features).
`features_legacy` (`src-tauri/src/features.rs`) reads the catalog row and the kept `plugin-data/<id>/settings.json` of an old package. It accepts only the IDs of native features and changes no file.
### Scans
+3 -3
View File
@@ -2,9 +2,9 @@
[RuneStone](../README.md) · [User guide](user-guide.md)
This guide explains how to install, enable, update, and remove optional plugins such as Terminal, Git, and PDF Viewer.
This guide explains how to install, enable, update, and remove optional plugins such as Terminal, PDF Viewer, and CSV Viewer.
Manage all plugins in **Settings → Plug-ins**. The built-in browser and table formulas are part of RuneStone and are not plugins.
Manage all plugins in **Settings → Plug-ins**. The built-in browser, table formulas, and Git are part of RuneStone and are not plugins. To turn Git off, see [Turn features on or off](user-guide.md#turn-features-on-or-off).
Plugins run with the full access of RuneStone, including your files. There is no permission sandbox, and the author field does not prove who published the plugin. Enable only code that you trust.
@@ -76,7 +76,6 @@ RuneStone uses the token for this request only and does not save it.
| Plugin | Guide |
| --- | --- |
| Terminal | [Terminal guide](guides/terminal.md) |
| Git | [Git usage](https://git.knottywyvern.com/kwyvern/RuneStone_Git/src/branch/main/docs/usage.md) |
| Project Management | [Project Management guide](https://git.knottywyvern.com/kwyvern/RuneStone_PM/src/branch/main/project-management.md) |
| Background Slideshow | [Background Slideshow usage](https://git.knottywyvern.com/kwyvern/RuneStone_BG_Slideshow/src/branch/main/docs/usage.md) |
| Local Autocomplete | [Local Autocomplete trial guide](https://git.knottywyvern.com/kwyvern/RuneStone_LocalModel/src/branch/main/docs/trial-guide.md) |
@@ -95,6 +94,7 @@ RuneStone uses the token for this request only and does not save it.
| The plugin shows **Removal incomplete** | Choose **Retry cleanup** to finish the removal. If the error names changed files, check that path first. |
| A Gitea release has no usable package | Check the release tag. Ask the publisher for a release with one attached plugin ZIP. |
| An old Browser plugin shows in the list | Uninstall it. The built-in browser keeps your profiles and bookmarks. |
| An old Git plugin shows in the list | Uninstall it. RuneStone includes Git, and the first start after the update kept the plugin state. See [Turn features on or off](user-guide.md#turn-features-on-or-off). |
| An old Table Formulas plugin shows in the list | Uninstall it. RuneStone does not run it. Your formulas stay in your files. See [Calculate with table formulas](guides/document-tools.md#calculate-with-table-formulas). |
To see the installed files of a plugin, choose **Show files** beside it. **Open plugins folder** opens the folder for all plugins.
+4 -2
View File
@@ -151,7 +151,7 @@ Decisions: [UI-002](design-decisions.md#ui-002--share-the-requested-dropdown-des
- The left ribbon is always present. It holds the tools (New browser tab, Terminal, Plug-in views, and Commands), then a line, then the plugin view shortcuts. Its menus open at its right. While the side pane is closed, the workspace switcher, Help, and Settings move to the bottom of the ribbon, so they stay reachable.
- Tabs keep a minimum width of 120 pixels and scroll. Fades show tabs out of view, and ⌄ lists all tabs. A drag area of 120 pixels sits after the tabs. In a narrow header, the tabs shrink first, and the drag area keeps at least 48 pixels.
- Windows and Linux title bars use square caption buttons, 46 pixels wide and full height. Rest the pointer on maximize for Snap Layouts on Windows 11. macOS keeps its native traffic lights, and title bars leave `--rs-titlebar-inset-start` free for them.
- Files, Search, Bookmarks, and installed sidebar views such as Git share the top navigation group. The active navigation button shows which view fills the left pane.
- Files, Search, Bookmarks, Source control (while Git is on), and the sidebar views of installed plugins share the top navigation group. The active navigation button shows which view fills the left pane.
- Plugin editor views can use the left ribbon.
- The built-in browser opens from its own ribbon action. Project Management opens from Plug-in views. Keep Plug-in views in the ribbon, away from the new-tab button.
- Document and plugin tabs share the tab bar. The new-tab button follows the tabs. Tabs keep their order and pin state when a plugin replaces its view.
@@ -172,12 +172,14 @@ Decisions: [UI-004](design-decisions.md#ui-004--detached-tab-work-area), [UI-039
- Put related plugin metadata and actions in compact rows.
- Controls wrap at narrow widths, and the content area scrolls. Long navigation must leave room for the selected page.
- General offers the interface language through the shared action menu.
- **Features** lists each native feature in one card: its name, one line of description, and a switch. The page sits between Appearance and Plug-ins, and the `toggle` icon marks it. A failed load shows its cause under the switch in the error color.
- A feature that is off shows no controls: no navigation button, ribbon button, command, or tab.
- The transparency slider covers 0% to 100% and uses the accent and surface tokens of the current theme.
- Appearance shows a preview card for each theme. The arrow keys move between the cards and select a theme. The current card has the selection outline and a check mark.
- **Edit theme** opens the theme editor as a workbench tab in the window that opened Settings. The editor shows every color role in groups, with a swatch, a hex field, the lowest contrast result, and a reset button. Each change shows at once in that window. Save writes a short schema 3 theme with a base.
- Custom theme files use schema 3: one `mode`, an optional built-in `base` theme, the `colors` that differ from the base, and `fonts` stacks for interface, prose, headings, and code. The export writes every color and font. Schema 1 and 2 imports convert to schema 3. A schema 1 import selects the palette of the current appearance.
Decisions: [UI-028](design-decisions.md#ui-028--adjustable-surface-transparency-and-fixed-custom-palettes), [UI-042](design-decisions.md#ui-042--theme-file-format-3-and-terminal-colors), [UI-047](design-decisions.md#ui-047--theme-editor-tab-and-theme-cards).
Decisions: [UI-028](design-decisions.md#ui-028--adjustable-surface-transparency-and-fixed-custom-palettes), [UI-042](design-decisions.md#ui-042--theme-file-format-3-and-terminal-colors), [UI-047](design-decisions.md#ui-047--theme-editor-tab-and-theme-cards), [UI-055](design-decisions.md#ui-055--settings--features-and-native-git).
## Typography and tables
+17 -1
View File
@@ -14,7 +14,9 @@ This guide explains how to work with files, documents, tabs, settings, and the b
| 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) |
| Review changes and commit with Git | [Git guide](guides/git.md) |
| Turn a built-in feature on or off | [Turn features on or off](#turn-features-on-or-off) |
| Add Terminal or other plugins | [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) |
@@ -198,9 +200,23 @@ Settings apply at once to all workspaces on this computer and update all open wi
| --- | --- |
| General | Display language, **File name title**, **Keep line breaks**, **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). |
| Features | Turn Git on or off. See [Turn features on or off](#turn-features-on-or-off). |
| 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 |
### Turn features on or off
Git is a built-in feature with an off switch. Open **Settings → Features** and use the switch beside the feature.
- A feature that is on uses no extra memory until you first use it, for example when you open Source control.
- A feature that is off does not load. Its buttons, commands, and tabs do not show.
- A change applies at once in all windows. The code that a window loaded stays in memory until you restart RuneStone.
After an update, each new built-in feature takes the state of its old plugin package: on when the package was enabled, off when it was disabled.
Without an old package, the feature starts on. Settings → Plug-ins shows an old package as **Included with RuneStone**. You can uninstall it.
### Display language
**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.