编辑调整、对比模块
This commit is contained in:
1 parent
c9e61f38c5
commit
6cfa74c901
76 files changed
+9514
-626
No files matched your search
@@ -34,6 +34,11 @@ export const WINDOWS = {
|
||||
* 服务就绪后由主窗口打开真正的 {@link dshWeb} 窗口并关闭它。
|
||||
*/
|
||||
dshWindow: 'dsh-window',
|
||||
/**
|
||||
* 对比工具独立窗口(单例)。双栏差异视图 + 目录三态树,
|
||||
* 与编辑器窗口同一范式(隐藏创建 → 应用主题 → 设置任务栏身份 → show)。
|
||||
*/
|
||||
diffWindow: 'diff-window',
|
||||
} as const
|
||||
|
||||
/** Tauri 事件名(前端 emit / listen 与 Rust constants::events 对应) */
|
||||
@@ -174,6 +179,19 @@ export const EVENTS = {
|
||||
editorOpenFile: 'editor-open-file',
|
||||
/** 编辑器:需要打开一个文件夹(负载 `{ path }`;来自资源管理器右键) */
|
||||
editorOpenFolder: 'editor-open-folder',
|
||||
/**
|
||||
* 编辑器:在**既有**编辑器窗口里加一个标签(负载见 `EditorOpenTabPayload`)。
|
||||
* 纯前端事件(Rust 不参与):主窗口在发现有编辑器窗口时用 `emitTo` 定向发给它,
|
||||
* 于是「系统右键 / 主界面打开历史文件」不会再多开一个窗口。
|
||||
*/
|
||||
editorOpenTab: 'editor-open-tab',
|
||||
// 对比:全局快捷键按下「打开对比窗口」(无负载;窗口由前端创建,见 modules/diff/openWindow.ts)
|
||||
diffOpenWindow: 'diff-open-window',
|
||||
/**
|
||||
* 对比:目录扫描进度(负载见 src/modules/diff/types.ts 的 DiffScanProgress)。
|
||||
* 进度在 Rust 侧按时间节流发送;前端按 `scanId` 过滤(事件是全局的)。
|
||||
*/
|
||||
diffScanProgress: 'diff-scan-progress',
|
||||
} as const
|
||||
|
||||
/** localStorage 存储键 */
|
||||
|
||||
Reference in new issue
Block a user