Repository navigation
Conversation
Drag a rectangle over the table to enter selection mode: a leading checkbox column and a tri-state select-all appear, a row click toggles instead of opening, and one shared context menu plus a floating action bar act on the whole selection. - Selection model, Shift ranges and marquee hit-testing as pure modules with unit tests; rows stay memoized (no per-frame re-render storm). - One table-level context menu replaces the per-row menus; single-row right-click keeps the previous actions. - Batch actions: add to chat, download missing PDFs, delete, copy. - Copy to folder duplicates paper folders into another papers/ folder through the new paper_copy command: the copy gets its own catalog row and page count, while the source keeps its links and reading state. - Cmd/Ctrl click, Shift range, Cmd+A, Esc and Delete shortcuts; hidden rows are pruned from the selection so batch actions stay visible-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
论文库表格支持多选与批量操作:在表格内拖出矩形选框即进入选择模式(行首复选框 + 表头三态全选),此后点击行是勾选/取消而不再打开论文;统一的右键批量菜单与底部浮层提供「添加到对话 / 复制到文件夹 / 下载缺失 PDF / 删除 N 篇 / 清除选择」。同时新增
paper_copy:把选中的论文文件夹完整复制到papers/下任一目录,副本拥有独立 catalog 行、页数缓存与笔记,源论文的双链与阅读状态不受影响。类型
场景
现状:论文库一次只能操作一篇——删除、加入对话、整理到另一个专题夹都要逐篇右键,没有任何多选状态。
改动
papers/下(可在弹窗里现建),已存在则不覆盖、只跳过该篇并汇总提示;副本写入新的 catalog 行(同一逻辑 id、不同 path)与页数缓存,笔记/标注/标签是独立副本。paper_copy复用 move 的路径校验语义(拒绝复制到自身/子孙、半途失败回滚),不重写任何双链;src/lib/core/bindings.ts已重新生成。截图(UI / 功能改动必填)
默认表格与改动前完全一致(没有复选框、不额外占列宽),所以「之前」不另附。下面是「之后」:
papers/下的目标目录列表 + 新建目录输入框Demo(feat 必填)
21 秒录屏:在论文库拖出选框选中 4 篇 → 底部操作条 → 「添加到对话」→ 4 篇作为上下文进入 Agent 并提问。
自查清单
--no-verify)——本机 husky 无法被 git exec,改用等价命令手动执行(biome + cargo fmt/clippy + 测试)tsc --noEmit/biome check/vitest run;Rustcargo fmt --all --check/cargo clippy -p agentero-core -p agentero --all-targets -- -D warnings/cargo test -p agentero-core copy_paper/export_typescript_bindings(无 drift)/app::events_contractt()并同步zh-CNdocs/frontend/library.md(多选/批量)、docs/backend/api.md(paper_copy)