一切都是因为太懒
使用说明
主要是集成自己常用的一些工具.
其次就是 typescript 语言测试
命令
run code
可以运行 lua,python,javascript 脚本, 需要对应的解释器在环境变量中
vps connect
使用 bash 通过 ssh 连接服务器, windows 平台下, 需要将 bash.exe 丢到环境变量
然后配置 用户区 设置
key 是展示的名字, 展示时按 a -> z 升序排序
"wilker-cfg.allVps": {
"vps-aaa" : {
"ip" : "www.aaa.com",
"port" : "1234",
"user" : "root",
},
"vps-bbb" : {
"ip" : "www.bbb.com",
"port" : "1234",
"user" : "root",
},
"vps-ccc" : {
"ip" : "www.ccc.com",
"port" : "1234",
"user" : "root",
},
},
qiniu upload 与 qiniu multi upload
这两个命名都需要配置 用户区 设置
"wilker-cfg.qiniu": {
"accessKey": "rBOasdasdasdasdasdasdasdasdasd",
"secretKey": "xL2asdasdasdasdasdasdasdasdasd",
"bucket": "mywiki",
"zone": "",
"domain": "http://aaa.bbb.com",
"isDelLocal": true,
},
open with markdown
Typroa (Markdown 编辑器) 需要在环境变量中
焦点所在文件是 Markdown 文件时, 可以使用 Typroa 打开此文件
open dir
打开焦点所在文件的文件夹
copy path - full
复制 焦点所在文件的 全路径 到剪贴板中
如: e:/workplace_u3d/Ar_Ares_android/Assets/Code/lua/logic/location/loc_manager.lua
copy path - relative
复制 焦点所在文件相对于工作区的 相对路径 到剪贴板中.
如: Assets/Code/lua/logic/location/loc_manager.lua
copy path - lua
需要配置 工作区 中lua所在的目录.
"wilker-cfg.luaRootPath": "Assets/Code/lua",
焦点所在文件是 lua 文件时, 可以复制 require 路径 到剪贴板中.
如: local xxx = require "logic.location.loc_manager"
close terminal
选择需要 关闭 的终端
select terminal
选择需要 聚焦 的终端
自动上传七牛云
需要配置 工作区
"wilker-cfg.autoUploadQiniu": true
会识别 *.{png,jpg} 文件会自动上传到七牛云
文件 BOM 移除
需要配置
"wilker-cfg.checkBom": true,
会检查当前打开的文件是否为相关后缀名文件, 如果Bom头会自动移除
remove bom of workspace
移除当前工作区所有匹配文件的 Bom
需要配置glob表达式
"wilker-cfg.checkBomGlob": "**/*.{cs,lua}"
current time
获取当前时间, 格式 : 2019-03-20 11:25:31
主要为 hexo 时间服务
search current dir
搜索当前文件所在文件夹路径, 如: Assets/Swarm/Editor/*
主要为搜索笔记服务
mount disk
挂载 或 卸载 硬盘
主要为 rsync 同步 nas 到 移动硬盘服务
"wilker-cfg.mountDisk": {
"isMount": true,
"disks": "l,m,n,o", // 以 , 分割
},
rsync backup
ssh 的方式同步 nas 重要资料, 需要远端开启了 rsync server
"wilker-cfg.rsync": {
"ip": "192.168.2.222",
"port": "12345",
"user": "root",
"dirArr": [
{
"local": "/mnt/m/Public",
"remote": "Public",
"includeFrom": "/mnt/e/temp_save/include.txt",
// "includeFrom": "",
"isLocal2Remote": false,
"isDelete": true,
"isProgress": true,
},
]
},
open url
需要打开的超链接, key 是展示的名字, 展示时按 a -> z 升序排序
"wilker-cfg.openUrl": {
"aaa": "https://aaa.com",
"ccc": "https://ccc.com",
"bbb": "https://bbb.com",
},
git ssr
会修改 .ssh 目录下的 config 为 configbak, 然后 git 就不会 走 ssr 代理
不存在则会创建 config, 会走代理.
需要的用户配置 ssr 代理的 ip 及 端口, 参考: git refresh(#git refresh)
git refresh
会删除 .ssh 目录下的 config 和 configbak, 然后重新创建 config
需要的用户配置 ssr 代理的 ip 及 端口
"wilker-cfg.gitConfig": {
"proxyIp": "127.0.0.1",
"proxyPort": 10088,
},
gif open
根据提供的 网络图片地址 或 本地图片的绝对路径, 根据配置 gif 程序 打开 gif 图片, (gif 程序 所在目录 需要配置在环境变量中)
"wilker-cfg.gifExe": "ScreenToGif.exe",
TODO