V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
N032138
V2EX  ›  Apple

请问 raycast 怎么设置双击按键呼出

  •  
  •   N032138 · 2022-10-12 08:38:06 +08:00 · 1222 次点击
    这是一个创建于 803 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如双击 option 即可呼出搜索框

    4 条回复    2022-10-12 14:20:40 +08:00
    CY4suncheng
        1
    CY4suncheng  
       2022-10-12 10:28:16 +08:00
    不知道,我已经替换到 spotlight 了,😂
    monstervivi
        2
    monstervivi  
       2022-10-12 10:36:36 +08:00
    之前看到有大佬贴过 Karabiner 的配置

    https://www.v2ex.com/t/830463#r_11319236
    kennir
        3
    kennir  
       2022-10-12 12:41:30 +08:00
    我是双击 shift 弹出,在 raycast 里把快捷键改成 f17 就可以了

    ```
    {
    "title": "Spotlight",
    "rules": [
    {
    "description": "Double tap right shift to spotlight | 双击 右 shift 弹出 Spotlight 并且切换到英文",
    "manipulators": [
    {
    "type": "basic",
    "from": {
    "key_code": "right_shift",
    "modifiers": {
    "optional": ["any"]
    }
    },
    "to": [
    {
    "key_code": "f17"
    },
    {
    "select_input_source": {
    "language": "en"
    }
    }
    ],
    "conditions": [
    {
    "type": "variable_if",
    "name": "right_shift pressed",
    "value": 1
    }
    ]
    },
    {
    "type": "basic",
    "from": {
    "key_code": "right_shift",
    "modifiers": {
    "optional": ["any"]
    }
    },
    "to": [
    {
    "set_variable": {
    "name": "right_shift pressed",
    "value": 1
    }
    },
    {
    "key_code": "right_shift"
    }
    ],
    "to_delayed_action": {
    "to_if_invoked": [
    {
    "set_variable": {
    "name": "right_shift pressed",
    "value": 0
    }
    }
    ],
    "to_if_canceled": [
    {
    "set_variable": {
    "name": "right_shift pressed",
    "value": 0
    }
    }
    ]
    }
    }
    ]
    },
    {
    "description": "Command_L (⌘) + Space → Spotlight (F18) | 左 Command (⌘) + 空格 → 聚焦搜索",
    "manipulators": [
    {
    "from": {
    "key_code": "spacebar",
    "modifiers": {
    "mandatory": [
    "left_command"
    ],
    "optional": [
    "left_option"
    ]
    }
    },
    "to": [
    {
    "key_code": "f17"
    },
    {
    "select_input_source": {
    "language": "en"
    }
    }
    ],
    "type": "basic"
    }
    ]
    }
    ]
    }

    ```
    N032138
        4
    N032138  
    OP
       2022-10-12 14:20:40 +08:00
    @kennir 从入门到放弃。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1189 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:04 · PVG 02:04 · LAX 10:04 · JFK 13:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.