V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
N032138
V2EX  ›  Apple

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

  •  
  •   N032138 · Oct 12, 2022 · 2043 views
    This topic created in 1295 days ago, the information mentioned may be changed or developed.

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

    5 replies    2025-04-03 14:56:17 +08:00
    Clay0620
        1
    Clay0620  
       Oct 12, 2022
    不知道,我已经替换到 spotlight 了,😂
    monstervivi
        2
    monstervivi  
       Oct 12, 2022
    之前看到有大佬贴过 Karabiner 的配置

    https://www.v2ex.com/t/830463#r_11319236
    kennir
        3
    kennir  
       Oct 12, 2022
    我是双击 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
       Oct 12, 2022
    @kennir 从入门到放弃。。。
    JimmyRogue
        5
    JimmyRogue  
       Apr 3, 2025
    笑死,我试了一下,可以用左、右的 command 来绑定就好了。但是使用的时候还是双击任何一个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.