@muzi3/copy-code

pi 终端 UI 代码块复制:点击 [⧉ 复制 #n] 或 /copy-code 模糊搜索选择

Packages

Package details

extension

Install @muzi3/copy-code from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@muzi3/copy-code
Package
@muzi3/copy-code
Version
0.1.1
Published
Aug 26, 2026
Downloads
273/mo · 6/wk
Author
muzi3
License
MIT
Types
extension
Size
7.3 KB
Dependencies
2 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@muzi3/copy-code

pi 终端 UI 代码块复制扩展,两个入口共用一套逻辑:

  • 代码块上方的 [⧉ 复制 #n] 按钮:鼠标点击
  • /copy-code [关键词]:模糊搜索整个会话的代码块(键盘入口)

代码块扫描统一走 @muzi3/code-buttonscanCodeBlocks,剪贴板用 pi 内置的 copyToClipboard

安装

pi install npm:@muzi3/copy-code

依赖

  • @muzi3/code-button(按钮基座 + 扫描器)
  • @muzi3/fuzzy-selector(模糊选择器组件)

License

MIT