summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-03-13 02:15:10 -0500
committerhaoyuren <13851610112@163.com>2026-03-13 02:15:10 -0500
commit82447ef3229336b914344f5671c4cb8bd589dcdc (patch)
tree6f1f89e515c452fdc0cf84ac48ed40b67bb7c3bc /src/main
parent03477143154462b8c1332f1081fdf400ac80be53 (diff)
Fix terminal cwd, selection highlight, comment range preservation
- Terminal now spawns in project sync directory so Claude Code can read/write .tex files - Selection highlight uses semi-transparent color to layer above active line highlight - External edits use diff-match-patch for minimal changes instead of full doc replace, preserving comment highlight positions - Set connection state on project open so status bar shows Connected - Remove cursor:pointer from comment highlights Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/index.ts b/src/main/index.ts
index 7fab07a..0925c01 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -664,7 +664,8 @@ ipcMain.handle('ot:connect', async (_e, projectId: string) => {
docPathMap,
pathDocMap,
fileRefs,
- rootFolderId
+ rootFolderId,
+ syncDir: tmpDir
}
} catch (e) {
console.log('[ot:connect] error:', e)