Probably gonna put this on halt for now as I notice zed doesn't have TODO/FIXME highlighting yet.
33 lines
904 B
JSON
33 lines
904 B
JSON
// 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": "!ProjectPanel",
|
|
"bindings": {
|
|
"ctrl-n": "project_panel::ToggleFocus"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectPanel",
|
|
"bindings": {
|
|
"ctrl-n": "workspace::ToggleLeftDock"
|
|
}
|
|
},
|
|
{
|
|
"context": "vim_mode == normal",
|
|
"bindings": {
|
|
// NOTE: No need to rebind yank (y) and paste (p) since they are basically act the same as "+y and "+p in vim
|
|
"U": "vim::Redo"
|
|
/*
|
|
// <C-u> is signed to replace "U" which resigned as vim::Redo, but "U" doesn't seems to exists in zed?
|
|
// According to the documentation, "U" is "return the last line which was modified to its original state"
|
|
"ctrl-u": "",
|
|
*/
|
|
}
|
|
}
|
|
]
|