Initial RuneStone project
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
# 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 planned design keeps the core active and adds optional features through first-party plugins. Plugin support is not implemented yet.
|
||||
|
||||
## Workspace and files
|
||||
|
||||
- Open one folder as the workspace.
|
||||
- Keep notes, scripts, and images in the same tree.
|
||||
- Honor `.gitignore` in the navigator.
|
||||
- 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, bookmarks, and plugin settings in `.runestone/`.
|
||||
- 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
|
||||
|
||||
Plugin support is pending. The plan is to ship extra features as first-party plugins with an on or off toggle. A marketplace is outside the planned scope.
|
||||
|
||||
Planned plugins enabled by default:
|
||||
|
||||
- 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:
|
||||
|
||||
- Projects. Kanban is the first view. Calendar and Gantt share the same task index.
|
||||
- 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.
|
||||
|
||||
Kanban boards are Markdown files. Headings are columns. Task list items are cards.
|
||||
|
||||
## 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 or third-party loader
|
||||
- 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 and adblock matching belong to planned plugins.
|
||||
Reference in New Issue
Block a user