{
  "id": "latexindent",
  "name": "latexindent",
  "homepage": "https://latexindentpl.readthedocs.io/",
  "description": "Perl script to add indentation to LaTeX files.",
  "executables": [
    "latexindent",
    "latexindent.pl"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/latexindent/indentconfig.yaml",
      "[preferences]/latexindent/indentconfig.yaml",
      "%LOCALAPPDATA%/latexindent/indentconfig.yaml",
      "~/indentconfig.yaml",
      "~/.indentconfig.yaml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "latexindent",
    "description": "Indent one or more LaTeX files. Output goes to the terminal unless overwrite is set. YAML settings, logging and replacement options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "manual",
        "kind": "manual",
        "url": "https://mirrors.ctan.org/support/latexindent/documentation/latexindent.pdf",
        "revision": "V4.0.3",
        "evidence": "latexindent.pl myfile.tex\nlatexindent.pl myfile1.tex myfile2.tex\n-w, overwrite\nlatexindent.pl -w myfile.tex\nlatexindent.pl myfile.tex --overwrite\n-s, silent\nlatexindent.pl -s myfile.tex\n-d, onlydefault\nlatexindent.pl -d myfile.tex\nlatexindent.pl -m myfile.tex\nlatexindent.pl -k myfile.tex\n"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "LaTeX files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "manual"
        ]
      },
      {
        "id": "overwrite",
        "label": "Overwrite the files",
        "description": "Replace each input file with its indented version (a backup is made by default).",
        "type": "boolean",
        "option": [
          "--overwrite",
          "-w"
        ],
        "effect": "overwrite",
        "sources": [
          "manual"
        ]
      },
      {
        "id": "silent",
        "label": "Silent",
        "type": "boolean",
        "option": [
          "-s"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "modifylinebreaks",
        "label": "Modify line breaks",
        "type": "boolean",
        "option": [
          "-m"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "onlydefault",
        "label": "Only default settings",
        "type": "boolean",
        "option": [
          "-d"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "check",
        "label": "Check only",
        "description": "Check whether indentation would change the text.",
        "type": "boolean",
        "option": [
          "-k"
        ],
        "sources": [
          "manual"
        ]
      }
    ],
    "task": [
      {
        "id": "preview",
        "label": "Preview indentation",
        "fields": [
          "files"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "overwrite",
        "label": "Indent in place",
        "set": {
          "overwrite": [
            true
          ]
        },
        "fields": [
          "files",
          "overwrite"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "overwrite",
          "silent",
          "check"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "modifylinebreaks",
          "onlydefault"
        ]
      }
    ]
  }
}
