From 05b4d5e05eaaa98966506a84bcf23c9ae120dbfa Mon Sep 17 00:00:00 2001 From: mirivlad Date: Sat, 27 Jun 2026 23:58:56 +0800 Subject: [PATCH] Keep Markdown preview inside editor --- 03_Repositories.md | 2 -- 05_Official_Plugins.md | 46 ++++++++----------------------- 06_Migration_Strategy.md | 8 +++--- 07_Full_Implementation_Roadmap.md | 7 +++-- 4 files changed, 20 insertions(+), 43 deletions(-) diff --git a/03_Repositories.md b/03_Repositories.md index 1d0c413..cfea02a 100644 --- a/03_Repositories.md +++ b/03_Repositories.md @@ -45,7 +45,6 @@ plugins/ files/ notes/ markdown-editor/ - markdown-preview/ file-preview/ activity/ journal/ @@ -170,4 +169,3 @@ verstak-official-plugins - один repo для официальных плаг ``` Core может загрузить плагин только при совместимости `apiVersion`. - diff --git a/05_Official_Plugins.md b/05_Official_Plugins.md index 0ea8a36..5087ad0 100644 --- a/05_Official_Plugins.md +++ b/05_Official_Plugins.md @@ -98,7 +98,7 @@ editor.note.markdown Optional requires: ```text -preview.markdown +link.resolver ``` Не должен: @@ -107,36 +107,14 @@ preview.markdown - напрямую зависеть от `official.notes`; - тащить file manager внутрь себя. -## 4. `official.markdown-preview` +Markdown preview is part of the Markdown editor surface. There is no separate +official Markdown preview plugin, because a standalone view provider would +compete with the editor routing for `.md` / `.markdown` files. + +## 4. `official.file-preview` Назначение: -- read-only markdown render through a Workbench `openProviders` contribution; -- `mode: "view"` support so edit routing remains with editor plugins; -- safe baseline markdown rendering before optional syntax highlight/link - resolver integration. - -Provides: - -```text -preview.markdown -viewer.markdown -``` - -Optional requires: - -```text -link.resolver -``` - -Текущий статус: базовый `verstak.markdown-preview` implemented as an official -view-only provider for `.md` / `.markdown` files. - -## 5. `official.file-preview` - -Назначение: - -- read-only preview for text-like files through `api.files.readText`; - metadata view for image files until binary streaming exists; - `Open External` action through `api.files.openExternal`. @@ -145,14 +123,14 @@ Provides: ```text viewer.file viewer.image -viewer.text preview.file ``` Текущий статус: базовый `verstak.file-preview` implemented as a view-only -provider for text-like files and image metadata. +provider for image metadata. Text-like files, code, and Markdown stay with +editor plugins. -## 6. `official.activity` +## 5. `official.activity` Назначение: @@ -180,7 +158,7 @@ browser.capture.received case.selected ``` -## 7. `official.journal` +## 6. `official.journal` Назначение: @@ -203,7 +181,7 @@ Optional requires: activity.reconstruction ``` -## 8. `official.browser-inbox` +## 7. `official.browser-inbox` Назначение: @@ -303,7 +281,7 @@ workspace.files - `official.files`; - `official.notes`; - `official.markdown-editor`; -- `official.markdown-preview`; +- `official.file-preview`; - `official.activity`; - `official.browser-inbox`; diff --git a/06_Migration_Strategy.md b/06_Migration_Strategy.md index fe4877e..053efb9 100644 --- a/06_Migration_Strategy.md +++ b/06_Migration_Strategy.md @@ -87,10 +87,10 @@ Verstak v2 разрабатывается как отдельное прилож Развивать official plugins по одному, через общий plugin runtime: -1. `official.markdown-preview`; -2. `official.markdown-editor`; -3. `official.files`; -4. `official.notes`; +1. `official.markdown-editor`; +2. `official.files`; +3. `official.notes`; +4. `official.file-preview`; 5. `official.activity`; 6. `official.browser-inbox`. diff --git a/07_Full_Implementation_Roadmap.md b/07_Full_Implementation_Roadmap.md index 9bbf9aa..b7d577d 100644 --- a/07_Full_Implementation_Roadmap.md +++ b/07_Full_Implementation_Roadmap.md @@ -36,7 +36,7 @@ Implemented: - Files Core text API with safe path policy and sync operation recording; - public `files.openExternal` / `files.showInFolder` API and Files plugin usage; - mode-aware Workbench open/edit provider routing and default editor plugin; -- official Files plugin, Notes plugin, Markdown Preview plugin, Sync plugin, and +- official Files plugin, Notes plugin, Markdown Editor plugin, Sync plugin, and platform-test plugin; - browser inbox local receiver and minimal official Browser Inbox plugin; - sync server with device/user auth and operation push/pull; @@ -127,8 +127,9 @@ Goal: add the next visible product layer as replaceable plugins. Tasks: -- [x] implement `verstak.markdown-preview` provider plugin; -- [x] implement basic file/image preview plugin; +- [x] keep Markdown preview inside `verstak.markdown-editor`, with no separate + provider competing for `.md` files; +- [x] implement basic image metadata preview plugin; - implement search provider/index contract and official search plugin; - implement activity event log plugin; - implement journal/worklog plugin that can consume activity suggestions.