{
  "id": "clifm",
  "name": "clifm",
  "homepage": "https://github.com/leo-arch/clifm",
  "description": "Command-line Interface File Manager",
  "executables": [
    "clifm"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/clifm/"
    ],
    "exclude": [
      "[configHome]/clifm/profiles/*/history.clifm",
      "[configHome]/clifm/profiles/*/cmdlogs.clifm",
      "[configHome]/clifm/profiles/*/.last",
      "[configHome]/clifm/profiles/*/log.clifm"
    ],
    "secret": [
      "[configHome]/clifm/profiles/*/nets.clifm"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Start clifm",
    "description": "Start clifm in one or more directories with common listing options. Many further switches exist in the manual.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "manual",
        "url": "https://manpages.debian.org/testing/clifm/clifm.1.en.html",
        "revision": "2026-10-27",
        "evidence": "clifm [OPTION]... [DIR]...\n-1, --oneline    List one file per line\n-a, --show-hidden[=VAL]   Show hidden files (filenames starting with '.').\n-A, --no-hidden\n-f, --group-dirs=VAL\n-l, --long-view\n-P, --profile=PROFILE\n-S, --stealth-mode\n-w, --workspace=NUM\n-z, --sort=METHOD\n--only-dirs\n--list-and-quit\n--no-restore-last-path\n--icons\n--no-suggestions\nPositional parameters: If you specify a directory as the first non-option parameter, clifm will start in that directory. Subsequent directory names are used to initialize subsequent workspaces. Up to 8 positional parameters are supported.\n"
      }
    ],
    "field": [
      {
        "id": "dirs",
        "label": "Start directories",
        "description": "First is workspace 1, next ones initialise further workspaces.",
        "type": "path",
        "position": 0,
        "multiple": true,
        "max": 8,
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "profile",
        "label": "Profile",
        "type": "string",
        "option": [
          "--profile",
          "-P"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "workspace",
        "label": "Starting workspace",
        "type": "integer",
        "option": [
          "--workspace",
          "-w"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "sort",
        "label": "Sort method",
        "description": "Sort method name or number, as listed in the clifm manual.",
        "type": "string",
        "option": [
          "--sort",
          "-z"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "show_hidden",
        "label": "Show hidden files",
        "type": "boolean",
        "option": [
          "--show-hidden",
          "-a"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_hidden",
        "label": "Hide hidden files",
        "type": "boolean",
        "option": [
          "--no-hidden",
          "-A"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "long_view",
        "label": "Long view",
        "type": "boolean",
        "option": [
          "--long-view",
          "-l"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "oneline",
        "label": "One file per line",
        "type": "boolean",
        "option": [
          "--oneline",
          "-1"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "only_dirs",
        "label": "Only directories",
        "type": "boolean",
        "option": [
          "--only-dirs"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "icons",
        "label": "Show icons",
        "type": "boolean",
        "option": [
          "--icons"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_restore",
        "label": "Do not restore last path",
        "type": "boolean",
        "option": [
          "--no-restore-last-path"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "stealth",
        "label": "Stealth mode",
        "description": "Leave no trace on the host system: no files read or written.",
        "type": "boolean",
        "option": [
          "--stealth-mode",
          "-S"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "list_and_quit",
        "label": "List and quit",
        "type": "boolean",
        "option": [
          "--list-and-quit"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "constraint": [
      {
        "kind": "at_most_one",
        "fields": [
          "show_hidden",
          "no_hidden"
        ],
        "message": "Choose either show or hide hidden files."
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open directory",
        "fields": [
          "dirs",
          "profile",
          "show_hidden",
          "long_view"
        ],
        "required": [
          "dirs"
        ]
      },
      {
        "id": "list",
        "label": "List once and quit",
        "set": {
          "list_and_quit": [
            true
          ]
        },
        "lock": [
          "list_and_quit"
        ],
        "fields": [
          "dirs",
          "list_and_quit",
          "long_view",
          "show_hidden",
          "oneline"
        ],
        "required": [
          "dirs"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "dirs",
          "show_hidden",
          "long_view",
          "sort",
          "profile"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "no_hidden",
          "oneline",
          "only_dirs",
          "icons",
          "workspace",
          "no_restore",
          "stealth",
          "list_and_quit"
        ]
      }
    ]
  }
}
