mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:06:44 +00:00
feat(cursor): add prev/next paragrapn alt+a/e keybindings
This commit is contained in:
@@ -216,6 +216,23 @@
|
|||||||
// Text navigation
|
// Text navigation
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
//
|
//
|
||||||
|
{ // Forward paragraph.
|
||||||
|
"key": "alt+e",
|
||||||
|
"command": "emacs-mcx.forwardParagraph",
|
||||||
|
"when": "editorTextFocus && !suggestWidgetVisible"
|
||||||
|
},
|
||||||
|
{ // Forward paragraph.
|
||||||
|
// This is a workaround for alt+e not working in VSCode. Relies on
|
||||||
|
// Karabiner-Elements to remap alt+e to cmd+alt+right.
|
||||||
|
"key": "cmd+alt+right",
|
||||||
|
"command": "emacs-mcx.forwardParagraph",
|
||||||
|
"when": "editorTextFocus && !suggestWidgetVisible"
|
||||||
|
},
|
||||||
|
{ // Backward paragraph.
|
||||||
|
"key": "alt+a",
|
||||||
|
"command": "emacs-mcx.backwardParagraph",
|
||||||
|
"when": "editorTextFocus && !suggestWidgetVisible"
|
||||||
|
},
|
||||||
{ // Go to symbol definition.
|
{ // Go to symbol definition.
|
||||||
"key": "ctrl+t",
|
"key": "ctrl+t",
|
||||||
"command": "workbench.action.gotoSymbol",
|
"command": "workbench.action.gotoSymbol",
|
||||||
|
|||||||
@@ -1,71 +1,104 @@
|
|||||||
{
|
{
|
||||||
"description": "VSCode alt keybindings workaround",
|
"description": "VSCode alt keybindings workaround",
|
||||||
"manipulators": [
|
"manipulators": [
|
||||||
|
{
|
||||||
|
"conditions": [
|
||||||
{
|
{
|
||||||
"conditions": [
|
"bundle_identifiers": [
|
||||||
{
|
"^com\\.microsoft\\.VSCode",
|
||||||
"bundle_identifiers": [
|
"^com\\.todesktop\\."
|
||||||
"^com\\.microsoft\\.VSCode",
|
],
|
||||||
"^com\\.todesktop\\."
|
"type": "frontmost_application_if"
|
||||||
],
|
|
||||||
"type": "frontmost_application_if"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"from": {
|
|
||||||
"key_code": "i",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": [
|
|
||||||
"option"
|
|
||||||
],
|
|
||||||
"optional": [
|
|
||||||
"caps_lock",
|
|
||||||
"shift"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "up_arrow",
|
|
||||||
"modifiers": [
|
|
||||||
"left_option",
|
|
||||||
"left_command"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"conditions": [
|
|
||||||
{
|
|
||||||
"bundle_identifiers": [
|
|
||||||
"^com\\.microsoft\\.VSCode",
|
|
||||||
"^com\\.todesktop\\."
|
|
||||||
],
|
|
||||||
"type": "frontmost_application_if"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"from": {
|
|
||||||
"key_code": "n",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": [
|
|
||||||
"option"
|
|
||||||
],
|
|
||||||
"optional": [
|
|
||||||
"caps_lock",
|
|
||||||
"shift"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "down_arrow",
|
|
||||||
"modifiers": [
|
|
||||||
"left_option",
|
|
||||||
"left_command"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "basic"
|
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
}
|
"from": {
|
||||||
|
"key_code": "i",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"option"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"caps_lock",
|
||||||
|
"shift"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "up_arrow",
|
||||||
|
"modifiers": [
|
||||||
|
"left_option",
|
||||||
|
"left_command"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"bundle_identifiers": [
|
||||||
|
"^com\\.microsoft\\.VSCode",
|
||||||
|
"^com\\.todesktop\\."
|
||||||
|
],
|
||||||
|
"type": "frontmost_application_if"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"from": {
|
||||||
|
"key_code": "n",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"option"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"caps_lock",
|
||||||
|
"shift"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "down_arrow",
|
||||||
|
"modifiers": [
|
||||||
|
"left_option",
|
||||||
|
"left_command"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"bundle_identifiers": [
|
||||||
|
"^com\\.microsoft\\.VSCode",
|
||||||
|
"^com\\.todesktop\\."
|
||||||
|
],
|
||||||
|
"type": "frontmost_application_if"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"from": {
|
||||||
|
"key_code": "e",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"option"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"caps_lock",
|
||||||
|
"shift"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "right_arrow",
|
||||||
|
"modifiers": [
|
||||||
|
"left_option",
|
||||||
|
"left_command"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user