Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions plugins/top-screenshot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
dist/
coverage/
release/
.superpowers/
.worktrees/
*.log
.DS_Store
72 changes: 72 additions & 0 deletions plugins/top-screenshot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 截图置顶

截图置顶是一个 ZTools 插件,用于快速框选屏幕区域,并将选中的画面以独立置顶窗口显示。适合在查看资料、对照页面、记录界面局部内容时使用。

## 功能特点

- 启动后直接进入截图流程。
- 框选区域后自动生成置顶截图。
- 支持同时保留多张置顶截图。
- 支持拖动移动置顶截图。
- 支持鼠标滚轮缩放截图。
- 支持按 Esc 关闭当前置顶截图窗口。

## 使用方式

1. 在 ZTools 中安装插件包。
2. 搜索并运行“截图置顶”。
3. 拖拽鼠标框选需要置顶的区域。
4. 松开鼠标后,选区会生成置顶截图。
5. 拖动截图窗口可移动位置。
6. 滚动鼠标滚轮可缩放截图。
7. 聚焦截图窗口后按 Esc 可关闭该窗口。

## 开发命令

```bash
npm install
npm test
npm run build
npm run package
```

命令说明:

- `npm install`:安装项目依赖。
- `npm test`:运行测试。
- `npm run build`:构建插件。
- `npm run package`:生成可安装的插件包。

## 打包教程

1. 安装依赖:

```bash
npm install
```

2. 运行测试:

```bash
npm test
```

3. 执行打包:

```bash
npm run package
```

4. 打包完成后,找到生成的 `.zpx` 插件包。

5. 在 ZTools 中导入该 `.zpx` 文件完成安装或更新。

## 插件配置

插件信息和搜索命令在 `plugin.json` 中配置。

当前支持的搜索词:

- 截图置顶
- 截图
- 置顶截图
Binary file added plugins/top-screenshot/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading