Skip to content

Instantly share code, notes, and snippets.

@mustakimali
Last active November 23, 2024 10:30
Show Gist options
  • Save mustakimali/741dc3141410afb18cf7c55f6e71e97b to your computer and use it in GitHub Desktop.
Save mustakimali/741dc3141410afb18cf7c55f6e71e97b to your computer and use it in GitHub Desktop.
Zed keymap similar to VSCode for linux/windows
[
{
"context": "Editor",
"bindings": {
"ctrl-t": "project_symbols::Toggle",
"ctrl-shift-t": "file_finder::Toggle",
"ctrl-p": "command_palette::Toggle",
"ctrl-g ctrl-g": "editor::GoToDefinition",
"ctrl-f ctrl-f": "editor::FindAllReferences",
"ctrl-k ctrl-c": "editor::ToggleComments",
"ctrl-/": "vim::Search",
"ctrl-r ctrl-r": "editor::Rename",
"ctrl-g ctrl-f": "editor::FindAllReferences",
"ctrl-d": "editor::DuplicateLineDown",
"ctrl-k ctrl-r": "editor::RevertSelectedHunks",
"ctrl-l ctrl-t": "task::Rerun"
}
},
{
"context": "Workspace",
"bindings": {
"ctrl-shift-b": null, // bug: not usuable in tmux- https://github.com/zed-industries/zed/pull/2678
"ctrl-shift-b %": "workspace::NewTerminal"
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-c": "terminal::Copy",
"ctrl-v": "terminal::Paste",
"ctrl-up": "terminal::ScrollLineUp",
"ctrl-down": "terminal::ScrollLineDown"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment