James Notes
使用 Alfred 打开 ChatGPT 书签的时候,有时候手打快了就会变成启动 Charles,因为它们都是 cha 前缀,为了解决这个问题,可以把 Charles 从 Alfred 的搜索结果中忽略掉。 打开 Charles 的详情页面,在注释里输入:alfred:ignore,然后呼出 Alfred 输入 reload 刷新缓存,之后 Alfred 的搜索结果中就不会再出现 Charles 了。 此操作同样适用于文件夹。大家可以根据自己的实际需要,添加需要忽略的应用或者目录。 Excluding…
如何不让 Terminal 显示在 Alfred 搜索结果中?上一次我们提到的这个方法对系统 App 无法正常使用,需要用另一种方式实现。打开偏好设置 → Siri与聚焦 → 右下角「聚焦搜索...」,另开一个 Finder 窗口把终端拖入,最后使用 Alfred 的 reload 重新加载缓存即可。
在 Mac 上重建“聚焦”索引 - 官方 Apple 支持 (中国)
Remove Terminal.app from Alfred & Spotlight · Kaushik Gopal’s Site
Is there a way to exclude certain apps from showing in the spotlight/alfred results - Ask Different
在 Mac 上重建“聚焦”索引 - 官方 Apple 支持 (中国)
Remove Terminal.app from Alfred & Spotlight · Kaushik Gopal’s Site
Is there a way to exclude certain apps from showing in the spotlight/alfred results - Ask Different
最近写了两个 macOS 命令行工具:imgcopy & imgpaste,支持复制和粘贴剪贴板中的图片,适合搭配各种自动化脚本使用。
imgcopy:将本地图片或标准输入的图像复制到剪贴板
imgpaste:从剪贴板中提取图像,输出为数据流
用法示例:
适合做截图上传、图像识别、自动化分享、远程粘贴等工作流。
JamesHopbourn/imgcopy & imgpaste
imgcopy:将本地图片或标准输入的图像复制到剪贴板
imgpaste:从剪贴板中提取图像,输出为数据流
用法示例:
cat result.jpg | imgcopy -
curl https://xx.jpg | imgcopy -
imgpaste > result.png
imgpaste | zbarimg -
imgpaste | ssh host '/usr/local/bin/imgcopy -'
适合做截图上传、图像识别、自动化分享、远程粘贴等工作流。
JamesHopbourn/imgcopy & imgpaste
Gist
CMakeLists.txt
GitHub Gist: instantly share code, notes, and snippets.
👍3