mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 15:22:26 +03:00
🎨 Tweak order of default key bindings
This commit is contained in:
parent
490b65b55f
commit
14cf51638c
@ -174,7 +174,6 @@
|
|||||||
"cmd-/": "editor::ToggleComments",
|
"cmd-/": "editor::ToggleComments",
|
||||||
"alt-up": "editor::SelectLargerSyntaxNode",
|
"alt-up": "editor::SelectLargerSyntaxNode",
|
||||||
"alt-down": "editor::SelectSmallerSyntaxNode",
|
"alt-down": "editor::SelectSmallerSyntaxNode",
|
||||||
"ctrl-shift-W": "editor::SelectSmallerSyntaxNode",
|
|
||||||
"cmd-u": "editor::UndoSelection",
|
"cmd-u": "editor::UndoSelection",
|
||||||
"cmd-shift-U": "editor::RedoSelection",
|
"cmd-shift-U": "editor::RedoSelection",
|
||||||
"f8": "editor::GoToNextDiagnostic",
|
"f8": "editor::GoToNextDiagnostic",
|
||||||
@ -265,6 +264,26 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// Bindings that should be unified with bindings for more general actions
|
||||||
|
{
|
||||||
|
"context": "Editor && renaming",
|
||||||
|
"bindings": {
|
||||||
|
"enter": "editor::ConfirmRename"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && showing_completions",
|
||||||
|
"bindings": {
|
||||||
|
"enter": "editor::ConfirmCompletion",
|
||||||
|
"tab": "editor::ConfirmCompletion"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && showing_code_actions",
|
||||||
|
"bindings": {
|
||||||
|
"enter": "editor::ConfirmCodeAction"
|
||||||
|
}
|
||||||
|
},
|
||||||
// Custom bindings
|
// Custom bindings
|
||||||
{
|
{
|
||||||
"bindings": {
|
"bindings": {
|
||||||
@ -277,6 +296,7 @@
|
|||||||
"context": "Editor",
|
"context": "Editor",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"ctrl-w": "editor::SelectLargerSyntaxNode",
|
"ctrl-w": "editor::SelectLargerSyntaxNode",
|
||||||
|
"ctrl-shift-W": "editor::SelectSmallerSyntaxNode",
|
||||||
"alt-cmd-f": "editor::FoldSelectedRanges",
|
"alt-cmd-f": "editor::FoldSelectedRanges",
|
||||||
"alt-enter": "editor::OpenExcerpts",
|
"alt-enter": "editor::OpenExcerpts",
|
||||||
"cmd-f10": "editor::RestartLanguageServer"
|
"cmd-f10": "editor::RestartLanguageServer"
|
||||||
@ -315,26 +335,5 @@
|
|||||||
"left": "project_panel::CollapseSelectedEntry",
|
"left": "project_panel::CollapseSelectedEntry",
|
||||||
"right": "project_panel::ExpandSelectedEntry"
|
"right": "project_panel::ExpandSelectedEntry"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
// Bindings that should be unified with other bindings
|
|
||||||
// for more general actions
|
|
||||||
{
|
|
||||||
"context": "Editor && renaming",
|
|
||||||
"bindings": {
|
|
||||||
"enter": "editor::ConfirmRename"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"context": "Editor && showing_completions",
|
|
||||||
"bindings": {
|
|
||||||
"enter": "editor::ConfirmCompletion",
|
|
||||||
"tab": "editor::ConfirmCompletion"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"context": "Editor && showing_code_actions",
|
|
||||||
"bindings": {
|
|
||||||
"enter": "editor::ConfirmCodeAction"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user