{"id":15055864,"url":"https://github.com/code4everything/wetool","last_synced_at":"2025-10-04T15:30:45.024Z","repository":{"id":97061984,"uuid":"127886057","full_name":"code4everything/wetool","owner":"code4everything","description":"欢迎体验我们全新的桌面端效率工具RunFlow，https://myrest.top/myflow","archived":true,"fork":false,"pushed_at":"2024-03-06T02:04:04.000Z","size":820,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-30T03:23:16.605Z","etag":null,"topics":["charset-detector","clipboard-history","file-copy","file-merge","file-rename","file-split","java","java11","javafx","javafx-application","json-parser","qrcode-generator","random-generation","wetool"],"latest_commit_sha":null,"homepage":"https://github.com/code4everything/wetool-plugin","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code4everything.png","metadata":{"files":{"readme":"README.md","changelog":"history.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-04-03T09:42:34.000Z","updated_at":"2024-04-25T01:10:43.000Z","dependencies_parsed_at":"2023-04-28T06:12:36.532Z","dependency_job_id":null,"html_url":"https://github.com/code4everything/wetool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4everything%2Fwetool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4everything%2Fwetool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4everything%2Fwetool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4everything%2Fwetool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4everything","download_url":"https://codeload.github.com/code4everything/wetool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235265016,"owners_count":18962470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charset-detector","clipboard-history","file-copy","file-merge","file-rename","file-split","java","java11","javafx","javafx-application","json-parser","qrcode-generator","random-generation","wetool"],"created_at":"2024-09-24T21:46:46.832Z","updated_at":"2025-10-04T15:30:39.696Z","avatar_url":"https://github.com/code4everything.png","language":"Java","readme":"## 欢迎体验我们全新的桌面端效率工具\n\n**欢迎体验我们全新的桌面端效率工具[RunFlow](https://myrest.top/myflow)。**\n\n\u003e [https://myrest.top/myflow](https://myrest.top/myflow)\n\n## WeTool 工具箱\n\n`WeTool`是一款基于`JavaFX`开发的轻量级、简洁、可插件式扩展的通用工具箱。\n\n### 主要功能\n\n- 文件批量重命名\n- 剪贴板历史\n- JSON路径语法测试\n- 识别文件编码，文件编码转换\n- 二维码的解码与生成\n- 随机字符生成器\n- 支持自定义插件路径，支持手动加载插件\n- 支持插件隔离加载\n- 支持事件的发布与订阅（[查看内置事件](https://gitee.com/code4everything/wetool-plugin/blob/master/wetool-plugin-support/readme.md)）\n- 插件管理面板\n- Windows虚拟桌面触发角\n- 支持数据库连接（[查看配置属性](https://github.com/alibaba/druid/wiki/DruidDataSource%E9%85%8D%E7%BD%AE%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8)）\n- 支持监听鼠标键盘\n- 支持暴露HTTP服务\n- 支持暗黑模式\n- 支持开启HTTP文件浏览服务（默认端口8189，未指定暴露的文件路径时会弹窗选择）\n- [更多功能来插件库查看哦](https://gitee.com/code4everything/wetool-plugin/tree/master/wetool-plugin-repository)\n\n### 下载与使用\n\n\u003e 运行环境：需安装有Java11及以上版本\n\n##### [下载WETOOL-1.6.0.ZIP](http://share.qiniu.easepan.xyz/tool/wetool/wetool-1.6.0.zip)\n\n##### [查看更新历史](history.md)\n\n##### 自己打包（或者下载上面的ZIP包）\n\n```shell\ngit clone https://gitee.com/code4everything/wetool.git\ncd wetool\nmvn package [-D javafx.platform=[win|mac|linux]]\n```\n  \n##### 运行（windows和mac平台双击对应jar包即可运行）\n\n```shell\n# windows平台\njavaw -jar ./wetool.jar\n# mac或linux平台\njava -jar ./wetool.jar \u0026\n```\n\u003e 说明：运行软件需安装有Java11及以上版本，另外日志文件保存路径：`${user.home}/logs/wetool/wetool.log`。\n  \n##### 插件的安装（使用`Ctrl+Shift+P`打开插件面板即可安装插件）\n \n如果是自己手动下载的插件，那么将插件放到当前工作目录的`plugins`目录下，重启程序即可\n\n### 运行截图\n\n![wetool](images/wetool.png)\n\n![wetool](images/wetool_2.png)\n\n![wetool](images/wetool_3.png)\n\n### 搜索框\n\n搜索框可以搜索本应用内工具（包括插件），搜索工具时输入关键字然后按空格触发下拉框，选择对应的工具回车即可。\n\n搜索框还支持执行命名，目前支持的命令如下：\n\n- hutool: 需要安装 [hutool-cli](https://gitee.com/code4everything/hutool-cli) ，安装完成记得重启wetool，同时支持无关键字触发，如 `hutool random-uuid` 可去掉hutool前缀变为 `random-uuid`。\n- env: 查看环境变量，如：`env HUTOOL_PATH`。\n- go: 用内置浏览器打开网页，如：`go baidu.com`。\n- file-browser: 开启http文件浏览服务，如：`file-browser 80:get/file/*`, `file-browser get/* c:\\Users`\n\n### 使用小技巧\n\n- HTTP文件上传服务，首先在配置文件中设置上传文件的保存目录，然后浏览器打开 [文件上传页面](http://localhost:8189/upload.html)\n- 使用全局快捷键 `Ctrl+Alt+Shift+Enter` 显示或隐藏主界面\n- 应用内使用快捷键 `Ctrl+数字` 选中指定位置的选项卡，数字 `9` 表示选中最后一个\n- 关闭指定位置的选项卡：`Alt+数字`，数字 `9` 表示关闭最后一个\n- 关闭所有未选中选项卡：`Ctrl+Shift+F4`\n- 快捷键 `Ctrl+P` 搜索应用内工具，键入空格后搜索，回车执行相应的动作\n- 隐藏主界面：按 `Esc` 取消窗体内控件的焦点，再按 `Esc` 隐藏窗体\n- 关闭选中的选项卡：方法一，使用快捷键 `Ctrl+F4`；方法二，按 `Esc` 取消窗体内控件的焦点，按 `X` 键关闭TAB\n- 快速聚焦到指定控件：1. 按 `Esc` 取消窗体内控件的焦点，2. 输入要聚焦控件的大概位置（如：`6`），3. 按 `Enter` 快速聚焦到该位置的控件\n\n### 配置文件说明\n\n程序会在启动时根据当前的系统名称加载当前工作目录下与之对应的配置文件`we-config-{}.json`，\n其中`{}`可以为`win`、`mac`和`lin`分别对应`Windows`、`Mac`以及`Linux`平台，如上述文件不存在，那么将加载默认的配置文件`we-config.json`，\n如果配置文件加载失败，程序将放弃运行，直接退出。\n\n- 配置内容可参考：[we-config.json](we-config.json)\n- 属性说明可参考：[WeConfig.Java](https://gitee.com/code4everything/wetool-plugin/blob/master/wetool-plugin-support/src/main/java/org/code4everything/wetool/plugin/support/config/WeConfig.java)\n\n数据库配置：在配置文件中新增 dbConnections 字段，如其名，该字段为数组类型，数组中每个元素的配置属性请参考Druid，建议把name字段填上，便于识别，示例如下：\n\n```json\n{\n    /*其他配置属性*/\n    /*................*/\n    \"dbConnections\": [\n        {\n            \"name\": \"test\",\n            \"url\": \"jdbc:mysql://localserver:3306/test?useUnicode=true\u0026characterEncoding=utf-8\u0026useSSL=true\u0026serverTimezone=Asia/Shanghai\",\n            \"username\": \"root\",\n            \"password\": \"root\",\n            \"initialSize\": \"1\",\n            \"keepAlive\": true\n        },\n        {\n            \"name\": \"local_prod\",\n            \"url\": \"jdbc:mysql://localhost:3306/test?useUnicode=true\u0026characterEncoding=utf-8\u0026useSSL=true\u0026serverTimezone=Asia/Shanghai\",\n            \"username\": \"test\",\n            \"password\": \"test\",\n            \"initialSize\": \"0\",\n            \"minEvictableIdleTimeMillis\": 600000\n        }\n    ]\n}\n```\n\n### 使用开发版本\n\n下载项目源代码\n\n```shell\ngit clone https://gitee.com/code4everything/wetool.git\ngit clone https://gitee.com/code4everything/wetool-plugin.git\n```\n\n安装依赖库\n\n```shell\ncd /your_path/wetool-plugin\ngit checkout develop\ncd wetool-plugin-support\nmvn clean install\n```\n\n打包可执行jar包\n\n```shell\ncd /your_path/wetool\ngit checkout develop\ncd bin\npython package.py\n```\n\n\u003e 可执行jar包会打包到项目的根目录下。\n\n### 开发说明\n\n所需环境\n\n- JDK 11.0.5\n- Maven 3.6\n- Scene Builder 2.0\n- IDEA 2019.3\n- Lombok\n- Git\n\n开发调试过程中，建议运行[`WeApplicationTest`](src/test/java/org/code4everything/wetool/WeApplicationTest.java)主类，\n而不是运行主类[`WeApplication`](src/main/java/org/code4everything/wetool/WeApplication.java)，\n运行`WeApplication`类时产生的日志数据会被输出到文件中，而`WeApplicationTest`则只会输出到终端，并且会输出debug日志，方便开发调试。\n\n### 插件开发\n\n没有你需要的功能？没关系，一分钟快速了解插件的开发过程：[传送门](https://gitee.com/code4everything/wetool-plugin)\n\n### 结语\n\n关于插件的支持，纯粹是为了减轻本工具包的负担，毕竟本工具的宗旨是轻量级、轻量级、轻量级，而某些只会在特定场景下使用的功能则以插件的方式加载进来，可以极大缩减本工具包的大小，而不至于臃肿。\n\n如果你觉得这个项目还不错，可将鼠标移动至`Star`处，轻轻点一下，以示支持哦^_^\n\n欢迎提Issue，Pull Request，大家一起交流学习。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4everything%2Fwetool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4everything%2Fwetool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4everything%2Fwetool/lists"}