From 82447ef3229336b914344f5671c4cb8bd589dcdc Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Fri, 13 Mar 2026 02:15:10 -0500 Subject: 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 --- src/main/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') 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) -- cgit v1.2.3