Skip to content

[1355] 支持 gf pi 粘贴剪贴板中的本地文件路径 - #113

Closed
PinkMagicFly wants to merge 2 commits into
mainfrom
pigmagicfly/1355/clipboard-file-paste
Closed

PinkMagicFly wants to merge 2 commits into
mainfrom
pigmagicfly/1355/clipboard-file-paste

Conversation

@PinkMagicFly

Copy link
Copy Markdown
Collaborator

任务说明

任务文档:LiiiLabs/dev-agent#498。

  • 对齐 Pi Agent 的顺序:Ctrl+V 先尝试本地文件列表,再回退到原始图片或文本。macOS 读取 AppKit 文件 URL;Windows 读取文件拖放列表;Linux 读取 Wayland/X11 文件 URI。
  • 多文件逐行插入,保留空格和中文,跳过失效或非本地引用;回车提交路径文本,不自动上传。显式 Bash 模式按参数引用路径。

验证

  • 文件列表和虚拟终端粘贴测试通过;隔离 HOME 后 TUI 运行目录 14/14 通过。
  • gf fmt --check、gf check 通过。
  • macOS 已验证独立 AppKit 剪贴板的文件 URL 读取;飞书真实复制粘贴、Windows 和 Linux 桌面剪贴板仍待人工验收。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant