feat: add zed config

This commit is contained in:
2025-04-28 07:49:36 +02:00
parent 8d1ec154e4
commit 9b84dcba5d
3 changed files with 107 additions and 4 deletions
+48
View File
@@ -0,0 +1,48 @@
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
},
{
"context": "vim_mode == normal",
"bindings": {
"t n": "workspace::NewFile",
"t q": "pane::CloseActiveItem",
"space f e": "project_panel::ToggleFocus",
"space f f": "file_finder::Toggle",
"space f g": "workspace::NewSearch",
"space g g": "git_panel::ToggleFocus",
"space g d": "git::Diff"
}
},
{
"context": "GitPanel",
"bindings": {
"c c": "git_panel::FocusEditor"
}
},
{
"context": "GitDiff",
"bindings": {
"space g s": "git::StageAndNext",
"space g u": "git::UnstageAndNext",
"space g c": "git::Commit",
"space g a": "git::Amend"
}
}
]