Update editor, workspace, Git services, appearance, and project guides
This commit is contained in:
+39
-12
@@ -4,6 +4,7 @@
|
||||
|
||||
RuneStone installs JavaScript plugins from local ZIP files and experimental Gitea release downloads.
|
||||
Open Settings → Plug-ins to install, enable, disable, or uninstall them.
|
||||
See [plugin names and source folders](plugin-names.md) for display names, stable IDs, and pending manual folder changes.
|
||||
Terminal and Table formulas use the same installed package system as all other plugins.
|
||||
|
||||
## Build and install the feature packages
|
||||
@@ -372,7 +373,7 @@ Settings loads enabled plugins so their configuration pages remain available in
|
||||
The host calls `mount(container, context)` with `context.surface` set to `"settings"` or `"view"`.
|
||||
Older hosts can omit the context argument.
|
||||
Local Autocomplete keeps temporary reference text in its editor view because that text belongs to one window.
|
||||
Open Commands → Configure local autocomplete in that window to use reference text.
|
||||
Open Commands → Configure Local Autocomplete in that window to use reference text.
|
||||
|
||||
The Open tab or view menu contains plugin views and commands with `category: "open"`.
|
||||
Other commands appear in Commands.
|
||||
@@ -406,7 +407,8 @@ The native read command checks the active window's workspace boundary and reject
|
||||
Binary document support requires the updated host source. The earlier 0.1.6 installer does not include it.
|
||||
Check for `api.workspace.readBytes` during activation and report a clear host update error when it is absent.
|
||||
|
||||
Navigation views appear as icon buttons in the ribbon left of the navigation pane.
|
||||
Navigation views with `placement: "sidebar"` appear beside Files, Search, and Bookmarks in the top header.
|
||||
Other navigation views appear as icon buttons in the ribbon left of the navigation pane.
|
||||
The optional view `icon` accepts `list`, `kanban`, or `puzzle`. The default is `puzzle`.
|
||||
Buttons show the view title in a tooltip on hover and keyboard focus.
|
||||
The ribbon remains available when the navigation pane is closed.
|
||||
@@ -448,15 +450,40 @@ Run `scripts/pluginInstall.smoke.mjs`, `scripts/plugins.smoke.mjs`, and `scripts
|
||||
Native plugin packages and restricted permissions remain future work.
|
||||
The core keeps basic Markdown tables, file editing, selection, sorting, and document access when optional features stop.
|
||||
|
||||
## Browser development plugin
|
||||
## Built-in browser
|
||||
|
||||
Browser development lives in `../RuneStone_WebViewer/`.
|
||||
Build `releases/runestone.browser-0.1.0.zip` there with `npm run build:plugin`.
|
||||
The plugin opens editor tabs, contributes to Settings and Bookmarks, and handles web links when selected by the user.
|
||||
A fresh browser store contains one User profile. Users can create blank profiles or duplicate an existing profile.
|
||||
Browser now belongs to RuneStone. The installer includes its interface and native Chromium runtime.
|
||||
Users can open browser tabs, manage profiles in Settings, and use web bookmarks without a plugin ZIP.
|
||||
The existing browser data directory stays the same. Profiles, bookmarks, cookies, and settings remain available.
|
||||
An old Browser package can be removed from Settings. The host does not load it alongside the built-in browser.
|
||||
|
||||
The browser requires the native browser service in this host revision.
|
||||
Build and stage the runtime from its checkout, then include `src-tauri/tauri.browser.conf.json` when building RuneStone.
|
||||
The runtime is an optional host resource, similar in purpose to the native service used by Terminal.
|
||||
Plugin ZIP files still contain JavaScript and assets. They do not install arbitrary native executables.
|
||||
See the browser checkout's README for build steps and current limits.
|
||||
The interface source lives in `src/lib/browser/`. The runtime source remains in `../RuneStone_Browser/`.
|
||||
Stage the runtime with that checkout's `npm run stage:host` before creating an installer.
|
||||
The main Tauri configuration includes `src-tauri/browser-engine/` as an installer resource.
|
||||
Browser startup obtains a session token for its window. Native requests check that token, and cleanup revokes it.
|
||||
|
||||
## Git and sidebar views
|
||||
|
||||
The Git plugin adds source control to the left pane. It supports file diffs, staging, unstaging, commits, and line history.
|
||||
Git must be installed, and the workspace must be the repository root. Linked worktrees are not supported yet.
|
||||
Commit hooks still run. A failed commit keeps the message and shows the error.
|
||||
|
||||
Plugins can register `placement: "sidebar"` views with a navigation icon.
|
||||
The optional `openFile(path)` method opens a workspace file.
|
||||
The optional `git` API supplies status, diff, stage, unstage, commit, and blame operations.
|
||||
The optional `replaceView(currentId, nextId)` method changes the current tab while preserving its position and pin state.
|
||||
For document tabs, `replaceDocumentWithView(document, nextId)` supplies the same behavior.
|
||||
Both methods restrict the source and destination to the calling plugin.
|
||||
|
||||
The Git plugin also supports push, fast-forward-only pull, and a collapsible graph of the latest 100 commits.
|
||||
Changes and Graph collapse independently. The graph shows branches, tags, commit IDs, authors, dates, and commit messages.
|
||||
Push and pull use the current branch's configured upstream and existing Git authentication.
|
||||
Pull stops when local changes or diverging commits prevent a fast-forward update. The plugin does not force-push or create an upstream automatically.
|
||||
|
||||
The optional Git API adds `push()`, `pull()`, and `graph()` in the current host source.
|
||||
These methods require an updated host and remain subject to plugin shutdown checks.
|
||||
|
||||
The Git graph uses graphical commit nodes and parent links. It shows forks, merges, branches, tags, commit IDs, authors, dates, and messages.
|
||||
The host returns structured history from `git.graph()`: `{ commits: [{ id, parents, refs, summary, author, date }] }`.
|
||||
The graph keeps the latest 100 commits. Dashed links mark parents outside that history.
|
||||
The updated Git package requires the matching host build. An older host shows an update message instead of a graph.
|
||||
|
||||
Reference in New Issue
Block a user