{
  "id": "w3m",
  "name": "w3m",
  "homepage": "https://w3m.sourceforge.net/",
  "description": "w3m is a pager/text-based WWW browser.",
  "executables": [
    "w3m"
  ],
  "dotfiles": {
    "paths": [
      "~/.w3m/config",
      "~/.w3m/keymap"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Browse or dump a page",
    "description": "Open URLs or files in w3m, or render them to standard output. Proxy, cookie, config-file and -o option overrides are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/bookworm/w3m/w3m.1.en.html",
        "revision": "Debian bookworm",
        "evidence": "-B  with no other target defined, use the bookmark page for startup\n-M  monochrome display\n-no-mouse  deactivate mouse support\n-num  display each line's number\n-N  distribute multiple command line arguments to tabs\n-cols num  with stdout as destination; HTML is rendered to lines of num characters\n-s  squeeze multiple blank lines into one\n-I charset  user defined character encoding of input data\n-O charset  user defined character encoding of output data\n-T type  explicit characterization of input data by MIME type\n-dump  dump rendered page into stdout\n-dump_source  dump the page's source code into stdout\n-dump_head  dump response of a HEAD request for a URL into stdout\n-4  IPv4 only\n-6  IPv6 only"
      }
    ],
    "field": [
      {
        "id": "dump",
        "label": "Dump rendered page to stdout",
        "type": "boolean",
        "option": [
          "-dump"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "dump_source",
        "label": "Dump page source to stdout",
        "type": "boolean",
        "option": [
          "-dump_source"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "dump_head",
        "label": "Dump HEAD response to stdout",
        "type": "boolean",
        "option": [
          "-dump_head"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "cols",
        "label": "Output width (columns)",
        "description": "Only with stdout as destination (dump).",
        "type": "integer",
        "option": [
          "-cols"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "squeeze",
        "label": "Squeeze blank lines",
        "type": "boolean",
        "option": [
          "-s"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "line_numbers",
        "label": "Show line numbers",
        "type": "boolean",
        "option": [
          "-num"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_mouse",
        "label": "Disable mouse",
        "type": "boolean",
        "option": [
          "-no-mouse"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "mono",
        "label": "Monochrome",
        "type": "boolean",
        "option": [
          "-M"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "tabs",
        "label": "Open multiple targets in tabs",
        "type": "boolean",
        "option": [
          "-N"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "input_charset",
        "label": "Input charset",
        "type": "string",
        "option": [
          "-I"
        ],
        "suggestions": [
          {
            "value": "UTF-8",
            "label": "UTF-8"
          },
          {
            "value": "EUC-JP",
            "label": "EUC-JP"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "output_charset",
        "label": "Output charset",
        "type": "string",
        "option": [
          "-O"
        ],
        "suggestions": [
          {
            "value": "UTF-8",
            "label": "UTF-8"
          },
          {
            "value": "EUC-JP",
            "label": "EUC-JP"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "mime_type",
        "label": "Input MIME type",
        "type": "string",
        "option": [
          "-T"
        ],
        "suggestions": [
          {
            "value": "text/html",
            "label": "HTML"
          },
          {
            "value": "text/plain",
            "label": "Plain text"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "target",
        "label": "URL or file",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "dump_page",
        "label": "Dump a page as text",
        "fields": [
          "target",
          "dump",
          "cols"
        ],
        "required": [
          "target",
          "dump"
        ],
        "set": {
          "dump": [
            true
          ]
        }
      },
      {
        "id": "browse",
        "label": "Browse",
        "fields": [
          "target"
        ],
        "required": [
          "target"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "target",
          "dump",
          "dump_source",
          "dump_head",
          "cols"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "squeeze",
          "line_numbers",
          "no_mouse",
          "mono",
          "tabs",
          "input_charset",
          "output_charset",
          "mime_type"
        ]
      }
    ]
  }
}
