Bundle
dsh-file-rename
批量重命名:按查找/替换、前缀/后缀、大小写规则批量重命名文件,支持 dry-run 预览
- Source
- uckkk
- License
- MIT
- Updated
- Updated 7 days ago
Readme
# dsh-file-rename · 批量重命名 按规则批量重命名文件(查找/替换、前缀/后缀、大小写),默认 dry-run 预览,确认后执行。纯 Node 实现。 ## 提供的工具 | 工具 | 作用 | |---|---| | `rename_files` | 批量重命名(支持预览) | ## 安装 ```bash dsh plugin add dsh-file-rename ``` 安装后在 profile 的 `package.json` 的 `dsh.profile.bundles` 中加入 `"dsh-file-rename"`。 ## 用法示例 ``` 把目录里所有 IMG 开头的文件改成 photo 开头(先预览) → 调用 rename_files(root="/workspace/images", find="IMG", replace="photo") ``` ## 安装 ```bash dsh plugin add github:uckkk/dsh-file-rename ``` > 安装即在本机运行第三方代码,请自行审阅源码。 ## 安装 ```bash dsh plugin add github:uckkk/dsh-file-rename ``` ## 使用 安装后在会话中调用该插件注册的工具即可。 ## 许可 MIT > 安装即在本机运行第三方代码,请自行审阅源码。
Install
dsh plugin --profile web add github:uckkk/dsh-file-rename
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-file-rename from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.