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

2022-10-12 08:38:06 +08:00
 N032138

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

1222 次点击
所在节点    Apple
4 条回复
CY4suncheng
2022-10-12 10:28:16 +08:00
不知道,我已经替换到 spotlight 了,😂
monstervivi
2022-10-12 10:36:36 +08:00
之前看到有大佬贴过 Karabiner 的配置

https://www.v2ex.com/t/830463#r_11319236
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
2022-10-12 14:20:40 +08:00
@kennir 从入门到放弃。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/886232

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX