{
  "id": "sublime-text",
  "name": "Sublime Text",
  "homepage": "https://www.sublimetext.com",
  "description": "A sophisticated text editor for code, markup and prose.",
  "icon": "SimpleIcons:sublimetext",
  "executables": [
    "subl"
  ],
  "dotfiles": {
    "paths": [
      "~/Library/Application Support/Sublime Text/Packages/User/",
      "~/.config/sublime-text/Packages/User/",
      "%APPDATA%/Sublime Text/Packages/User/"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Open in Sublime Text",
    "description": "Open files or folders with subl. Window and focus behaviour are covered; safe mode and version flags are left out.",
    "quality": "ai-draft",
    "base": "fig:subl",
    "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/subl.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "targets",
        "label": "Files or folders",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input",
          "must_exist": false
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "new_window",
        "label": "New window",
        "type": "boolean",
        "option": [
          "--new-window",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "add",
        "label": "Add to current window",
        "type": "boolean",
        "option": [
          "--add",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "wait",
        "label": "Wait until closed",
        "type": "boolean",
        "option": [
          "--wait",
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "background",
        "label": "Do not activate",
        "type": "boolean",
        "option": [
          "--background",
          "-b"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "stay",
        "label": "Stay activated",
        "type": "boolean",
        "option": [
          "--stay",
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "project",
        "label": "Project file",
        "type": "path",
        "option": [
          "--project"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "launch_or_new",
        "label": "Launch or new window",
        "description": "Only open a new window if the application is already open.",
        "type": "boolean",
        "option": [
          "--launch-or-new-window"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "command",
        "label": "Command",
        "type": "string",
        "option": [
          "--command"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open in new window",
        "set": {
          "new_window": [
            true
          ]
        },
        "fields": [
          "targets",
          "new_window"
        ],
        "required": [
          "targets"
        ]
      },
      {
        "id": "add",
        "label": "Add folder to window",
        "set": {
          "add": [
            true
          ]
        },
        "lock": [
          "add"
        ],
        "fields": [
          "targets",
          "add"
        ],
        "required": [
          "targets"
        ]
      },
      {
        "id": "wait",
        "label": "Open and wait (editor for git)",
        "set": {
          "wait": [
            true
          ]
        },
        "lock": [
          "wait"
        ],
        "fields": [
          "targets",
          "wait"
        ],
        "required": [
          "targets"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "targets",
          "new_window",
          "add",
          "wait"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "background",
          "stay",
          "project",
          "launch_or_new",
          "command"
        ]
      }
    ]
  }
}
