-
Instead of (or in addition to) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I was wrong. You can open up the command palette with [keys.normal]
C-p = "command_palette" |
Beta Was this translation helpful? Give feedback.
-
@o-az The helix docs state that: So @TornaxO7 if you do have it working, you must have mapped Ctrl to Cmd somewhere. If somebody reads this and uses Karabiner Elements.. then the following might be handy for all your future keymapping dreams:
MEH: right_option to meh/right_option if pressed alone {
"description": "right_option to meh/right_option if alone",
"manipulators": [
{
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"lazy": true,
"modifiers": [
"left_option",
"left_control",
"left_shift"
],
"repeat": false
}
],
"to_if_alone": [
{
"key_code": "right_option"
}
],
"type": "basic"
}
]
} HYPER: caps_lock to hyper/escape if pressed alone {
"description": "caps_lock to hyper/escape if alone",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"lazy": true,
"modifiers": [
"left_command",
"left_option",
"left_control",
"left_shift"
],
"repeat": false
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
}
]
} @o-az if you want CMD+p to work, than first map some key.. like right_option to the CMD key just for your terminal. You can keep it for other applications. Then add other mappings, like the ones above to make it work. BUT I would not advice you to do that.. because CMD is a special key for osx. Other apps might use it, like Spotlight or Raycast. In that case you won't be able to use those keys when working in the terminal. |
Beta Was this translation helpful? Give feedback.
@o-az
Some keys aren't valid modifier keys(keys that can be pressed in combination with another).
That's why folks use mapping tools like Karabiner to map the CMD into something else(like SHIFT+ALT+CTRL when pressed).
Then you can map
C-S-A-p
which is like pressingCMD+p
.The helix docs state that:
Ctrl, Shift and Alt modifiers are encoded respectively with the prefixes C-, S- and A-.
So @TornaxO7 if you do have it working, you must have mapped Ctrl to Cmd somewhere.
If somebody reads this and uses Karabiner Elements.. then the following might be handy for all your future keymapping dreams: