{
  "id": "otty",
  "name": "Otty",
  "homepage": "https://otty.sh",
  "description": "A native, beautiful terminal app.",
  "icon": "https://otty.sh/otty-face.svg",
  "executables": [
    "otty"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/otty/config.toml",
      "~/.config/otty/themes/",
      "~/.config/otty/recipes/",
      "~/.config/otty/profiles/",
      "~/.config/otty/views/",
      "~/.config/otty/ssh_config",
      "~/.config/otty/fonts/"
    ],
    "exclude": [
      "~/.config/otty/fonts/font-*.png"
    ],
    "secret": [],
    "side_effect": false,
    "machine_lines": [
      {
        "file": "~/.config/otty/config.toml",
        "match": {
          "prefix": [
            "open-with-app ",
            "open-with-app=",
            "global-hotkey-open-window ",
            "global-hotkey-open-window=",
            "global-hotkey-toggle-visibility ",
            "global-hotkey-toggle-visibility=",
            "sidebar-width ",
            "sidebar-width=",
            "details-panel-width ",
            "details-panel-width=",
            "window-columns ",
            "window-columns=",
            "macos-option-as-alt ",
            "macos-option-as-alt=",
            "shell-integration-disabled-shells ",
            "shell-integration-disabled-shells=",
            "command ",
            "command="
          ]
        }
      },
      {
        "file": "~/.config/otty/profiles/login-shell.toml",
        "match": {
          "key_path": [
            "launch.shell",
            "launch.cwd",
            "launch.env"
          ]
        },
        "scope": "backup"
      },
      {
        "file": "~/.config/otty/ssh_config",
        "match": {
          "prefix": [
            "IdentityFile",
            "ProxyCommand",
            "ProxyJump",
            "Include"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Otty",
    "description": "Open files or URLs inside an Otty pane. Other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:otty",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/otty.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "view"
        ],
        "label": "View a file or URL",
        "description": "Open a file or http(s) URL in a pane, read-only by default.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/otty.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "File or URL",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": false
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "mode",
            "label": "Mode",
            "type": "enum",
            "option": [
              "--mode"
            ],
            "choices": [
              {
                "value": "view",
                "label": "View"
              },
              {
                "value": "edit",
                "label": "Edit"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "new_tab",
            "label": "New tab",
            "type": "boolean",
            "option": [
              "--new-tab"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "new_window",
            "label": "New window",
            "type": "boolean",
            "option": [
              "--new-window"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "left",
            "label": "Split left",
            "type": "boolean",
            "option": [
              "--left"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "right",
            "label": "Split right",
            "type": "boolean",
            "option": [
              "--right"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "top",
            "label": "Split top",
            "type": "boolean",
            "option": [
              "--top"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "bottom",
            "label": "Split bottom",
            "type": "boolean",
            "option": [
              "--bottom"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "view",
            "label": "View",
            "fields": [
              "target",
              "mode",
              "new_tab",
              "new_window"
            ],
            "required": [
              "target"
            ]
          },
          {
            "id": "split",
            "label": "Open in a split",
            "fields": [
              "target",
              "left",
              "right",
              "top",
              "bottom"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "mode",
              "new_tab",
              "new_window",
              "left",
              "right",
              "top",
              "bottom"
            ]
          }
        ]
      }
    ]
  }
}
