V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
ychen997
V2EX  ›  分享创造

用 Python 写的 Alfred GitHub Workflow 进入官方合集了

  •  
  •   ychen997 ·
    yinan-c · 336 天前 · 1870 次点击
    这是一个创建于 336 天前的主题,其中的信息可能已经有所发展或是发生改变。

    造轮子写了一个可以显示和搜索 GitHub star 的 Workflow

    半天时间写,半天时间改,最终终于上了官方的Workflow gallery, 源码在这儿

    另外昨天刚写了一个 OpenAI 和 DeepL 的翻译插件,刚发布第一版,欢迎小伙伴下载体验 star 提 issue 。

    13 条回复    2023-05-31 23:20:18 +08:00
    wzw
        1
    wzw  
       336 天前 via iPhone
    我当例子学习😄
    neochen13
        2
    neochen13  
       335 天前
    不错啊!!学习一下
    ychen997
        3
    ychen997  
    OP
       335 天前
    @wzw @neochen13 感谢支持!
    ychen997
        4
    ychen997  
    OP
       331 天前
    翻译 Workflow 发布了 1.1 版本,支持了更多服务![]( )
    hackpro
        5
    hackpro  
       330 天前
    发现了个很好用的日历类 workflow 可以 cal 回车直接查看当月日历
    https://github.com/owenwater/alfred-cal

    但是用的是老版本 python2 很多新版本系统已经没法使用了
    GitHub 给原作者提了 issue 没啥反馈 大佬可以帮忙升级吗😄
    ychen997
        6
    ychen997  
    OP
       330 天前
    @hackpro 我在用这个 https://github.com/zeitlings/alfred-calendar 代替,这个是真-大佬
    hackpro
        7
    hackpro  
       330 天前
    @ychen997 感谢大佬推荐
    碰到一个奇怪的问题 导入后不能正常显示日历 cals 检索倒是没有问题😂
    ychen997
        8
    ychen997  
    OP
       330 天前
    @hackpro #7 可以看一下 debugger 吗,我的没有问题
    hackpro
        9
    hackpro  
       330 天前
    @ychen997 感谢回复

    1. 这是使用 cal 不带空格的
    https://s2.loli.net/2023/05/30/2xomHlwYF4uK9rv.png
    2. 这是使用 cal 带空格的
    https://s2.loli.net/2023/05/30/85WBVjX9TKyRhLE.png
    3. 打开 debugger 似乎是少安装了什么东西?系统 macOS 10.14.6 Version 11.3.1 (11C505)
    https://s2.loli.net/2023/05/30/rsTcfbxu6Wj7ZPg.png
    hackpro
        10
    hackpro  
       330 天前
    https://sm.ms/image/KAeE6lNvMzbRkpB

    [14:20:19.512] Logging Started...
    [14:20:21.650] Calendar++[Script Filter] Queuing argument '(null)'
    [14:20:21.729] Calendar++[Script Filter] Script with argv '(null)' finished
    [14:20:21.733] ERROR: Calendar++[Script Filter] Code 134: dyld: Library not loaded: /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
    Referenced from: ~/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.12CFF914-9792-4BDD-A3C6-C9D05C0C8495/./src/calpp
    Reason: image not found
    ychen997
        11
    ychen997  
    OP
       330 天前
    @hackpro #9 可能是 big sur 的问题,我是 Ventura ,issue 里也有类似的 https://github.com/owenwater/alfred-cal/issues/19, 或许可以试一下这个 https://github.com/cleobis/alfred-cal/releases 这个是 https://github.com/owenwater/alfred-cal 的 fork
    hackpro
        12
    hackpro  
       330 天前 via iPhone
    @ychen997 #11 感谢 已经切到 v1.6.3
    ychen997
        13
    ychen997  
    OP
       328 天前
    翻译插件 更新到了 v1.2
    修复:将不同的翻译分隔在不同的脚本过滤器中,并根据时间逐一显示结果,以避免结果延迟。
    更新:现在你不需要按回车来翻译,翻译现在是交互式,实时的。
    更新:universal actions 中也把 6 种翻译分隔。
    更新:更换为 gpt-3.5-turbo ,应该比 text-davinci-003 更便宜,同时保持良好的准确性
    更改图标。另外 checkout 我最新写的 Homebrew 插件,https://www.v2ex.com/t/944106
    下载这儿 https://github.com/yinan-c/alfred-homebrew/releases
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4110 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:12 · PVG 12:12 · LAX 21:12 · JFK 00:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.