{
  "id": "coteditor",
  "name": "CotEditor",
  "homepage": "https://coteditor.com",
  "description": "Lightweight Plain Text Editor for macOS.",
  "icon": "https://coteditor.com/img/appicon/128@2x.png",
  "executables": [
    "cot"
  ],
  "platforms": [
    "macos"
  ],
  "dotfiles": {
    "paths": [
      "~/Library/Containers/com.coteditor.CotEditor/Data/Library/Application Support/CotEditor/",
      "~/Library/Containers/com.coteditor.CotEditor/Data/Library/Preferences/com.coteditor.CotEditor.plist"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Open in CotEditor",
    "description": "Open files in CotEditor, optionally at a line and column, or create a blank document.",
    "quality": "ai-draft",
    "base": "fig:cot",
    "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/cot.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "line",
        "label": "Line",
        "description": "Jump to a specific line in the opened document.",
        "type": "integer",
        "option": [
          "--line",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "column",
        "label": "Column",
        "description": "Jump to a specific column in the opened document.",
        "type": "integer",
        "option": [
          "--column",
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "wait",
        "label": "Wait until closed",
        "type": "boolean",
        "option": [
          "--wait",
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "background",
        "label": "Keep in background",
        "description": "Do not bring the application to the foreground.",
        "type": "boolean",
        "option": [
          "--background",
          "-g"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "new",
        "label": "New blank document",
        "type": "boolean",
        "option": [
          "--new",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open files",
        "fields": [
          "files",
          "line",
          "column",
          "wait",
          "background"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "new",
        "label": "New document",
        "set": {
          "new": [
            true
          ]
        },
        "fields": [
          "new",
          "background"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "line",
          "column",
          "new"
        ]
      },
      {
        "id": "advanced",
        "label": "Behavior",
        "fields": [
          "wait",
          "background"
        ]
      }
    ]
  }
}
