mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 20:32:22 +03:00
f252d9cf67
Not sure what the etiquette is here, but in the interest of fixing #10242, I've re-implemented @jish's PR https://github.com/zed-industries/zed/pull/10535 and have signed the CLA Release Notes: - Fixed `alt-shift-left` and `alt-shift-right` in the Textmate default keybindings. ([#10242](https://github.com/zed-industries/zed/issues/10242)) TextMate keymap uses default option shift arrow selection
97 lines
2.6 KiB
JSON
97 lines
2.6 KiB
JSON
[
|
|
{
|
|
"bindings": {
|
|
"cmd-shift-o": "projects::OpenRecent",
|
|
"cmd-alt-tab": "project_panel::ToggleFocus"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor",
|
|
"bindings": {
|
|
"cmd-l": "go_to_line::Toggle",
|
|
"ctrl-shift-d": "editor::DuplicateLineDown",
|
|
"cmd-b": "editor::GoToDefinition",
|
|
"cmd-j": "editor::ScrollCursorCenter",
|
|
"cmd-enter": "editor::NewlineBelow",
|
|
"cmd-alt-enter": "editor::NewLineAbove",
|
|
"cmd-shift-l": "editor::SelectLine",
|
|
"cmd-shift-t": "outline::Toggle",
|
|
"alt-backspace": "editor::DeleteToPreviousWordStart",
|
|
"alt-shift-backspace": "editor::DeleteToNextWordEnd",
|
|
"alt-delete": "editor::DeleteToNextWordEnd",
|
|
"alt-shift-delete": "editor::DeleteToNextWordEnd",
|
|
"ctrl-backspace": "editor::DeleteToPreviousSubwordStart",
|
|
"ctrl-delete": "editor::DeleteToNextSubwordEnd",
|
|
"alt-left": [
|
|
"editor::MoveToPreviousWordStart",
|
|
{
|
|
"stop_at_soft_wraps": true
|
|
}
|
|
],
|
|
"alt-right": [
|
|
"editor::MoveToNextWordEnd",
|
|
{
|
|
"stop_at_soft_wraps": true
|
|
}
|
|
],
|
|
"ctrl-left": "editor::MoveToPreviousSubwordStart",
|
|
"ctrl-right": "editor::MoveToNextSubwordEnd",
|
|
"cmd-shift-left": "editor::SelectToBeginningOfLine",
|
|
"cmd-shift-right": "editor::SelectToEndOfLine",
|
|
"alt-shift-left": [
|
|
"editor::SelectToPreviousWordStart",
|
|
{
|
|
"stop_at_soft_wraps": true
|
|
}
|
|
],
|
|
"alt-shift-right": [
|
|
"editor::SelectToNextWordEnd",
|
|
{
|
|
"stop_at_soft_wraps": true
|
|
}
|
|
],
|
|
"ctrl-shift-left": "editor::SelectToPreviousSubwordStart",
|
|
"ctrl-shift-right": "editor::SelectToNextSubwordEnd",
|
|
"ctrl-w": "editor::SelectNext",
|
|
"ctrl-u": "editor::ConvertToUpperCase",
|
|
"ctrl-shift-u": "editor::ConvertToLowerCase",
|
|
"ctrl-alt-u": "editor::ConvertToUpperCamelCase",
|
|
"ctrl-_": "editor::ConvertToSnakeCase"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == full",
|
|
"bindings": {}
|
|
},
|
|
{
|
|
"context": "BufferSearchBar",
|
|
"bindings": {
|
|
"ctrl-s": "search::SelectNextMatch",
|
|
"ctrl-shift-s": "search::SelectPrevMatch"
|
|
}
|
|
},
|
|
{
|
|
"context": "Workspace",
|
|
"bindings": {
|
|
"cmd-alt-ctrl-d": "workspace::ToggleLeftDock",
|
|
"cmd-t": "file_finder::Toggle",
|
|
"cmd-shift-t": "project_symbols::Toggle"
|
|
}
|
|
},
|
|
{
|
|
"context": "Pane",
|
|
"bindings": {
|
|
"alt-cmd-r": "search::ToggleRegex",
|
|
"ctrl-tab": "project_panel::ToggleFocus"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectPanel",
|
|
"bindings": {}
|
|
},
|
|
{
|
|
"context": "Dock",
|
|
"bindings": {}
|
|
}
|
|
]
|