DJPalefaceSD/rostech-mods/tree/main/plugins/clip
关于这个 mod
直接从提示框把文字放入剪贴板,并清除终端带来的杂讯,这样不用手动在终端中选取和复制。
- /clip <text> 将文字放入剪贴板。
Clip 会在复制前移除每一行的框线、提示符标记和尾随空格,并移除开头与结尾的空行。
它使用系统自己的剪贴板程序:Windows 的 PowerShell Set-Clipboard、macOS 的 pbcopy,以及 Linux 的 wl-copy 或 xclip。不会向其他地方发送内容。
已在 Windows 上的 Claude Code 2.1.287 测试。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add DJPalefaceSD/rostech-mods claude plugin install clip
原文 / README
Clip
Put text on your clipboard straight from the prompt, cleaned of the clutter a terminal drags along with it, so you never have to select and copy text out of the terminal by hand.
/clip <text>puts that text on your clipboard.
Clip strips box edges, prompt marks and trailing spaces from every line, and blank lines from the top and bottom, before it copies.
It uses your system's own clipboard program: PowerShell's Set-Clipboard on Windows, pbcopy on macOS, and wl-copy or xclip on Linux. Nothing is sent anywhere else.
Tested with Claude Code 2.1.287 on Windows.
其他同名作品
- clipDJPalefaceSD · ★ 0

