Files
RuneStone/docs/product-scope.md
T

118 lines
6.1 KiB
Markdown

# Product scope
[Back to RuneStone](../README.md)
This reference preserves intended capabilities and design constraints. Some features already exist.
See the [roadmap](roadmap.md) for goals and milestones, and the [user guide](user-guide.md) for current behavior and limitations.
The core stays active while installed packages supply optional Terminal and Table formulas features.
External JavaScript packages can add commands and views. See the [plugin guide](plugins.md) for current boundaries.
## Workspace and files
- Open one folder as the workspace.
- Keep notes, scripts, and images in the same tree.
- Show workspace files without applying `.gitignore`, `.ignore`, or global Git exclusions.
- Watch the folder for changes. Poll when the path is a network drive.
- Prefer a local Git clone. Do not treat a live network share as the sync path.
- Store display order, pins, and bookmarks in `.runestone/`. Store plugin packages and retained plugin settings in application data.
- Open an existing Obsidian folder as files plus wiki links. Ignore `.obsidian`.
## Writer and IDE
- Use one editor engine for notes and code.
- Switch chrome between Writer and IDE. Autodetect from the file type. Allow a per-file override.
- Writer chrome uses wrapped text, a document preview, and image hover previews.
- IDE chrome uses line numbers, a minimap, and a terminal dock.
- Left-click a file in the navigation pane to open it in the current tab; middle-click to open it in a new tab. Tabs with unsaved edits stay open. Already-open files select their existing tab. Close a tab with the close control or the middle mouse button.
- Support Markdown, Python, JavaScript, TypeScript, JSON, YAML, TOML, and shell at first.
- Parse CommonMark, GFM tasks and tables, YAML frontmatter, wiki links, and tags.
## Navigator
- Show a left activity bar with Files, Search, and Bookmarks.
- Click the active item again to hide the sidebar.
- Right-click empty space to create a folder or a note.
- Right-click a file for copy, bookmark, path copy, reveal, pin, rename, and delete.
- Drag files and folders to move them or to set display order.
- Save display order. Do not reorder inodes for sort.
- Show a ribbon with new file, new folder, sort, and collapse all or expand all.
## Panes
- Show an outline of headings and symbols on the right. Allow collapse.
- Show a minimap of the open buffer.
- Open a terminal whose working directory is the workspace root.
- Allow more than one terminal. Add a session and kill that session from a rail on the right of the dock.
- Show a document preview that renders Markdown images.
## Plugins
Terminal and Table formulas use the same installed package system as all other plugins.
External JavaScript packages now support local installation, commands, views, retained settings, and removal with one confirmation.
Users can enable or disable each plugin. A marketplace is outside the planned scope.
Installation accepts plugin packages or folders and stores copies in the application data directory.
Uninstall requires one confirmation before RuneStone removes the installed plugin files.
Cancel preserves the plugin. Removal keeps settings, source packages, and workspace documents.
See the [installation and removal guide](plugins.md#uninstall-with-one-confirmation).
### Plugin to-do list
- [x] Use one package system with API version checks, cleanup, saved preferences, and enable controls.
- [x] Add external package loading, exact API compatibility checks, and retained plugin settings.
- [x] Define an external API for commands, views, and workspace files.
- [x] Require one confirmation before removing installed plugin files.
- [ ] Add isolated execution and restricted permissions.
- [x] Move terminal views, shortcuts, settings, and desktop API calls into an external plugin package.
- [ ] Move native terminal services into a separate in-house package.
- [x] Move formula evaluation, rendered results, and help controls into an external Table formulas package.
- [ ] Move the remaining spreadsheet operations into a separate in-house package.
- [ ] Add a Kanban plugin for boards, columns, and task cards.
- [ ] Add a Gantt plugin for task timelines and dependencies.
- [ ] Add a Calendar plugin for dated tasks and events.
- [ ] Add a virtual tabletop system plugin.
Keep basic Markdown table editing and rendering in the core. Users must retain access to workspace files when plugins are disabled.
Kanban, Gantt, and Calendar are separate plugins that share a task index.
Kanban boards are Markdown files. Headings are columns. Task list items are cards.
### Planned plugin lineup
No plugin starts automatically in a fresh installation. The planned lineup includes:
- Terminal. Workspace shells, sessions, and script execution.
- Tables. Excel-like formulas and spreadsheet operations.
- Git. Status, stage, commit, pull, push, log, and diff. Use the system `git` binary.
- Sort. Per-folder order, pin, and hide. Flexplorer is a reference for behavior, not a source of code.
Planned plugins disabled by default:
- Kanban, Gantt, and Calendar. Separate views for task organization and schedules.
- Virtual tabletop. Tools for tabletop play within the workspace.
- Graph. Draw wiki-link edges from the file index.
- Canvas. Store `.canvas` files in JSON Canvas 1.0.
- Browser. Open a page in an in-app webview. Block ads with EasyList and EasyPrivacy.
## Later work
- Background Git for people who do not want to run Git by hand. Timed commit, pull, and push. A history limit is not designed yet.
- Extend the existing live Markdown preview. See the [user guide](user-guide.md) for current behavior.
- Language servers for diagnostics and go-to-definition.
- Wiki-link jump and backlinks from a rebuildable index.
- A command palette for every command.
## Out of scope
- A plugin marketplace
- Obsidian or VS Code plugin compatibility
- Cloud sync, live collaboration, or mobile
- A debugger or a full IDE
- Auto-commit on save
## Architecture goals
Dark is the primary theme.
Privileged operations belong in Rust: disk access, file watching, search, Git, terminal sessions, and adblock matching.
Git, terminal sessions, spreadsheet operations, and adblock matching belong to planned plugins.