Skip to content

Instantly share code, notes, and snippets.

@megurock
Last active August 14, 2026 03:14
Show Gist options
  • Select an option

  • Save megurock/ab4e9e5dcd9b2d5efd8b64a1cc2c59af to your computer and use it in GitHub Desktop.

Select an option

Save megurock/ab4e9e5dcd9b2d5efd8b64a1cc2c59af to your computer and use it in GitHub Desktop.
zed キーマップ設定
// 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": {
"cmd-shift-g": "git_panel::ToggleFocus"
},
},
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
"bindings": {
// タブ系
//// タブを閉じる
"space c c": "pane::CloseActiveItem",
//// 左のタブに移動
"space h": "pane::ActivatePreviousItem",
//// 右のタブに移動
"space l": "pane::ActivateNextItem",
//// 左のタブと入れ替え
"space <": "pane::SwapItemLeft",
//// 右のタブと入れ替え
"space >": "pane::SwapItemRight",
// Buffer / Tab
//// 閉じたタブを再度開く
"space u": "pane::ReopenClosedItem",
//// 現在のタブ以外閉じる
"space c o": "pane::CloseOtherItems",
//// 現在より左側のタブをすべて閉じる
"space c h": "pane::CloseItemsToTheLeft",
//// 現在より右側のタブをすべて閉じる
"space c l": "pane::CloseItemsToTheRight",
//// 直前に開いていたタブに戻る
"space b b": "pane::AlternateFile",
// Split
//// 縦分割
"space s v": "pane::SplitRight",
//// 横分割
"space s s": "pane::SplitDown",
//// 全ての分割をまとめる
"space s o": "pane::JoinAll"
}
},
{
"bindings": {
// ペイン間の移動
//// 左のペインに移動
"ctrl-w h": "workspace::ActivatePaneLeft",
//// 右のペインに移動
"ctrl-w l": "workspace::ActivatePaneRight",
//// 上のペインに移動
"ctrl-w k": "workspace::ActivatePaneUp",
//// 下のペインに移動
"ctrl-w j": "workspace::ActivatePaneDown",
// ターミナルに移動
"cmd-j": "terminal_panel::Toggle",
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment