2023-03-07 20:19:51 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"bindings": {
|
|
|
|
"cmd-shift-[": "pane::ActivatePrevItem",
|
|
|
|
"cmd-shift-]": "pane::ActivateNextItem"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor",
|
|
|
|
"bindings": {
|
|
|
|
"ctrl->": "zed::IncreaseBufferFontSize",
|
|
|
|
"ctrl-<": "zed::DecreaseBufferFontSize",
|
2023-11-13 15:41:56 +00:00
|
|
|
"ctrl-shift-j": "editor::JoinLines",
|
2024-03-28 10:52:08 +00:00
|
|
|
"cmd-d": "editor::DuplicateLineDown",
|
2023-05-15 18:12:02 +00:00
|
|
|
"cmd-backspace": "editor::DeleteLine",
|
2023-03-07 20:19:51 +00:00
|
|
|
"cmd-pagedown": "editor::MovePageDown",
|
|
|
|
"cmd-pageup": "editor::MovePageUp",
|
|
|
|
"ctrl-alt-shift-b": "editor::SelectToPreviousWordStart",
|
2023-04-21 15:29:35 +00:00
|
|
|
"cmd-alt-enter": "editor::NewlineAbove",
|
2023-03-07 20:19:51 +00:00
|
|
|
"shift-enter": "editor::NewlineBelow",
|
|
|
|
"cmd--": "editor::Fold",
|
2023-11-13 15:41:56 +00:00
|
|
|
"cmd-+": "editor::UnfoldLines",
|
2023-03-07 20:19:51 +00:00
|
|
|
"alt-shift-g": "editor::SplitSelectionIntoLines",
|
|
|
|
"ctrl-g": ["editor::SelectNext", { "replace_newest": false }],
|
2023-06-02 15:32:34 +00:00
|
|
|
"ctrl-cmd-g": ["editor::SelectPrevious", { "replace_newest": false }],
|
2023-03-07 20:19:51 +00:00
|
|
|
"cmd-/": ["editor::ToggleComments", { "advance_downwards": true }],
|
2024-03-06 19:16:14 +00:00
|
|
|
"alt-up": "editor::SelectLargerSyntaxNode",
|
|
|
|
"alt-down": "editor::SelectSmallerSyntaxNode",
|
2023-03-07 20:19:51 +00:00
|
|
|
"shift-alt-up": "editor::MoveLineUp",
|
|
|
|
"shift-alt-down": "editor::MoveLineDown",
|
2023-05-15 18:12:02 +00:00
|
|
|
"cmd-alt-l": "editor::Format",
|
2024-02-02 07:55:54 +00:00
|
|
|
"shift-f6": "editor::Rename",
|
2023-03-07 20:19:51 +00:00
|
|
|
"cmd-[": "pane::GoBack",
|
|
|
|
"cmd-]": "pane::GoForward",
|
|
|
|
"alt-f7": "editor::FindAllReferences",
|
|
|
|
"cmd-alt-f7": "editor::FindAllReferences",
|
2024-10-18 14:12:39 +00:00
|
|
|
"cmd-b": "editor::GoToDefinition", // Conflicts with workspace::ToggleLeftDock
|
2023-07-14 19:41:23 +00:00
|
|
|
"cmd-alt-b": "editor::GoToDefinitionSplit",
|
2023-03-07 20:19:51 +00:00
|
|
|
"cmd-shift-b": "editor::GoToTypeDefinition",
|
2023-07-14 19:41:23 +00:00
|
|
|
"cmd-alt-shift-b": "editor::GoToTypeDefinitionSplit",
|
2023-03-07 20:19:51 +00:00
|
|
|
"f2": "editor::GoToDiagnostic",
|
2024-07-08 19:05:29 +00:00
|
|
|
"shift-f2": "editor::GoToPrevDiagnostic",
|
2023-03-07 20:19:51 +00:00
|
|
|
"ctrl-alt-shift-down": "editor::GoToHunk",
|
|
|
|
"ctrl-alt-shift-up": "editor::GoToPrevHunk",
|
|
|
|
"cmd-home": "editor::MoveToBeginning",
|
|
|
|
"cmd-end": "editor::MoveToEnd",
|
|
|
|
"cmd-shift-home": "editor::SelectToBeginning",
|
|
|
|
"cmd-shift-end": "editor::SelectToEnd"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Editor && mode == full",
|
|
|
|
"bindings": {
|
|
|
|
"cmd-f12": "outline::Toggle",
|
|
|
|
"cmd-7": "outline::Toggle",
|
|
|
|
"cmd-shift-o": "file_finder::Toggle",
|
2024-05-24 09:47:38 +00:00
|
|
|
"cmd-l": "go_to_line::Toggle",
|
|
|
|
"alt-enter": "editor::ToggleCodeActions"
|
2023-03-07 20:19:51 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"context": "Workspace",
|
|
|
|
"bindings": {
|
2023-05-15 18:12:02 +00:00
|
|
|
"cmd-shift-o": "file_finder::Toggle",
|
2023-03-07 20:19:51 +00:00
|
|
|
"cmd-shift-a": "command_palette::Toggle",
|
Add `shift shift` to open command palette (#13556)
I've add `shift shift` as a default keybinding to open command palette,
when using JetBrains keymap, along with the already existing
`cmd-shift-a`. This isn't quite right, as in JetBrains, `cmd-shift-a`
opens the actions modal, which would be our command palette, and `shift
shift` actually opens up a view for searching everything, commands,
actions, settings, etc - we do not have a unified modal for these
things, so I think this is the best thing we can do. Some users might
want to change this to be our file picker, but I think adding it as the
default at least puts it on their radar that they can use this type of
binding; they can change it if they want.
Release Notes:
- Added `shift shift` as a default binding to open the command palette
in the JetBrains keymap.
2024-06-26 20:44:40 +00:00
|
|
|
"shift shift": "command_palette::Toggle",
|
2024-10-18 14:12:39 +00:00
|
|
|
"cmd-alt-o": "project_symbols::Toggle", // JetBrains: Go to Symbol
|
|
|
|
"cmd-o": "project_symbols::Toggle", // JetBrains: Go to Class
|
2023-05-05 22:04:36 +00:00
|
|
|
"cmd-1": "workspace::ToggleLeftDock",
|
2023-05-05 21:02:26 +00:00
|
|
|
"cmd-6": "diagnostics::Deploy"
|
2023-03-07 20:19:51 +00:00
|
|
|
}
|
2024-01-24 05:34:26 +00:00
|
|
|
},
|
2024-02-07 07:12:34 +00:00
|
|
|
{
|
|
|
|
"context": "Pane",
|
|
|
|
"bindings": {
|
|
|
|
"cmd-alt-left": "pane::GoBack",
|
|
|
|
"cmd-alt-right": "pane::GoForward"
|
|
|
|
}
|
|
|
|
},
|
2024-01-24 05:34:26 +00:00
|
|
|
{
|
|
|
|
"context": "ProjectPanel",
|
|
|
|
"bindings": {
|
2024-02-02 07:55:54 +00:00
|
|
|
"enter": "project_panel::Open",
|
2024-06-25 18:21:44 +00:00
|
|
|
"cmd-backspace": ["project_panel::Trash", { "skip_prompt": false }],
|
|
|
|
"backspace": ["project_panel::Trash", { "skip_prompt": false }],
|
|
|
|
"delete": ["project_panel::Trash", { "skip_prompt": false }],
|
|
|
|
"shift-delete": ["project_panel::Delete", { "skip_prompt": false }],
|
2024-02-02 07:55:54 +00:00
|
|
|
"shift-f6": "project_panel::Rename"
|
2024-01-24 05:34:26 +00:00
|
|
|
}
|
2023-03-07 20:19:51 +00:00
|
|
|
}
|
2023-03-13 12:27:04 +00:00
|
|
|
]
|