diff --git a/README.md b/README.md index a21ae64..089a4f5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,17 @@ -# 快捷命令 V0.0.1 +# 快捷命令 V0.0.2 ## 简介 自定义可以在`uTools`中快速执行的命令或脚本 +### 更新 + +#### v0.0.2 + +- 修复uTools更新后进入插件空白的BUG + +- 添加Linux支持 + ## 功能 #### 快速启动 @@ -40,7 +48,7 @@ - 显示纯文本输出 (不解析 html 内容) - 显示html格式的输出 (可以进一步编写简单的 GUI 界面) - 复制到剪贴板 -- 发送到活动窗口 +- 发送到活动窗口(可以实现类似代码片段、常用短语之类的功能) #### 插值变量 @@ -66,6 +74,22 @@ 支持命令的导入或者导出 +同时网盘提供了一些写好了的命令: + +`网络连接` 打开网络连接窗口 (python/双平台) + +`回收站` 打开回收站 (python/双平台) + +`息屏` 关闭显示器而不休眠 (powershell/windows, shell/macos) + +`base64转图片` 将选中的base64转为图片 (python/双平台) + +`终端` 在当前目录打开终端 (python/双平台) + +`新建文件` 在当前目录新建任意文件 (python/双平台) + +`切换百度/谷歌搜索` 在百度或者谷歌的搜索页面切换至另一个搜索引擎进行搜索 (python/双平台) + ## 下载 [百度网盘](https://pan.baidu.com/s/1kEEQcQ1p3Rjli2sTtmCcTg) 提取码: `rbek` diff --git a/plugin.json b/plugin.json index 0514c3a..f13b038 100644 --- a/plugin.json +++ b/plugin.json @@ -4,10 +4,10 @@ "main": "index.html", "homepage": "https://github.com/fofolee/uTools-QuickerCommand", "publishPage": "https://yuanliao.info/d/424", - "version": "0.0.1", + "version": "0.0.2", "author": "云之轩", "logo": "logo.png", - "platform": [ "win32", "darwin" ], + "platform": [ "win32", "darwin", "linux" ], "preload": "preload.js", "features": [ { diff --git a/preload.js b/preload.js index 5799cdd..18f6cb6 100644 --- a/preload.js +++ b/preload.js @@ -3,7 +3,7 @@ const os = require('os'); const { spawn, exec } = require("child_process") const iconv = require('iconv-lite') const { clipboard } = require('electron') -const robot = require('./robotjs') +const robot = utools.robot const jschardet = require("jschardet") //-------checkUpdate------ diff --git a/releases/quickCommand-0.0.2.upx b/releases/quickCommand-0.0.2.upx new file mode 100644 index 0000000..1d7b680 Binary files /dev/null and b/releases/quickCommand-0.0.2.upx differ diff --git a/robotjs/darwin/robotjs.node b/robotjs/darwin/robotjs.node deleted file mode 100644 index a8fdedc..0000000 Binary files a/robotjs/darwin/robotjs.node and /dev/null differ diff --git a/robotjs/index.js b/robotjs/index.js deleted file mode 100644 index 0f4dfad..0000000 --- a/robotjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -if(process.platform==='darwin'){ - module.exports = require('./darwin/robotjs.node') -}else if(process.platform==='win32'){ - module.exports = require(`./win32/${process.arch}/robotjs.node`) -} \ No newline at end of file diff --git a/robotjs/win32/ia32/robotjs.node b/robotjs/win32/ia32/robotjs.node deleted file mode 100644 index 2b185a3..0000000 Binary files a/robotjs/win32/ia32/robotjs.node and /dev/null differ diff --git a/robotjs/win32/x64/robotjs.node b/robotjs/win32/x64/robotjs.node deleted file mode 100644 index 9cb9727..0000000 Binary files a/robotjs/win32/x64/robotjs.node and /dev/null differ