Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

做个一个 alfred 插件,快速打开 quickref #105

Open
mofelee opened this issue Nov 17, 2022 · 20 comments
Open

做个一个 alfred 插件,快速打开 quickref #105

mofelee opened this issue Nov 17, 2022 · 20 comments

Comments

@mofelee
Copy link
Contributor

mofelee commented Nov 17, 2022

Alfred QuickRef (下载)

CleanShot 2022-11-21 at 08 46 33@2x

快速检索备忘清单

如何使用

usage.mp4

image

常见问题

如无法运行请检查是否安装 nodejs

确保 $PATH/usr/bin/usr/local/bin 中能找到 node

CleanShot 2022-11-21 at 20 50 59@2x

安装方法: brew install node

源代码

https://github.com/mofelee/alfred-quickref

@mofelee

This comment was marked as outdated.

jaywcjlove added a commit that referenced this issue Nov 17, 2022
github-actions bot pushed a commit that referenced this issue Nov 17, 2022
jaywcjlove added a commit that referenced this issue Nov 17, 2022
github-actions bot pushed a commit that referenced this issue Nov 17, 2022
@jaywcjlove
Copy link
Owner

@mofelee 自动生成了一份搜索 #32 数据,可用于 alfred 插件

├── dist
│   ├── data.json
│   ├── docs
│   ├── index.html
│   └── style

reference/data.json

Lines 1 to 30 in f412635

{
"ansible": {
"title": "Ansible 备忘清单",
"path": "docs/ansible.html",
"intro": "此快速参考备忘单提供了使用 Ansible 的各种方法。",
"icon": "ansible",
"sections": [
{
"a": "#入门",
"t": "入门",
"l": 2
},
{
"a": "#安装",
"t": "安装",
"l": 3
},
{
"a": "#配置位置",
"t": "配置位置",
"l": 3
},
{
"a": "#inventory文件hosts列表",
"t": "Inventory文件(hosts列表)",
"l": 3
},
{
"a": "#静态inventory",
"t": "静态Inventory",

@jaywcjlove
Copy link
Owner

@mofelee
Copy link
Contributor Author

mofelee commented Nov 17, 2022

@jaywcjlove 好的,我更新下插件

@mofelee

This comment was marked as outdated.

@mofelee

This comment was marked as outdated.

jaywcjlove added a commit that referenced this issue Nov 17, 2022
@jaywcjlove
Copy link
Owner

@mofelee 搞好了

github-actions bot pushed a commit that referenced this issue Nov 17, 2022
@mofelee
Copy link
Contributor Author

mofelee commented Nov 17, 2022

好的,我设想是两层搜索,section 里的数据太杂了,先用 key 过滤数据,直接 Enter 进入网页,或者Alt + Enter 进入当前 key 的section 搜索进入页面,这样不会乱

@mofelee
Copy link
Contributor Author

mofelee commented Nov 17, 2022

@mofelee 搞好了

CleanShot 2022-11-17 at 17 01 13@2x

似乎 json 格式错了,对象的key没值,但有些 key 混在了 array 中

@jaywcjlove
Copy link
Owner

@mofelee 已修复

@mofelee
Copy link
Contributor Author

mofelee commented Nov 17, 2022

做好了,顺便做了个小教程

CleanShot 2022-11-17 at 20 47 31@2x

CleanShot 2022-11-17 at 20 46 54@2x

预览版
QuickRef-0.2.2.alfredworkflow.zip

quickref.mp4

@mofelee
Copy link
Contributor Author

mofelee commented Nov 17, 2022

优化了一下外观,现在看着不太乱了

虽然大多数情况我只会用一级菜单,我还是把二三级菜单做出来了。:sweat_smile:

image

image

预览版:
QuickRef-0.2.3.alfredworkflow.zip

@jaywcjlove jaywcjlove pinned this issue Nov 17, 2022
@jaywcjlove
Copy link
Owner

👍

@Ran-Xing
Copy link

@mofelee 你可真是个大漂亮(帅哥),你你,你为啥不在你的github release里面放呀,晕晕晕,我还以为 release 里面会有呢

@mofelee
Copy link
Contributor Author

mofelee commented Nov 21, 2022

@mofelee 你可真是个大漂亮(帅哥),你你,你为啥不在你的github release里面放呀,晕晕晕,我还以为 release 里面会有呢

那我现在去搞。。

@jaywcjlove 可否增加一个短标题? 我现在的做法是title.replace(/备忘清单$/, '')

@mofelee
Copy link
Contributor Author

mofelee commented Nov 21, 2022

@mofelee 你可真是个大漂亮(帅哥),你你,你为啥不在你的github release里面放呀,晕晕晕,我还以为 release 里面会有呢

搞好了,顺便更新了支持自定义文档地址

https://github.com/mofelee/alfred-quickref

@jaywcjlove
Copy link
Owner

image

@mofelee 添加 了3个字段 name, rgb, tags

@mofelee
Copy link
Contributor Author

mofelee commented Nov 21, 2022

image

@mofelee 添加 了3个字段 name, rgb, tags

@jaywcjlove 已支持最新的数据格式 https://github.com/mofelee/alfred-quickref/releases/tag/v0.4.2

@Ran-Xing
Copy link

@mofelee 给你小星星

@rubickecho
Copy link

分享一个丐版配置

image

image

zhanghuid pushed a commit to zhanghuid/reference that referenced this issue Jul 25, 2024
zhanghuid pushed a commit to zhanghuid/reference that referenced this issue Jul 25, 2024
zhanghuid pushed a commit to zhanghuid/reference that referenced this issue Jul 25, 2024
zhanghuid pushed a commit to zhanghuid/reference that referenced this issue Jul 25, 2024
zhanghuid pushed a commit to zhanghuid/reference that referenced this issue Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants