mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-01 05:44:17 +00:00
f7d6818c97
Improved SublimeText keymap (Mac & Linux). - Add bind for MoveLineUp/Down (`ctrl-shift-up` on linux and `cmd-ctrl-up` on MacOS). Co-authored-by: unixtensor <brandon@rhpidfyre.io>
55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
[
|
|
{
|
|
"bindings": {
|
|
"ctrl-shift-[": "pane::ActivatePrevItem",
|
|
"ctrl-shift-]": "pane::ActivateNextItem",
|
|
"ctrl-pageup": "pane::ActivatePrevItem",
|
|
"ctrl-pagedown": "pane::ActivateNextItem",
|
|
"ctrl-tab": "pane::ActivateNextItem",
|
|
"ctrl-shift-tab": "pane::ActivatePrevItem"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor",
|
|
"bindings": {
|
|
"ctrl-shift-up": "editor::MoveLineUp",
|
|
"ctrl-shift-down": "editor::MoveLineDown",
|
|
"ctrl-shift-m": "editor::SelectLargerSyntaxNode",
|
|
"ctrl-shift-l": "editor::SplitSelectionIntoLines",
|
|
"ctrl-shift-a": "editor::SelectLargerSyntaxNode",
|
|
"ctrl-shift-d": "editor::DuplicateLineDown",
|
|
"f12": "editor::GoToDefinition",
|
|
"ctrl-f12": "editor::GoToDefinitionSplit",
|
|
"shift-f12": "editor::FindAllReferences",
|
|
"ctrl-shift-f12": "editor::FindAllReferences",
|
|
"ctrl-.": "editor::GoToHunk",
|
|
"ctrl-,": "editor::GoToPrevHunk",
|
|
"ctrl-k ctrl-u": "editor::ConvertToUpperCase",
|
|
"ctrl-k ctrl-l": "editor::ConvertToLowerCase",
|
|
"shift-alt-m": "markdown::OpenPreviewToTheSide",
|
|
"ctrl-backspace": "editor::DeleteToPreviousWordStart",
|
|
"ctrl-delete": "editor::DeleteToNextWordEnd"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == full",
|
|
"bindings": {
|
|
"ctrl-r": "outline::Toggle"
|
|
}
|
|
},
|
|
{
|
|
"context": "Pane",
|
|
"bindings": {
|
|
"f4": "search::SelectNextMatch",
|
|
"shift-f4": "search::SelectPrevMatch"
|
|
}
|
|
},
|
|
{
|
|
"context": "Workspace",
|
|
"bindings": {
|
|
"ctrl-k ctrl-b": "workspace::ToggleLeftDock",
|
|
// "ctrl-0": "project_panel::ToggleFocus", // normally resets zoom
|
|
"shift-ctrl-r": "project_symbols::Toggle"
|
|
}
|
|
}
|
|
]
|