{
  "$schema": "https://www.sophonz.io/schemas/keymap-v1.json",
  "format": "sophonz-keymap",
  "version": 1,
  "name": "Key bar: any agent",
  "platform": "any",
  "bindings": [],
  "keyBar": {
    "groups": [
      {
        "id": "main",
        "title": "Main",
        "layout": "fit",
        "keys": [
          {
            "toggle": "mux"
          },
          {
            "label": "ctrl",
            "action": "mod.ctrl"
          },
          {
            "label": "alt",
            "action": "mod.alt"
          },
          {
            "label": "esc",
            "send": "esc"
          },
          {
            "label": "tab",
            "send": "tab"
          },
          {
            "label": "←",
            "send": "left",
            "repeat": true
          },
          {
            "label": "↓",
            "send": "down",
            "repeat": true
          },
          {
            "label": "↑",
            "send": "up",
            "repeat": true
          },
          {
            "label": "→",
            "send": "right",
            "repeat": true
          }
        ]
      },
      {
        "id": "agent",
        "title": "Agent",
        "keys": [
          {
            "label": "esc esc",
            "text": [
              "\u001b",
              "\u001b"
            ],
            "hint": {
              "en": "Most agents: rewind or clear the input",
              "ko": "대부분의 에이전트: 되감기 또는 입력 지우기"
            }
          },
          {
            "label": "⇧tab",
            "send": "shift+tab",
            "hint": {
              "en": "Most agents: switch mode",
              "ko": "대부분의 에이전트: 모드 전환"
            }
          },
          {
            "label": "⇧←",
            "send": "shift+left"
          },
          {
            "label": "⇧→",
            "send": "shift+right"
          },
          {
            "label": "1",
            "text": "1"
          },
          {
            "label": "2",
            "text": "2"
          },
          {
            "label": "3",
            "text": "3"
          },
          {
            "label": "⌥⏎",
            "send": "opt+enter",
            "hint": {
              "en": "Most agents and REPLs: new line without sending",
              "ko": "대부분의 에이전트와 REPL: 보내지 않고 줄바꿈"
            }
          }
        ]
      },
      {
        "id": "tmux",
        "title": "tmux",
        "when": "mux",
        "toggle": "mux",
        "keys": [
          {
            "label": "list",
            "action": "window.list"
          },
          {
            "label": "sess",
            "action": "session.list"
          },
          {
            "label": "◀ win",
            "action": "window.prev"
          },
          {
            "label": "win ▶",
            "action": "window.next"
          },
          {
            "label": "+win",
            "action": "window.new"
          },
          {
            "label": "go#",
            "action": "window.goto.ask"
          },
          {
            "label": "pane",
            "action": "pane.next"
          },
          {
            "label": "zoom",
            "action": "pane.zoom"
          },
          {
            "label": "split│",
            "action": "pane.split.right"
          },
          {
            "label": "split─",
            "action": "pane.split.down"
          },
          {
            "label": "detach",
            "action": "session.detach"
          },
          {
            "label": "1",
            "action": "window.goto.1"
          },
          {
            "label": "2",
            "action": "window.goto.2"
          },
          {
            "label": "3",
            "action": "window.goto.3"
          },
          {
            "label": "4",
            "action": "window.goto.4"
          },
          {
            "label": "5",
            "action": "window.goto.5"
          }
        ]
      },
      {
        "id": "extras",
        "title": "More",
        "keys": [
          {
            "action": "keyboard.onscreen"
          },
          {
            "action": "compose.mic"
          },
          {
            "action": "compose.open"
          },
          {
            "label": "⏎",
            "send": "enter",
            "wide": true
          },
          {
            "label": "paste",
            "action": "edit.paste",
            "wide": true
          },
          {
            "label": "A−",
            "action": "font.smaller",
            "repeat": true
          },
          {
            "label": "A+",
            "action": "font.bigger",
            "repeat": true
          },
          {
            "label": "⇤tab",
            "text": "\u001b[Z"
          },
          {
            "label": "^C",
            "text": "\u0003"
          },
          {
            "label": "^D",
            "text": "\u0004"
          },
          {
            "label": "^Z",
            "text": "\u001a"
          },
          {
            "label": "^R",
            "text": "\u0012"
          },
          {
            "label": "^L",
            "text": "\f"
          },
          {
            "char": "|"
          },
          {
            "char": "~"
          },
          {
            "char": "/"
          },
          {
            "char": "-"
          },
          {
            "char": "_"
          },
          {
            "char": "$"
          },
          {
            "char": "*"
          },
          {
            "char": "{"
          },
          {
            "char": "}"
          },
          {
            "char": "["
          },
          {
            "char": "]"
          },
          {
            "label": "hom",
            "send": "home"
          },
          {
            "label": "end",
            "send": "end"
          },
          {
            "label": "pgup",
            "send": "pageup"
          },
          {
            "label": "pgdn",
            "send": "pagedown"
          },
          {
            "label": "del",
            "send": "delete",
            "repeat": true
          },
          {
            "label": "F1",
            "send": "f1"
          },
          {
            "label": "F2",
            "send": "f2"
          },
          {
            "label": "F3",
            "send": "f3"
          },
          {
            "label": "F4",
            "send": "f4"
          }
        ]
      }
    ]
  }
}
