reference
reference copied to clipboard
做个一个 alfred 插件,快速打开 quickref
Alfred QuickRef (下载)

快速检索备忘清单
如何使用
https://user-images.githubusercontent.com/5069410/202942894-68f56b80-f2b4-45ba-b921-0f0e56038cf5.mp4
常见问题
如无法运行请检查是否安装 nodejs
确保 $PATH
或 /usr/bin
或 /usr/local/bin
中能找到 node

安装方法: brew install node
源代码
https://github.com/mofelee/alfred-quickref
@mofelee 自动生成了一份搜索 #32 数据,可用于 alfred 插件
├── dist
│ ├── data.json
│ ├── docs
│ ├── index.html
│ └── style
https://github.com/jaywcjlove/reference/blob/f41263510409bbfbe71844019a3ed3af56baea0c/data.json#L1-L30
https://jaywcjlove.github.io/reference/data.json
@jaywcjlove 好的,我更新下插件
@mofelee 自动生成了一份搜索 #32 数据,可用于 alfred 插件
├── dist │ ├── data.json │ ├── docs │ ├── index.html │ └── style
https://github.com/jaywcjlove/reference/blob/f41263510409bbfbe71844019a3ed3af56baea0c/data.json#L1-L30
是否可以使用 json array 来生成 data.json 这样对搜索友好一些,直接返回这个数组中的对象,不用我使用的时候转换以加速搜索速度
类似
[
{
"key": "ansible",
"title": "Ansible 备忘清单"
}
]
算了,我用 Object.keys 来搞吧。。
@mofelee 搞好了
好的,我设想是两层搜索,section 里的数据太杂了,先用 key 过滤数据,直接 Enter 进入网页,或者Alt + Enter 进入当前 key 的section 搜索进入页面,这样不会乱
@mofelee 搞好了

似乎 json 格式错了,对象的key没值,但有些 key 混在了 array 中
@mofelee 已修复
做好了,顺便做了个小教程


预览版 QuickRef-0.2.2.alfredworkflow.zip
https://user-images.githubusercontent.com/5069410/202450091-eb14feed-2df6-4cbe-af22-74e19c931947.mp4
👍
@mofelee 你可真是个大漂亮(帅哥),你你,你为啥不在你的github release里面放呀,晕晕晕,我还以为 release 里面会有呢
@mofelee 你可真是个大漂亮(帅哥),你你,你为啥不在你的github release里面放呀,晕晕晕,我还以为 release 里面会有呢
那我现在去搞。。
@jaywcjlove 可否增加一个短标题? 我现在的做法是title.replace(/备忘清单$/, '')
@mofelee 你可真是个大漂亮(帅哥),你你,你为啥不在你的github release里面放呀,晕晕晕,我还以为 release 里面会有呢
搞好了,顺便更新了支持自定义文档地址
https://github.com/mofelee/alfred-quickref
@mofelee 添加 了3个字段 name
, rgb
, tags
@mofelee 添加 了3个字段
name
,rgb
,tags
@jaywcjlove 已支持最新的数据格式 https://github.com/mofelee/alfred-quickref/releases/tag/v0.4.2
@mofelee 给你小星星
分享一个丐版配置
