vika.cn

vika.cn

notion-search-alfred5-workflow

notion-search-alfred5-workflow

alfred-terminalfinder

alfred-terminalfinder

alfred-open-with-vscode-workflow

alfred-open-with-vscode-workflow

Menu-Bar-Search

Menu-Bar-Search

可能遇到的问题:

`Assistive applications are not enabled in System Preferences.`

解决:

设置→安全性与隐私→辅助功能→允许 Alfred

image.png

如果还是不行的话,先按住图片里面的减号去掉 Alfred,然后重新添加一次。

alfred-process-killer

alfred-process-killer

alfred-github-workflow

alfred-github-workflow

前置依赖安装:brew install php

碰到命令不起作用的问题,什么都不输出,具体的表现可以看看:Current version breaks in latest php from Homebrew · Issue #138 · gharlan/alfred-github-workflow

然后同样按照开发者的排查方法操作了:

image.png

在本地的 ~/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows 目录下找到这个 workflow 的目录,并修改 curl.hpp 但是我多加了几行用来确定是不是调用的 brew 环境下 php 依赖的 curl,而不是系统的 /usr/bin/curl

具体修改:

$curlVersionInfo = curl_version();
echo "cURL Version Info: \n";
var_dump($curlVersionInfo);
print_r($info); exit;

发现和这个 issue 的提出者的输出是一样的,碰到了 http code = 0 的问题。

然后在 https://stackoverflow.com/questions/10227879/php-curl-http-code-return-0 的第一个回答找到了可能的原因和测试代码,把里面请求的网址改成了这个 workflow 要请求的地址

test.php

运行 php test.php 后输出

Return code is 0 
error setting certificate file: /opt/homebrew/etc/openssl@3/cert.pem

发现 /opt/homebrew/etc/openssl@3/cert.pem 软链接到了一个不存在的文件:

/opt/homebrew/etc/openssl@3/cert.pem -> ../ca-certificates/cert.pem

看起来是和 ca-certificates 的安装有关系,因此尝试 brew install ca-certificates 但是发现已经安装了,最终尝试,解决:

Important

brew reinstall ca-certificates

alfred-gitlab-workflow

alfred-gitlab-workflow

Fork: https://github.com/HRXWEB/alfred-gitlab Upstream: https://github.com/lukewaite/alfred-gitlab 版本 v3.0.1 当前版本:4.0.0

配置

v4.0.0 推荐使用新的多 GitLab Host 配置命令:

glhostadd [name] <api_url> <access_token>

其中 name 可选。不填时会自动从域名、IP、端口或 IPv6 地址生成 profile 名。

示例:

glhostadd https://gitlab.com/api/v4/projects <access_token>
glhostadd http://192.168.3.224:8081/api/v4/projects <access_token>
glhostadd company https://gitlab.example.com/api/v4/projects <access_token>

HTTP 地址可以用,但 token 会明文传输,建议优先使用 HTTPS。

常用命令

  gl <query> # 搜索所有已配置 GitLab host 的项目
  glhostadd [name] ... # 添加或更新 GitLab host profile
  glhostlist # 查看已配置的 host、缓存项目数、刷新状态
  glhostremove <name> # 删除指定 host profile
  glrefresh # 立即刷新所有 host 的项目缓存

clashx-alfred

clashx-alfred

alfred-browser-tabs

alfred-browser-tabs

alfred-markdown-table

alfred-markdown-table