update zed tasks and keymap

This commit is contained in:
2026-01-12 14:02:31 +08:00
parent 2f37ac4f95
commit 28e1135dd7
3 changed files with 58 additions and 57 deletions

View File

@@ -6,25 +6,22 @@
// 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": "VimControl && !menu",
"bindings": {
"j": ["vim::Down", { "display_lines": true }],
"k": ["vim::Up", { "display_lines": true }],
"g j": "vim::Down",
"g k": "vim::Up"
}
}
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
},
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
},
},
{
"context": "Editor && extension==tex", // This restricts the keybindings to tex files however does not work when in terminal
"bindings": {
"ctrl-alt-f": ["task::Spawn", { "task_name": "forward_search" }]
},
},
]