@carlwr/zsh-lexicon
    Preparing search index...

    Interface OptionDoc

    Parsed zsh option metadata normalized from upstream docs.

    interface OptionDoc {
        category: "option";
        id: Documented<"option">;
        display: string;
        flags: readonly OptFlagAlias[];
        defaultIn: readonly ("csh" | "ksh" | "sh" | "zsh")[];
        subKind:
            | "Changing Directories"
            | "Completion"
            | "Expansion and Globbing"
            | "History"
            | "Initialisation"
            | "Input/Output"
            | "Job Control"
            | "Prompting"
            | "Scripts and Functions"
            | "Shell Emulation"
            | "Shell State"
            | "Zle"
            | "Option Aliases";
        desc: string;
        aliasOf?: { target: Documented<"option">; negated: boolean };
    }

    Hierarchy (View Summary)

    Index
    category: "option"

    The record's category — the Lexicon map it sits in; in the JSON, its file. One constant per record definition.

    id: Documented<"option">

    The record's lexicon key: a shell-safe slug — printable ASCII without whitespace, non-empty.

    display: string

    Surface form for display: printable ASCII with spaces, non-empty. The id unless the manual's form differs from it:

    • normalized in the id: an option's AUTO_CD
    • not shell-safe: a redirection's > word, a history modifier's h [ digits ]
    • with argument markers: a flag's j:string:
    flags: readonly OptFlagAlias[]
    defaultIn: readonly ("csh" | "ksh" | "sh" | "zsh")[]
    subKind:
        | "Changing Directories"
        | "Completion"
        | "Expansion and Globbing"
        | "History"
        | "Initialisation"
        | "Input/Output"
        | "Job Control"
        | "Prompting"
        | "Scripts and Functions"
        | "Shell Emulation"
        | "Shell State"
        | "Zle"
        | "Option Aliases"

    The manual section this option sits under; Option Aliases entries carry aliasOf.

    desc: string
    aliasOf?: { target: Documented<"option">; negated: boolean }

    Present on Option Aliases entries: the option this alias resolves to, and whether it inverts.