#compdef snip

autoload -U is-at-least

_snip() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_snip_commands" \
"*::: :->snip" \
&& ret=0
    case $state in
    (snip)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-command-$line[1]:"
        case $line[1] in
            (tui)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-config-command-$line[1]:"
        case $line[1] in
            (path)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'--library=[]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':key:(default-library output color preview-render preview-pager editor editor-cwd pager default-language default-folder default-tags tui-theme tui-light-theme tui-dark-theme tui-sort tui-density tui-line-numbers tui-simplified-ui git-auto-commit-interval git-auto-push git-auto-pull git-backup-on-quit)' \
':value:_default' \
&& ret=0
;;
(unset)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':key:(default-library output color preview-render preview-pager editor editor-cwd pager default-language default-folder default-tags tui-theme tui-light-theme tui-dark-theme tui-sort tui-density tui-line-numbers tui-simplified-ui git-auto-commit-interval git-auto-push git-auto-pull git-backup-on-quit)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__config__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-config-help-command-$line[1]:"
        case $line[1] in
            (path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(unset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(init)
_arguments "${_arguments_options[@]}" : \
'--name=[]:NAME:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--git[Initialize a dedicated Git repository after creating the library]' \
'-y[Skip the interactive setup and use defaults]' \
'--yes[Skip the interactive setup and use defaults]' \
'-h[Print help]' \
'--help[Print help]' \
'::path:_files' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--folder=[Restrict to a folder and its subfolders. Pass "" for Uncategorized]:FOLDER:_default' \
'--tag=[]:TAG:_default' \
'--sort=[Order of the listing. Pinned snippets always come first]:SORT:((modified\:"Most recently modified first. Legacy \`manual\` config values migrate here"
title\:"Case-insensitive title, ascending"
created\:"Most recently created first"))' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--no-subfolders[Restrict --folder to that folder alone, excluding its subfolders]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'--folder=[Restrict to a folder and its subfolders. Pass "" for Uncategorized]:FOLDER:_default' \
'--tag=[]:TAG:_default' \
'*--field=[Only search these parts of a snippet. Repeatable; defaults to all]:FIELDS:(title tag readme content note)' \
'-C+[Lines of surrounding context to include with each match]:N:_default' \
'--context=[Lines of surrounding context to include with each match]:N:_default' \
'-m+[Keep only the top N results after scoring]:N:_default' \
'--limit=[Keep only the top N results after scoring]:N:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--regex[Treat QUERY as a regular expression. Case-insensitive; use (?-i) to opt out]' \
'--no-subfolders[Restrict --folder to that folder alone, excluding its subfolders]' \
'-h[Print help]' \
'--help[Print help]' \
':query:_default' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(cat)
_arguments "${_arguments_options[@]}" : \
'--fragment=[1-based index or fragment UUID prefix]:FRAGMENT:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
'--render=[]:RENDER:(ansi plain html)' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'(--no-pager)--pager[Send output through the configured pager or \$PAGER]' \
'(--pager)--no-pager[Disable a pager enabled in the config file]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
'(--metadata --readme)--fragment=[]:FRAGMENT:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'(--readme --fragment)--metadata[]' \
'(--metadata --fragment)--readme[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(open)
_arguments "${_arguments_options[@]}" : \
'(--metadata --readme)--fragment=[]:FRAGMENT:_default' \
'--app=[Command to launch. Defaults to the \`vscode_cmd\` config key, then \`code\`]:APP:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'(--readme --fragment)--metadata[]' \
'(--metadata --fragment)--readme[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
'--title=[]:TITLE:_default' \
'--folder=[Folder to file the snippet under; created when it does not exist. Pass "" for Uncategorized]:FOLDER:_default' \
'*--tag=[]:TAGS:_default' \
'--language=[]:LANGUAGE:_default' \
'--fragment-title=[]:FRAGMENT_TITLE:_default' \
'(--content-file)--content=[Initial fragment content, given inline]:CONTENT:_default' \
'--content-file=[Read initial fragment content from a UTF-8 file; use - for stdin]:CONTENT_FILE:_default' \
'(--note-file)--note=[Fragment note (Markdown), given inline. Prose about this one fragment; use --readme for prose about the whole snippet]:NOTE:_default' \
'--note-file=[]:NOTE_FILE:_default' \
'(--readme-file)--readme=[Snippet README (Markdown), given inline. Prose about the whole snippet; use --note for prose about one fragment]:README:_default' \
'--readme-file=[]:README_FILE:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--pin[]' \
'--lock[]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
'--title=[]:TITLE:_default' \
'--folder=[]:FOLDER:_default' \
'(--clear-tags)*--tag=[]:TAGS:_default' \
'--fragment=[Target fragment for structured changes or external editing]:FRAGMENT:_default' \
'--fragment-title=[]:FRAGMENT_TITLE:_default' \
'--language=[]:LANGUAGE:_default' \
'(--content-file)--content=[Replacement fragment content, given inline]:CONTENT:_default' \
'--content-file=[]:CONTENT_FILE:_default' \
'(--note-file --clear-note)--note=[Replacement fragment note (Markdown), given inline]:NOTE:_default' \
'(--clear-note)--note-file=[]:NOTE_FILE:_default' \
'(--readme-file --clear-readme)--readme=[Replacement snippet README (Markdown), given inline]:README:_default' \
'(--clear-readme)--readme-file=[]:README_FILE:_default' \
'--if-hash=[]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'(--tag)--clear-tags[]' \
'(--unpin)--pin[]' \
'(--pin)--unpin[]' \
'(--unlock)--lock[]' \
'(--lock)--unlock[]' \
'(--note-file --note)--clear-note[]' \
'(--readme-file --readme)--clear-readme[]' \
'(--readme-editor)--metadata-editor[Edit snippet.toml in the external editor when no structured change is given]' \
'(--metadata-editor)--readme-editor[Edit README.md in the external editor when no structured change is given]' \
'--note-editor[Edit the selected fragment note instead of its content]' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(fragment)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__fragment_commands" \
"*::: :->fragment" \
&& ret=0

    case $state in
    (fragment)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-fragment-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--title=[]:TITLE:_default' \
'--language=[]:LANGUAGE:_default' \
'(--content-file)--content=[Fragment content, given inline]:CONTENT:_default' \
'--content-file=[]:CONTENT_FILE:_default' \
'(--note-file)--note=[Fragment note (Markdown), given inline]:NOTE:_default' \
'--note-file=[]:NOTE_FILE:_default' \
'--if-hash=[]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
'--title=[]:TITLE:_default' \
'--language=[]:LANGUAGE:_default' \
'(--content-file)--content=[Replacement fragment content, given inline]:CONTENT:_default' \
'--content-file=[]:CONTENT_FILE:_default' \
'(--note-file --clear-note)--note=[Replacement fragment note (Markdown), given inline]:NOTE:_default' \
'(--clear-note)--note-file=[]:NOTE_FILE:_default' \
'--if-hash=[]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'(--note-file --note)--clear-note[]' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
':fragment:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--if-hash=[]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
':fragment:_default' \
&& ret=0
;;
(reorder)
_arguments "${_arguments_options[@]}" : \
'--position=[]:POSITION:_default' \
'--if-hash=[]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
':fragment:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__fragment__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-fragment-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(reorder)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(folder)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__folder_commands" \
"*::: :->folder" \
&& ret=0

    case $state in
    (folder)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-folder-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':folder:_default' \
&& ret=0
;;
(rename)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':folder:_default' \
':new_name:_default' \
&& ret=0
;;
(move)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':folder:_default' \
':target:_default' \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':folder:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__folder__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-folder-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rename)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(move)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(tag)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__tag_commands" \
"*::: :->tag" \
&& ret=0

    case $state in
    (tag)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-tag-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(rename)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':tag:_default' \
':new_name:_default' \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':tag:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__tag__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-tag-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rename)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(theme)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__theme_commands" \
"*::: :->theme" \
&& ret=0

    case $state in
    (theme)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-theme-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--appearance=[Restrict to one appearance]:APPEARANCE:(light dark)' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':name:_default' \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':name:_default' \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
'--as=[Name to save it under. Defaults to "<name>-custom"]:AS:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':name:_default' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'--as=[Name to save it under. Defaults to the file stem]:AS:_default' \
'--syntax=[Use an embedded syntax theme instead of deriving one from the palette]:SYNTAX:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[Overwrite an existing theme file]' \
'--dry-run[Convert and print the theme without writing anything]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- Path to a base16 or base24 scheme file, or "-" to read stdin:_files' \
&& ret=0
;;
(use)
_arguments "${_arguments_options[@]}" : \
'--appearance=[Write to this slot instead of the theme'\''s own appearance]:APPEARANCE:(light dark)' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':name:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__theme__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-theme-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(use)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(keys)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__keys_commands" \
"*::: :->keys" \
&& ret=0

    case $state in
    (keys)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-keys-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--mode=[Restrict output to one mode]:MODE:(global sidebar list preview fragment fragment-grab trash help git gist)' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':action:_default' \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
'--mode=[Export only one mode]:MODE:(global sidebar list preview fragment fragment-grab trash help git gist)' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[Overwrite an existing keys.toml]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__keys__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-keys-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(delete)
_arguments "${_arguments_options[@]}" : \
'--if-hash=[]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(trash)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(restore)
_arguments "${_arguments_options[@]}" : \
'--folder=[]:FOLDER:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(purge)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--yes[Confirm permanent deletion without an interactive prompt]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--repair[]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(organize)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--dry-run[]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__import_commands" \
"*::: :->import" \
&& ret=0

    case $state in
    (import)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-import-command-$line[1]:"
        case $line[1] in
            (snippetslab)
_arguments "${_arguments_options[@]}" : \
'--into=[]:INTO:_files' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--dry-run[]' \
'-h[Print help]' \
'--help[Print help]' \
':source:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__import__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-import-help-command-$line[1]:"
        case $line[1] in
            (snippetslab)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(git)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__git_commands" \
"*::: :->git" \
&& ret=0

    case $state in
    (git)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-git-command-$line[1]:"
        case $line[1] in
            (clone)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--gh[Clone with \`gh repo clone\` instead of \`git clone\`, so GitHub credentials come from the GitHub CLI]' \
'--set-default[Record the clone as default_library in the snip config]' \
'-h[Print help]' \
'--help[Print help]' \
':remote -- Remote to clone. Passed to git unchanged; with --gh it is passed to gh, which also accepts an OWNER/REPO shorthand:_default' \
'::path -- Destination directory. Defaults to ~/<repo name>.sniplib:_files' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(commit)
_arguments "${_arguments_options[@]}" : \
'-m+[Override the generated backup message]:MESSAGE:_default' \
'--message=[Override the generated backup message]:MESSAGE:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(backup)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(push)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(pull)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--ff-only[Refuse to merge when the branch has diverged, instead of creating a merge commit]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__git__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-git-help-command-$line[1]:"
        case $line[1] in
            (clone)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(commit)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(backup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(push)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pull)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(gist)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__gist_commands" \
"*::: :->gist" \
&& ret=0

    case $state in
    (gist)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-gist-command-$line[1]:"
        case $line[1] in
            (push)
_arguments "${_arguments_options[@]}" : \
'--desc=[Gist description. Defaults to the snippet title, then to the description recorded by the previous push]:DESC:_default' \
'--if-hash=[Refuse the push unless the snippet still has this fingerprint]:IF_HASH:_default' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--public[List the gist publicly. Only applies when creating; gist visibility cannot be changed afterwards]' \
'--new[Publish a new gist and replace the recorded one, leaving the old gist on GitHub]' \
'--include-notes[Publish fragment notes as separate Markdown files]' \
'--no-readme[Leave the snippet README out of the gist]' \
'-w[Open the gist in a browser afterwards]' \
'--web[Open the gist in a browser afterwards]' \
'--force[Push even when the gist already matches the snippet]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(url)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--copy[Copy the URL to the clipboard as well as printing it]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--all[Report every snippet in the library that has a gist]' \
'--remote[Also fetch the gist from GitHub and report whether it still exists]' \
'-h[Print help]' \
'--help[Print help]' \
'::selector:_default' \
&& ret=0
;;
(attach)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
':gist -- Gist ID or URL:_default' \
&& ret=0
;;
(detach)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--yes[Delete without prompting]' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(open)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':selector:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__gist__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-gist-help-command-$line[1]:"
        case $line[1] in
            (push)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(url)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(attach)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(detach)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(open)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(man)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
":: :_snip__subcmd__man_commands" \
"*::: :->man" \
&& ret=0

    case $state in
    (man)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-man-command-$line[1]:"
        case $line[1] in
            (path)
_arguments "${_arguments_options[@]}" : \
'--prefix=[Resolve the directory below PREFIX/share instead of the user data directory]:PREFIX:_files' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'--prefix=[Install below PREFIX/share instead of the user data directory]:PREFIX:_files' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'--force[Replace pages not recorded in snip'\''s installation manifest]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'--prefix=[Uninstall below PREFIX/share instead of the user data directory]:PREFIX:_files' \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
'::page -- Page stem, such as snip or snip-create:_default' \
&& ret=0
;;
(generate)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':directory -- Destination directory:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__man__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-man-help-command-$line[1]:"
        case $line[1] in
            (path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(completion)
_arguments "${_arguments_options[@]}" : \
'--library=[Library root. Falls back to SNIP_LIBRARY, ancestor discovery, then config]:LIBRARY:_files' \
'--output=[Structured output mode for commands that return records]:OUTPUT:(human json jsonl)' \
'--color=[Color policy for terminal preview]:COLOR:(auto always never)' \
'--simplified-ui=[Use square TUI bars without Powerline font glyphs for this run]::BOOL:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
':shell:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-command-$line[1]:"
        case $line[1] in
            (tui)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-config-command-$line[1]:"
        case $line[1] in
            (path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(unset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cat)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(open)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fragment)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__fragment_commands" \
"*::: :->fragment" \
&& ret=0

    case $state in
    (fragment)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-fragment-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(reorder)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(folder)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__folder_commands" \
"*::: :->folder" \
&& ret=0

    case $state in
    (folder)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-folder-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rename)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(move)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(tag)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__tag_commands" \
"*::: :->tag" \
&& ret=0

    case $state in
    (tag)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-tag-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rename)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(theme)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__theme_commands" \
"*::: :->theme" \
&& ret=0

    case $state in
    (theme)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-theme-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(use)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(keys)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__keys_commands" \
"*::: :->keys" \
&& ret=0

    case $state in
    (keys)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-keys-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(trash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restore)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(purge)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(organize)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__import_commands" \
"*::: :->import" \
&& ret=0

    case $state in
    (import)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-import-command-$line[1]:"
        case $line[1] in
            (snippetslab)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(git)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__git_commands" \
"*::: :->git" \
&& ret=0

    case $state in
    (git)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-git-command-$line[1]:"
        case $line[1] in
            (clone)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(commit)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(backup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(push)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pull)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(gist)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__gist_commands" \
"*::: :->gist" \
&& ret=0

    case $state in
    (gist)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-gist-command-$line[1]:"
        case $line[1] in
            (push)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(url)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(attach)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(detach)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(open)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(man)
_arguments "${_arguments_options[@]}" : \
":: :_snip__subcmd__help__subcmd__man_commands" \
"*::: :->man" \
&& ret=0

    case $state in
    (man)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:snip-help-man-command-$line[1]:"
        case $line[1] in
            (path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(completion)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_snip_commands] )) ||
_snip_commands() {
    local commands; commands=(
'tui:Open the interactive terminal browser' \
'config:Inspect and modify ~/.config/snip/config.toml' \
'init:Create a new filesystem snippet library' \
'info:Show library metadata and counts' \
'list:List snippets without their full content' \
'search:Search titles, tags, notes, and fragment content' \
'show:Show a complete snippet' \
'cat:Print one fragment with no decorations' \
'preview:Render a snippet for terminal or HTML preview' \
'path:Print a managed filesystem path' \
'open:Open a managed path in an external application' \
'create:Create a snippet' \
'edit:Modify a snippet or launch an external editor' \
'fragment:Manage snippet fragments' \
'folder:Manage physical folder paths' \
'tag:Rename or remove tags across snippets' \
'theme:List, inspect, and switch TUI color themes' \
'keys:Inspect, validate, and export TUI key bindings' \
'delete:Move a snippet to the library trash' \
'trash:List deleted snippets' \
'restore:Restore a deleted snippet' \
'purge:Permanently remove a trash entry' \
'doctor:Validate the library and optionally recover interrupted transactions' \
'organize:Normalize snippet package directory names' \
'import:Import another snippet format' \
'git:Run Git operations scoped to this library' \
'gist:Publish snippets to GitHub Gists through the gh CLI' \
'man:Install, inspect, or export the embedded manual pages' \
'completion:Generate shell completion code' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip commands' commands "$@"
}
(( $+functions[_snip__subcmd__cat_commands] )) ||
_snip__subcmd__cat_commands() {
    local commands; commands=()
    _describe -t commands 'snip cat commands' commands "$@"
}
(( $+functions[_snip__subcmd__completion_commands] )) ||
_snip__subcmd__completion_commands() {
    local commands; commands=()
    _describe -t commands 'snip completion commands' commands "$@"
}
(( $+functions[_snip__subcmd__config_commands] )) ||
_snip__subcmd__config_commands() {
    local commands; commands=(
'path:Print the resolved config file path' \
'show:Print the current config (defaults to an empty schema when absent)' \
'init:Create a config file, optionally binding a default library' \
'set:Set one supported config key' \
'unset:Remove one supported config key and restore its built-in default' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip config commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help_commands] )) ||
_snip__subcmd__config__subcmd__help_commands() {
    local commands; commands=(
'path:Print the resolved config file path' \
'show:Print the current config (defaults to an empty schema when absent)' \
'init:Create a config file, optionally binding a default library' \
'set:Set one supported config key' \
'unset:Remove one supported config key and restore its built-in default' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip config help commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__config__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip config help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help__subcmd__init_commands] )) ||
_snip__subcmd__config__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip config help init commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help__subcmd__path_commands] )) ||
_snip__subcmd__config__subcmd__help__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip config help path commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help__subcmd__set_commands] )) ||
_snip__subcmd__config__subcmd__help__subcmd__set_commands() {
    local commands; commands=()
    _describe -t commands 'snip config help set commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help__subcmd__show_commands] )) ||
_snip__subcmd__config__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip config help show commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__help__subcmd__unset_commands] )) ||
_snip__subcmd__config__subcmd__help__subcmd__unset_commands() {
    local commands; commands=()
    _describe -t commands 'snip config help unset commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__init_commands] )) ||
_snip__subcmd__config__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip config init commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__path_commands] )) ||
_snip__subcmd__config__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip config path commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__set_commands] )) ||
_snip__subcmd__config__subcmd__set_commands() {
    local commands; commands=()
    _describe -t commands 'snip config set commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__show_commands] )) ||
_snip__subcmd__config__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip config show commands' commands "$@"
}
(( $+functions[_snip__subcmd__config__subcmd__unset_commands] )) ||
_snip__subcmd__config__subcmd__unset_commands() {
    local commands; commands=()
    _describe -t commands 'snip config unset commands' commands "$@"
}
(( $+functions[_snip__subcmd__create_commands] )) ||
_snip__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'snip create commands' commands "$@"
}
(( $+functions[_snip__subcmd__delete_commands] )) ||
_snip__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__doctor_commands] )) ||
_snip__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'snip doctor commands' commands "$@"
}
(( $+functions[_snip__subcmd__edit_commands] )) ||
_snip__subcmd__edit_commands() {
    local commands; commands=()
    _describe -t commands 'snip edit commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder_commands] )) ||
_snip__subcmd__folder_commands() {
    local commands; commands=(
'list:' \
'create:' \
'rename:' \
'move:' \
'delete:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip folder commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__create_commands] )) ||
_snip__subcmd__folder__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder create commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__delete_commands] )) ||
_snip__subcmd__folder__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help_commands] )) ||
_snip__subcmd__folder__subcmd__help_commands() {
    local commands; commands=(
'list:' \
'create:' \
'rename:' \
'move:' \
'delete:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip folder help commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help__subcmd__create_commands] )) ||
_snip__subcmd__folder__subcmd__help__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder help create commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help__subcmd__delete_commands] )) ||
_snip__subcmd__folder__subcmd__help__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder help delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__folder__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help__subcmd__list_commands] )) ||
_snip__subcmd__folder__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder help list commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help__subcmd__move_commands] )) ||
_snip__subcmd__folder__subcmd__help__subcmd__move_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder help move commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__help__subcmd__rename_commands] )) ||
_snip__subcmd__folder__subcmd__help__subcmd__rename_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder help rename commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__list_commands] )) ||
_snip__subcmd__folder__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder list commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__move_commands] )) ||
_snip__subcmd__folder__subcmd__move_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder move commands' commands "$@"
}
(( $+functions[_snip__subcmd__folder__subcmd__rename_commands] )) ||
_snip__subcmd__folder__subcmd__rename_commands() {
    local commands; commands=()
    _describe -t commands 'snip folder rename commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment_commands] )) ||
_snip__subcmd__fragment_commands() {
    local commands; commands=(
'add:' \
'edit:' \
'remove:' \
'reorder:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip fragment commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__add_commands] )) ||
_snip__subcmd__fragment__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment add commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__edit_commands] )) ||
_snip__subcmd__fragment__subcmd__edit_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment edit commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__help_commands] )) ||
_snip__subcmd__fragment__subcmd__help_commands() {
    local commands; commands=(
'add:' \
'edit:' \
'remove:' \
'reorder:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip fragment help commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__help__subcmd__add_commands] )) ||
_snip__subcmd__fragment__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment help add commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__help__subcmd__edit_commands] )) ||
_snip__subcmd__fragment__subcmd__help__subcmd__edit_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment help edit commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__fragment__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__help__subcmd__remove_commands] )) ||
_snip__subcmd__fragment__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment help remove commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__help__subcmd__reorder_commands] )) ||
_snip__subcmd__fragment__subcmd__help__subcmd__reorder_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment help reorder commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__remove_commands] )) ||
_snip__subcmd__fragment__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment remove commands' commands "$@"
}
(( $+functions[_snip__subcmd__fragment__subcmd__reorder_commands] )) ||
_snip__subcmd__fragment__subcmd__reorder_commands() {
    local commands; commands=()
    _describe -t commands 'snip fragment reorder commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist_commands] )) ||
_snip__subcmd__gist_commands() {
    local commands; commands=(
'push:Create the snippet'\''s gist, or update it when one already exists' \
'url:Print the URL of the snippet'\''s gist' \
'status:Report whether a snippet'\''s gist is current' \
'attach:Record an existing gist as this snippet'\''s gist' \
'detach:Forget a snippet'\''s gist without deleting it on GitHub' \
'delete:Delete the snippet'\''s gist on GitHub and forget it' \
'open:Open the snippet'\''s gist in a browser' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip gist commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__attach_commands] )) ||
_snip__subcmd__gist__subcmd__attach_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist attach commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__delete_commands] )) ||
_snip__subcmd__gist__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__detach_commands] )) ||
_snip__subcmd__gist__subcmd__detach_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist detach commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help_commands] )) ||
_snip__subcmd__gist__subcmd__help_commands() {
    local commands; commands=(
'push:Create the snippet'\''s gist, or update it when one already exists' \
'url:Print the URL of the snippet'\''s gist' \
'status:Report whether a snippet'\''s gist is current' \
'attach:Record an existing gist as this snippet'\''s gist' \
'detach:Forget a snippet'\''s gist without deleting it on GitHub' \
'delete:Delete the snippet'\''s gist on GitHub and forget it' \
'open:Open the snippet'\''s gist in a browser' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip gist help commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__attach_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__attach_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help attach commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__delete_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__detach_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__detach_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help detach commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__open_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__open_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help open commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__push_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__push_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help push commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__status_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help status commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__help__subcmd__url_commands] )) ||
_snip__subcmd__gist__subcmd__help__subcmd__url_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist help url commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__open_commands] )) ||
_snip__subcmd__gist__subcmd__open_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist open commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__push_commands] )) ||
_snip__subcmd__gist__subcmd__push_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist push commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__status_commands] )) ||
_snip__subcmd__gist__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist status commands' commands "$@"
}
(( $+functions[_snip__subcmd__gist__subcmd__url_commands] )) ||
_snip__subcmd__gist__subcmd__url_commands() {
    local commands; commands=()
    _describe -t commands 'snip gist url commands' commands "$@"
}
(( $+functions[_snip__subcmd__git_commands] )) ||
_snip__subcmd__git_commands() {
    local commands; commands=(
'clone:Clone a snip library from a Git remote' \
'status:Show read-only backup status for this library' \
'init:Make this library a Git repository when it is not one already' \
'commit:Commit all library changes without pushing' \
'backup:Commit all library changes and push when an upstream is configured' \
'push:Push commits to the configured upstream without committing' \
'fetch:Fetch and prune remote-tracking refs without touching the worktree' \
'pull:Fetch from the upstream and merge it into the current branch' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip git commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__backup_commands] )) ||
_snip__subcmd__git__subcmd__backup_commands() {
    local commands; commands=()
    _describe -t commands 'snip git backup commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__clone_commands] )) ||
_snip__subcmd__git__subcmd__clone_commands() {
    local commands; commands=()
    _describe -t commands 'snip git clone commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__commit_commands] )) ||
_snip__subcmd__git__subcmd__commit_commands() {
    local commands; commands=()
    _describe -t commands 'snip git commit commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__fetch_commands] )) ||
_snip__subcmd__git__subcmd__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'snip git fetch commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help_commands] )) ||
_snip__subcmd__git__subcmd__help_commands() {
    local commands; commands=(
'clone:Clone a snip library from a Git remote' \
'status:Show read-only backup status for this library' \
'init:Make this library a Git repository when it is not one already' \
'commit:Commit all library changes without pushing' \
'backup:Commit all library changes and push when an upstream is configured' \
'push:Push commits to the configured upstream without committing' \
'fetch:Fetch and prune remote-tracking refs without touching the worktree' \
'pull:Fetch from the upstream and merge it into the current branch' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip git help commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__backup_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__backup_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help backup commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__clone_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__clone_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help clone commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__commit_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__commit_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help commit commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__fetch_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help fetch commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__init_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help init commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__pull_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__pull_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help pull commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__push_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__push_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help push commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__help__subcmd__status_commands] )) ||
_snip__subcmd__git__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'snip git help status commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__init_commands] )) ||
_snip__subcmd__git__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip git init commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__pull_commands] )) ||
_snip__subcmd__git__subcmd__pull_commands() {
    local commands; commands=()
    _describe -t commands 'snip git pull commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__push_commands] )) ||
_snip__subcmd__git__subcmd__push_commands() {
    local commands; commands=()
    _describe -t commands 'snip git push commands' commands "$@"
}
(( $+functions[_snip__subcmd__git__subcmd__status_commands] )) ||
_snip__subcmd__git__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'snip git status commands' commands "$@"
}
(( $+functions[_snip__subcmd__help_commands] )) ||
_snip__subcmd__help_commands() {
    local commands; commands=(
'tui:Open the interactive terminal browser' \
'config:Inspect and modify ~/.config/snip/config.toml' \
'init:Create a new filesystem snippet library' \
'info:Show library metadata and counts' \
'list:List snippets without their full content' \
'search:Search titles, tags, notes, and fragment content' \
'show:Show a complete snippet' \
'cat:Print one fragment with no decorations' \
'preview:Render a snippet for terminal or HTML preview' \
'path:Print a managed filesystem path' \
'open:Open a managed path in an external application' \
'create:Create a snippet' \
'edit:Modify a snippet or launch an external editor' \
'fragment:Manage snippet fragments' \
'folder:Manage physical folder paths' \
'tag:Rename or remove tags across snippets' \
'theme:List, inspect, and switch TUI color themes' \
'keys:Inspect, validate, and export TUI key bindings' \
'delete:Move a snippet to the library trash' \
'trash:List deleted snippets' \
'restore:Restore a deleted snippet' \
'purge:Permanently remove a trash entry' \
'doctor:Validate the library and optionally recover interrupted transactions' \
'organize:Normalize snippet package directory names' \
'import:Import another snippet format' \
'git:Run Git operations scoped to this library' \
'gist:Publish snippets to GitHub Gists through the gh CLI' \
'man:Install, inspect, or export the embedded manual pages' \
'completion:Generate shell completion code' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip help commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__cat_commands] )) ||
_snip__subcmd__help__subcmd__cat_commands() {
    local commands; commands=()
    _describe -t commands 'snip help cat commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__completion_commands] )) ||
_snip__subcmd__help__subcmd__completion_commands() {
    local commands; commands=()
    _describe -t commands 'snip help completion commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__config_commands] )) ||
_snip__subcmd__help__subcmd__config_commands() {
    local commands; commands=(
'path:Print the resolved config file path' \
'show:Print the current config (defaults to an empty schema when absent)' \
'init:Create a config file, optionally binding a default library' \
'set:Set one supported config key' \
'unset:Remove one supported config key and restore its built-in default' \
    )
    _describe -t commands 'snip help config commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__config__subcmd__init_commands] )) ||
_snip__subcmd__help__subcmd__config__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip help config init commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__config__subcmd__path_commands] )) ||
_snip__subcmd__help__subcmd__config__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip help config path commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__config__subcmd__set_commands] )) ||
_snip__subcmd__help__subcmd__config__subcmd__set_commands() {
    local commands; commands=()
    _describe -t commands 'snip help config set commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__config__subcmd__show_commands] )) ||
_snip__subcmd__help__subcmd__config__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip help config show commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__config__subcmd__unset_commands] )) ||
_snip__subcmd__help__subcmd__config__subcmd__unset_commands() {
    local commands; commands=()
    _describe -t commands 'snip help config unset commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__create_commands] )) ||
_snip__subcmd__help__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'snip help create commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__delete_commands] )) ||
_snip__subcmd__help__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip help delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__doctor_commands] )) ||
_snip__subcmd__help__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'snip help doctor commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__edit_commands] )) ||
_snip__subcmd__help__subcmd__edit_commands() {
    local commands; commands=()
    _describe -t commands 'snip help edit commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__folder_commands] )) ||
_snip__subcmd__help__subcmd__folder_commands() {
    local commands; commands=(
'list:' \
'create:' \
'rename:' \
'move:' \
'delete:' \
    )
    _describe -t commands 'snip help folder commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__folder__subcmd__create_commands] )) ||
_snip__subcmd__help__subcmd__folder__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'snip help folder create commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__folder__subcmd__delete_commands] )) ||
_snip__subcmd__help__subcmd__folder__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip help folder delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__folder__subcmd__list_commands] )) ||
_snip__subcmd__help__subcmd__folder__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip help folder list commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__folder__subcmd__move_commands] )) ||
_snip__subcmd__help__subcmd__folder__subcmd__move_commands() {
    local commands; commands=()
    _describe -t commands 'snip help folder move commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__folder__subcmd__rename_commands] )) ||
_snip__subcmd__help__subcmd__folder__subcmd__rename_commands() {
    local commands; commands=()
    _describe -t commands 'snip help folder rename commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__fragment_commands] )) ||
_snip__subcmd__help__subcmd__fragment_commands() {
    local commands; commands=(
'add:' \
'edit:' \
'remove:' \
'reorder:' \
    )
    _describe -t commands 'snip help fragment commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__fragment__subcmd__add_commands] )) ||
_snip__subcmd__help__subcmd__fragment__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'snip help fragment add commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__fragment__subcmd__edit_commands] )) ||
_snip__subcmd__help__subcmd__fragment__subcmd__edit_commands() {
    local commands; commands=()
    _describe -t commands 'snip help fragment edit commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__fragment__subcmd__remove_commands] )) ||
_snip__subcmd__help__subcmd__fragment__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'snip help fragment remove commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__fragment__subcmd__reorder_commands] )) ||
_snip__subcmd__help__subcmd__fragment__subcmd__reorder_commands() {
    local commands; commands=()
    _describe -t commands 'snip help fragment reorder commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist_commands] )) ||
_snip__subcmd__help__subcmd__gist_commands() {
    local commands; commands=(
'push:Create the snippet'\''s gist, or update it when one already exists' \
'url:Print the URL of the snippet'\''s gist' \
'status:Report whether a snippet'\''s gist is current' \
'attach:Record an existing gist as this snippet'\''s gist' \
'detach:Forget a snippet'\''s gist without deleting it on GitHub' \
'delete:Delete the snippet'\''s gist on GitHub and forget it' \
'open:Open the snippet'\''s gist in a browser' \
    )
    _describe -t commands 'snip help gist commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__attach_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__attach_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist attach commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__delete_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__detach_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__detach_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist detach commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__open_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__open_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist open commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__push_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__push_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist push commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__status_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist status commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__gist__subcmd__url_commands] )) ||
_snip__subcmd__help__subcmd__gist__subcmd__url_commands() {
    local commands; commands=()
    _describe -t commands 'snip help gist url commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git_commands] )) ||
_snip__subcmd__help__subcmd__git_commands() {
    local commands; commands=(
'clone:Clone a snip library from a Git remote' \
'status:Show read-only backup status for this library' \
'init:Make this library a Git repository when it is not one already' \
'commit:Commit all library changes without pushing' \
'backup:Commit all library changes and push when an upstream is configured' \
'push:Push commits to the configured upstream without committing' \
'fetch:Fetch and prune remote-tracking refs without touching the worktree' \
'pull:Fetch from the upstream and merge it into the current branch' \
    )
    _describe -t commands 'snip help git commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__backup_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__backup_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git backup commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__clone_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__clone_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git clone commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__commit_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__commit_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git commit commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__fetch_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git fetch commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__init_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git init commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__pull_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__pull_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git pull commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__push_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__push_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git push commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__git__subcmd__status_commands] )) ||
_snip__subcmd__help__subcmd__git__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'snip help git status commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__import_commands] )) ||
_snip__subcmd__help__subcmd__import_commands() {
    local commands; commands=(
'snippetslab:' \
    )
    _describe -t commands 'snip help import commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__import__subcmd__snippetslab_commands] )) ||
_snip__subcmd__help__subcmd__import__subcmd__snippetslab_commands() {
    local commands; commands=()
    _describe -t commands 'snip help import snippetslab commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__info_commands] )) ||
_snip__subcmd__help__subcmd__info_commands() {
    local commands; commands=()
    _describe -t commands 'snip help info commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__init_commands] )) ||
_snip__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip help init commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__keys_commands] )) ||
_snip__subcmd__help__subcmd__keys_commands() {
    local commands; commands=(
'list:List effective bindings, grouped by mode' \
'show:Show every mode and chord bound to one action slug' \
'path:Print the resolved keys.toml path' \
'export:Write the built-in bindings as an authoritative keys.toml' \
'check:Validate keys.toml and report strict binding diagnostics' \
    )
    _describe -t commands 'snip help keys commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__keys__subcmd__check_commands] )) ||
_snip__subcmd__help__subcmd__keys__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'snip help keys check commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__keys__subcmd__export_commands] )) ||
_snip__subcmd__help__subcmd__keys__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'snip help keys export commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__keys__subcmd__list_commands] )) ||
_snip__subcmd__help__subcmd__keys__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip help keys list commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__keys__subcmd__path_commands] )) ||
_snip__subcmd__help__subcmd__keys__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip help keys path commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__keys__subcmd__show_commands] )) ||
_snip__subcmd__help__subcmd__keys__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip help keys show commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__list_commands] )) ||
_snip__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip help list commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__man_commands] )) ||
_snip__subcmd__help__subcmd__man_commands() {
    local commands; commands=(
'path:Print the resolved man page installation directory' \
'install:Install all manual pages' \
'uninstall:Remove unmodified pages recorded by snip' \
'show:Show an embedded manual page with the system man viewer' \
'generate:Export all embedded manual pages to a directory' \
    )
    _describe -t commands 'snip help man commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__man__subcmd__generate_commands] )) ||
_snip__subcmd__help__subcmd__man__subcmd__generate_commands() {
    local commands; commands=()
    _describe -t commands 'snip help man generate commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__man__subcmd__install_commands] )) ||
_snip__subcmd__help__subcmd__man__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'snip help man install commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__man__subcmd__path_commands] )) ||
_snip__subcmd__help__subcmd__man__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip help man path commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__man__subcmd__show_commands] )) ||
_snip__subcmd__help__subcmd__man__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip help man show commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__man__subcmd__uninstall_commands] )) ||
_snip__subcmd__help__subcmd__man__subcmd__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'snip help man uninstall commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__open_commands] )) ||
_snip__subcmd__help__subcmd__open_commands() {
    local commands; commands=()
    _describe -t commands 'snip help open commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__organize_commands] )) ||
_snip__subcmd__help__subcmd__organize_commands() {
    local commands; commands=()
    _describe -t commands 'snip help organize commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__path_commands] )) ||
_snip__subcmd__help__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip help path commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__preview_commands] )) ||
_snip__subcmd__help__subcmd__preview_commands() {
    local commands; commands=()
    _describe -t commands 'snip help preview commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__purge_commands] )) ||
_snip__subcmd__help__subcmd__purge_commands() {
    local commands; commands=()
    _describe -t commands 'snip help purge commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__restore_commands] )) ||
_snip__subcmd__help__subcmd__restore_commands() {
    local commands; commands=()
    _describe -t commands 'snip help restore commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__search_commands] )) ||
_snip__subcmd__help__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'snip help search commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__show_commands] )) ||
_snip__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip help show commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__tag_commands] )) ||
_snip__subcmd__help__subcmd__tag_commands() {
    local commands; commands=(
'list:' \
'rename:' \
'delete:' \
    )
    _describe -t commands 'snip help tag commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__tag__subcmd__delete_commands] )) ||
_snip__subcmd__help__subcmd__tag__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip help tag delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__tag__subcmd__list_commands] )) ||
_snip__subcmd__help__subcmd__tag__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip help tag list commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__tag__subcmd__rename_commands] )) ||
_snip__subcmd__help__subcmd__tag__subcmd__rename_commands() {
    local commands; commands=()
    _describe -t commands 'snip help tag rename commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme_commands] )) ||
_snip__subcmd__help__subcmd__theme_commands() {
    local commands; commands=(
'list:List available themes' \
'show:Print one theme'\''s resolved colors' \
'check:Validate a theme'\''s contrast and role distinctness' \
'path:Print the directory user themes are read from' \
'export:Write a theme to the user theme directory so it can be edited' \
'import:Convert a base16 scheme file into a user theme' \
'use:Select a theme for its appearance slot and save it to the config' \
    )
    _describe -t commands 'snip help theme commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__check_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme check commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__export_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme export commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__import_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__import_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme import commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__list_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme list commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__path_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme path commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__show_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme show commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__theme__subcmd__use_commands] )) ||
_snip__subcmd__help__subcmd__theme__subcmd__use_commands() {
    local commands; commands=()
    _describe -t commands 'snip help theme use commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__trash_commands] )) ||
_snip__subcmd__help__subcmd__trash_commands() {
    local commands; commands=()
    _describe -t commands 'snip help trash commands' commands "$@"
}
(( $+functions[_snip__subcmd__help__subcmd__tui_commands] )) ||
_snip__subcmd__help__subcmd__tui_commands() {
    local commands; commands=()
    _describe -t commands 'snip help tui commands' commands "$@"
}
(( $+functions[_snip__subcmd__import_commands] )) ||
_snip__subcmd__import_commands() {
    local commands; commands=(
'snippetslab:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip import commands' commands "$@"
}
(( $+functions[_snip__subcmd__import__subcmd__help_commands] )) ||
_snip__subcmd__import__subcmd__help_commands() {
    local commands; commands=(
'snippetslab:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip import help commands' commands "$@"
}
(( $+functions[_snip__subcmd__import__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__import__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip import help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__import__subcmd__help__subcmd__snippetslab_commands] )) ||
_snip__subcmd__import__subcmd__help__subcmd__snippetslab_commands() {
    local commands; commands=()
    _describe -t commands 'snip import help snippetslab commands' commands "$@"
}
(( $+functions[_snip__subcmd__import__subcmd__snippetslab_commands] )) ||
_snip__subcmd__import__subcmd__snippetslab_commands() {
    local commands; commands=()
    _describe -t commands 'snip import snippetslab commands' commands "$@"
}
(( $+functions[_snip__subcmd__info_commands] )) ||
_snip__subcmd__info_commands() {
    local commands; commands=()
    _describe -t commands 'snip info commands' commands "$@"
}
(( $+functions[_snip__subcmd__init_commands] )) ||
_snip__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'snip init commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys_commands] )) ||
_snip__subcmd__keys_commands() {
    local commands; commands=(
'list:List effective bindings, grouped by mode' \
'show:Show every mode and chord bound to one action slug' \
'path:Print the resolved keys.toml path' \
'export:Write the built-in bindings as an authoritative keys.toml' \
'check:Validate keys.toml and report strict binding diagnostics' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip keys commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__check_commands] )) ||
_snip__subcmd__keys__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys check commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__export_commands] )) ||
_snip__subcmd__keys__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys export commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help_commands] )) ||
_snip__subcmd__keys__subcmd__help_commands() {
    local commands; commands=(
'list:List effective bindings, grouped by mode' \
'show:Show every mode and chord bound to one action slug' \
'path:Print the resolved keys.toml path' \
'export:Write the built-in bindings as an authoritative keys.toml' \
'check:Validate keys.toml and report strict binding diagnostics' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip keys help commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help__subcmd__check_commands] )) ||
_snip__subcmd__keys__subcmd__help__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys help check commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help__subcmd__export_commands] )) ||
_snip__subcmd__keys__subcmd__help__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys help export commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__keys__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help__subcmd__list_commands] )) ||
_snip__subcmd__keys__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys help list commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help__subcmd__path_commands] )) ||
_snip__subcmd__keys__subcmd__help__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys help path commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__help__subcmd__show_commands] )) ||
_snip__subcmd__keys__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys help show commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__list_commands] )) ||
_snip__subcmd__keys__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys list commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__path_commands] )) ||
_snip__subcmd__keys__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys path commands' commands "$@"
}
(( $+functions[_snip__subcmd__keys__subcmd__show_commands] )) ||
_snip__subcmd__keys__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip keys show commands' commands "$@"
}
(( $+functions[_snip__subcmd__list_commands] )) ||
_snip__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip list commands' commands "$@"
}
(( $+functions[_snip__subcmd__man_commands] )) ||
_snip__subcmd__man_commands() {
    local commands; commands=(
'path:Print the resolved man page installation directory' \
'install:Install all manual pages' \
'uninstall:Remove unmodified pages recorded by snip' \
'show:Show an embedded manual page with the system man viewer' \
'generate:Export all embedded manual pages to a directory' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip man commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__generate_commands] )) ||
_snip__subcmd__man__subcmd__generate_commands() {
    local commands; commands=()
    _describe -t commands 'snip man generate commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help_commands] )) ||
_snip__subcmd__man__subcmd__help_commands() {
    local commands; commands=(
'path:Print the resolved man page installation directory' \
'install:Install all manual pages' \
'uninstall:Remove unmodified pages recorded by snip' \
'show:Show an embedded manual page with the system man viewer' \
'generate:Export all embedded manual pages to a directory' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip man help commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help__subcmd__generate_commands] )) ||
_snip__subcmd__man__subcmd__help__subcmd__generate_commands() {
    local commands; commands=()
    _describe -t commands 'snip man help generate commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__man__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip man help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help__subcmd__install_commands] )) ||
_snip__subcmd__man__subcmd__help__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'snip man help install commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help__subcmd__path_commands] )) ||
_snip__subcmd__man__subcmd__help__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip man help path commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help__subcmd__show_commands] )) ||
_snip__subcmd__man__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip man help show commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__help__subcmd__uninstall_commands] )) ||
_snip__subcmd__man__subcmd__help__subcmd__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'snip man help uninstall commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__install_commands] )) ||
_snip__subcmd__man__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'snip man install commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__path_commands] )) ||
_snip__subcmd__man__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip man path commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__show_commands] )) ||
_snip__subcmd__man__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip man show commands' commands "$@"
}
(( $+functions[_snip__subcmd__man__subcmd__uninstall_commands] )) ||
_snip__subcmd__man__subcmd__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'snip man uninstall commands' commands "$@"
}
(( $+functions[_snip__subcmd__open_commands] )) ||
_snip__subcmd__open_commands() {
    local commands; commands=()
    _describe -t commands 'snip open commands' commands "$@"
}
(( $+functions[_snip__subcmd__organize_commands] )) ||
_snip__subcmd__organize_commands() {
    local commands; commands=()
    _describe -t commands 'snip organize commands' commands "$@"
}
(( $+functions[_snip__subcmd__path_commands] )) ||
_snip__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip path commands' commands "$@"
}
(( $+functions[_snip__subcmd__preview_commands] )) ||
_snip__subcmd__preview_commands() {
    local commands; commands=()
    _describe -t commands 'snip preview commands' commands "$@"
}
(( $+functions[_snip__subcmd__purge_commands] )) ||
_snip__subcmd__purge_commands() {
    local commands; commands=()
    _describe -t commands 'snip purge commands' commands "$@"
}
(( $+functions[_snip__subcmd__restore_commands] )) ||
_snip__subcmd__restore_commands() {
    local commands; commands=()
    _describe -t commands 'snip restore commands' commands "$@"
}
(( $+functions[_snip__subcmd__search_commands] )) ||
_snip__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'snip search commands' commands "$@"
}
(( $+functions[_snip__subcmd__show_commands] )) ||
_snip__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip show commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag_commands] )) ||
_snip__subcmd__tag_commands() {
    local commands; commands=(
'list:' \
'rename:' \
'delete:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip tag commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__delete_commands] )) ||
_snip__subcmd__tag__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__help_commands] )) ||
_snip__subcmd__tag__subcmd__help_commands() {
    local commands; commands=(
'list:' \
'rename:' \
'delete:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip tag help commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__help__subcmd__delete_commands] )) ||
_snip__subcmd__tag__subcmd__help__subcmd__delete_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag help delete commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__tag__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__help__subcmd__list_commands] )) ||
_snip__subcmd__tag__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag help list commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__help__subcmd__rename_commands] )) ||
_snip__subcmd__tag__subcmd__help__subcmd__rename_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag help rename commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__list_commands] )) ||
_snip__subcmd__tag__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag list commands' commands "$@"
}
(( $+functions[_snip__subcmd__tag__subcmd__rename_commands] )) ||
_snip__subcmd__tag__subcmd__rename_commands() {
    local commands; commands=()
    _describe -t commands 'snip tag rename commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme_commands] )) ||
_snip__subcmd__theme_commands() {
    local commands; commands=(
'list:List available themes' \
'show:Print one theme'\''s resolved colors' \
'check:Validate a theme'\''s contrast and role distinctness' \
'path:Print the directory user themes are read from' \
'export:Write a theme to the user theme directory so it can be edited' \
'import:Convert a base16 scheme file into a user theme' \
'use:Select a theme for its appearance slot and save it to the config' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip theme commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__check_commands] )) ||
_snip__subcmd__theme__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme check commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__export_commands] )) ||
_snip__subcmd__theme__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme export commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help_commands] )) ||
_snip__subcmd__theme__subcmd__help_commands() {
    local commands; commands=(
'list:List available themes' \
'show:Print one theme'\''s resolved colors' \
'check:Validate a theme'\''s contrast and role distinctness' \
'path:Print the directory user themes are read from' \
'export:Write a theme to the user theme directory so it can be edited' \
'import:Convert a base16 scheme file into a user theme' \
'use:Select a theme for its appearance slot and save it to the config' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'snip theme help commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__check_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help check commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__export_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help export commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__help_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help help commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__import_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__import_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help import commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__list_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help list commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__path_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help path commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__show_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help show commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__help__subcmd__use_commands] )) ||
_snip__subcmd__theme__subcmd__help__subcmd__use_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme help use commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__import_commands] )) ||
_snip__subcmd__theme__subcmd__import_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme import commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__list_commands] )) ||
_snip__subcmd__theme__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme list commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__path_commands] )) ||
_snip__subcmd__theme__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme path commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__show_commands] )) ||
_snip__subcmd__theme__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme show commands' commands "$@"
}
(( $+functions[_snip__subcmd__theme__subcmd__use_commands] )) ||
_snip__subcmd__theme__subcmd__use_commands() {
    local commands; commands=()
    _describe -t commands 'snip theme use commands' commands "$@"
}
(( $+functions[_snip__subcmd__trash_commands] )) ||
_snip__subcmd__trash_commands() {
    local commands; commands=()
    _describe -t commands 'snip trash commands' commands "$@"
}
(( $+functions[_snip__subcmd__tui_commands] )) ||
_snip__subcmd__tui_commands() {
    local commands; commands=()
    _describe -t commands 'snip tui commands' commands "$@"
}

if [ "$funcstack[1]" = "_snip" ]; then
    _snip "$@"
else
    compdef _snip snip
fi
