All apps: a second launch hands its files to the running copy
R4.12 (user report). The copy holding the instance lock opens a local door guarded by a random token in its data folder; a second copy sends its file paths there, lets it take the foreground, and exits 0 instead of showing "already running". Files join the ely_ui::on_open queue every app already uses; the main window comes to the front. Also records the R4.10 round 1 verdict. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d5ceaf9aac
commit
5bf2056281
10 files changed
+436
-41
No files matched your search
@@ -242,6 +242,7 @@
|
||||
- [~] R4.8 组件库:表格行列上下左右移动、整理表格源码;代码块取代码内容;与已有的增删行列同一套拒绝。组件 bcee87c 至 6b033f3(已推送):`TableEdit` 加上下移行(表头与首行互换,超出表头列数的行不作表头,到边拒绝为 `TableRefusal::Edge`)、左右移列、整理;表格按显示宽度补齐(`unicode-width`,Tab 记 4、控制字符记 0,照 Typora 的 `wcswidth`),写回表格自身的换行;表格编辑并入后台执行器;右键代码块时 `DocumentTarget` 带出代码文字。审查三轮未过(`tasks/reviews/R4.8-r1..r3.md`):r1 两项(纯 CR 文本里整理表格把前文当作容器前缀、行内 Tab 宽度不合 Typora);r2 一项(End 后插入表格拆开 CRLF);r3 一项(r2 的修法让行辅助函数返回光标之前的位置,End 后的块命令崩溃)。r3 已修:编辑器只按 LF 分行,光标可落在 CR 与 LF 之间;执行器与插入表格在入口把选区移到 CR 前,行辅助函数改为断言不收这种位置;两项回归在 r3 的源码上失败(`.work/R4.8-fix3/red.md`);轮数用尽,未再审。遗留:编辑器自身的 CRLF 模型不变,End 仍落在 CR 之后;表情宽度按 `unicode-width` 记 2 列(Typora 记 1)
|
||||
- [x] R4.9 ElyMark:“段落”“格式”菜单与 Typora 同项同键(Ctrl+1–6、Ctrl+0、Ctrl+=/-、Ctrl+B/I/U、Ctrl+Shift+`、Alt+Shift+5、Ctrl+K、Ctrl+Shift+I、Ctrl+\、Ctrl+T、Ctrl+Shift+K/M/Q/[/]);源码模式 Ctrl+/;字号 Ctrl+Shift+=/-/0;专注 F8、打字机 F9;表格菜单加移动行列;复制为 Markdown Ctrl+Shift+C、粘贴为纯文本 Ctrl+Shift+V。ElyMark 5392062、f84f990、09fcb0b,组件 6d90351、24ffc45、6c2d28c(已推送),pin 6c2d28c:键与菜单项取自 Typora 字节码与其中文菜单;表格为“段落”子菜单,加删除表格;拒绝成提示;菜单借打开的块的焦点,块与选区留着;复制为 Markdown、粘贴为纯文本只作用于文档。R1 FAIL 六项、R2 FAIL 四项已修,R3 PASS
|
||||
- [ ] R4.10 ElyMark:右键菜单照 Typora 按目标变化:剪贴板行(剪切、复制、粘贴、删除)、复制/粘贴为 ▸(Markdown、HTML 代码、纯文本、粘贴为纯文本)、格式行、段落 ▸ 或表格 ▸ 或代码项、插入 ▸、链接(打开、复制地址)、图片(打开所在位置、删除图片)、删除块;预览只读时只留复制类
|
||||
- [ ] R4.12 全部应用:已开着时再打开文件,交给运行中的那份开成新标签并带到前台,不再弹“已在运行”(用户报,2026-10-14);先于 R4.11 做
|
||||
- [ ] R4.11 验收:真窗口逐项操作,每项功能可用(不求与 Typora 一一相同);帮助、PRD、`agents.md` 随之;逐条核对表
|
||||
|
||||
## R5 ElyDoc 照 Word 的右键与表格(用户 2026-10-13 报:右键没反应;表格不能加行列、不能调大小;三项方案经用户确认)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
FAIL
|
||||
|
||||
1. `C:/Users/zhang/Documents/Github/Ely-GPUI-Components/src/documents/document/point.rs:174` — [P2] A preserved selection makes object actions target its beginning instead of the right-clicked object. In an open block, select both `[one](https://a.test) [two](https://b.test)` and right-click `two`: `DocumentTarget.link` is `https://a.test`. The equivalent two-image probe returns `a.png` when pressing `b.png`; Delete Image also reads the selection's start. Preserve the selection for clipboard operations, but resolve the press independently and make object-specific actions use that target. Both target probes fail on this commit; evidence: `.work/R4.10/review-r1/component-probes.log`.
|
||||
|
||||
2. `C:/Users/zhang/Documents/Github/Ely-GPUI-Components/src/documents/document/point.rs:213` — [P2] Open-block link detection ignores the HTML anchor semantics used by rendering. For `[<a href="https://inner.test">inside</a>](https://outer.test)`, right-clicking the rendered word correctly targets `inner.test`; open the block and right-click the same word with no selection, and the target becomes `outer.test`. Open Link and Copy Link Address consequently use the wrong address. Resolve the target with the same inline HTML and anchor rules as the rendered document. The probe checks both states and fails specifically on the open-block address: `.work/R4.10/review-r1/html-target.log`.
|
||||
|
||||
3. `apps/ely-mark/src/view/menu.rs:63` — [P2] A consumed menu request is replayed when its tab is mounted again. Open a context menu in file A, dismiss it with Escape, open file B, then return to A. The old menu reappears without a right press and takes focus; Ctrl+Shift+C leaves the clipboard unchanged until another Escape. `offer` survives while ContextMenu's keyed request-consumption state does not. Clear or consume the request across dismissal/tab deactivation, or retain its consumption state with the view. The probe confirms the menu is drawn and Escape restores copying; the control without an earlier menu passes. Evidence: `.work/R4.10/review-r1/menu-remount.log` and `office-probes.log`.
|
||||
|
||||
4. `apps/ely-mark/src/export/copy.rs:73` — [P2] Copy as HTML Code and Copy as Plain Text (`:87`) perform the entire Markdown conversion synchronously on the UI thread. With no selection in an 84,000-byte document containing 12,000 `**x**` paragraphs, direct timing inside the handlers measured 2.147 seconds for HTML and 2.086 seconds for plain text in the debug build, excluding document opening and window rendering. Input and painting cannot proceed during this work, contrary to PERF-02. Convert the captured text on the background executor and return the clipboard result or error to the UI thread. Evidence: `.work/R4.10/review-r1/office-probes.log`.
|
||||
|
||||
5. `C:/Users/zhang/Documents/Github/Ely-GPUI-Components/src/documents/document/tests/secondary.rs:8` — [P3] The new comment, “A right press near the left of the open block's text.”, contains 11 whitespace-separated words, violating the explicit ten-word limit. Shorten it to at most ten words while keeping it on one line. The Office comment check does not scan this component source file; the count is recorded in `.work/R4.10/review-r1/summary.log`.
|
||||
Reference in new issue
Block a user