gpt4 book ai didi

karabiner - 如何交换方括号和大括号(karabiner)

转载 作者:行者123 更新时间:2023-12-05 05:06:10 30 4
gpt4 key购买 nike

在 Karabiner 规则 ( https://pqrs.org/osx/karabiner/complex_modifications/ ) 上,有交换括号和方括号的规则,但没有交换方括号和大括号的规则。

[问] 如何通过 Karabiner 或其他替代方法交换方括号和大括号?

求购:

  • [ => {{ => [
  • ] => }} => ]

最佳答案

这段代码对我有用

{
"description": "Swap {} and []",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "open_bracket"
},
"to": [
{
"modifiers": ["left_shift"],
"key_code": "open_bracket"
}
]
},
{
"type": "basic",
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": ["left_shift"]
}
},
"to": [
{
"key_code": "open_bracket"
}
]
},
{
"type": "basic",
"from": {
"key_code": "close_bracket"
},
"to": [
{
"modifiers": ["left_shift"],
"key_code": "close_bracket"
}
]
},
{
"type": "basic",
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": ["left_shift"]
}
},
"to": [
{
"key_code": "close_bracket"
}
]
}
]
}

编辑:现在也在复杂模组列表中 https://pqrs.org/osx/karabiner/complex_modifications/#exchange_square_brackets_and_curly_brackets

关于karabiner - 如何交换方括号和大括号(karabiner),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60092430/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com