#compdef fzf

_fzf() {
  _arguments -s -S -C \
    {-x,--extended}'[Extended-search mode (default: enabled)]' \
    {-e,--exact}'[Enable exact-match]' \
    {-i,--ignore-case}'[Case-insensitive match (default: smart-case)]' \
    '--no-ignore-case[Case-sensitive match]' \
    '--smart-case[Smart-case match (default)]' \
    '--literal[Do not normalize latin script letters for matching]' \
    '--scheme=[Choose scoring scheme tailored for different types of input]:SCHEME:(default path history)' \
    '--algo=[Fuzzy matching algorithm (default: v2)]:TYPE:(v2 v1)' \
    {-n+,--nth=}'[Comma-separated list of field index expressions for limiting search scope]:N:' \
    '--with-nth=[Transform the presentation of each line using the field index expressions]:N:' \
    '--accept-nth=[Define which fields to print on accept]:N:' \
    '--no-sort[Do not sort the result]' \
    {-d+,--delimiter=}'[Field delimiter regex for --nth, --with-nth]' \
    '--tail=[Maximum number of items to keep in memory]:NUM:' \
    '--disabled[Do not perform search]' \
    '--tiebreak=[Comma-separated list of sort criteria to apply when the scores are tied]:CRI:(length chunk pathname begin end index)' \
    '--read0[Read input delimited by ASCII NUL characters instead of newline characters]' \
    '--print0[Print output delimited by ASCII NUL characters instead of newline characters]' \
    '--ansi[Enable processing of ANSI color codes]' \
    '--sync[Synchronous search for multi-staged filtering]' \
    '--no-tty-default[Make fzf search for current TTY device via standard error]' \
    '--style=[Apply a style preset \[default|minimal|full\[:BORDER_STYLE\]\]]:PRESET:(default minimal full)' \
    '--color=[Color configuration\[BASE_SCHEME\]\[,COLOR_NAME\[:ANSI_COLOR\]\[:ANSI_ATTRIBUTES\]\]]' \
    '--no-color[Disable colors]' \
    '--no-bold[Do not use bold text]' \
    '--black[Use black background]' \
    '--height=[Display fzf window below the cursor with the given height]:HEIGHT:(%)' \
    '--min-height=[Minimum height when --height is a percentage]:HEIGHT:(+)' \
    '--tmux[Start fzf in a tmux popup (default center,50%) tmux >= 3.3]' \
    '--layout=[Choose the layout (default: default)]:LAYOUT:(default reverse reverse-list)' \
    '--reverse[A synonym for --layout=reverse]' \
    '--margin=[Comma-separated expression for margins around the finder]:MARGIN:' \
    '--padding=[Comma-separated expression for padding inside the border]:PADDING:' \
    '--border[Draw border around the finder]' \
    '--border=[Draw border around the finder]:STYLE:(rounded sharp double block thinblock horizontal vertical line top bottom left right none)' \
    '--border-label[Label to print on the horizontal border line]' \
    '--border-label-pos[Position of the border label on the border line]' \
    {-m,--multi}'[Enable multi-select with tab/shift-tab]' \
    '--no-multi[Disable multi-select]' \
    '--highlight-line[Highlight the whole current line]' \
    '--cycle[Enable cyclic scroll]' \
    '--wrap[Enable line wrap]' \
    '--wrap-sign=[Indicator for wrapped lines]:INDICATOR:' \
    '--no-multi-line[Disable multi-line display of items when using --read0]' \
    '--raw[Non-matching items are also displayed (dimmed)]' \
    '--track[Track current selection when the result is updated]' \
    '--tac[Reverse the order of the input]' \
    '--gap[Render empty lines between each item]' \
    '--gap-line[Repeat string to draw a horizontal line on each gap]' \
    '--freeze-left=[Number of fields to freeze on the left]:N:' \
    '--freeze-right=[Number of fields to freeze on the right]:N:' \
    '--keep-right[Keep right end of the line visible when it'"'"'s too long]' \
    '--scroll-off=[Lines to keep above/below when scrolling to top]:LINES:' \
    '--no-hscroll[Disable horizontal scroll]' \
    '--hscroll-off=[Columns to keep to the right of highlighted substring]:COLS:' \
    '--jump-labels=[Label characters for jump mode]:CHARS:' \
    '--gutter=[Character for gutter column (default: '"'"'▌'"'"')]:CHAR:' \
    '--gutter-raw=[Character for gutter column in raw mode (default: '"'"'▖'"'"')]:CHAR:' \
    '--pointer=[Pointer to the current line (default: '"'"'▌'"'"' or '"'"'>'"'"')]:STR:' \
    '--marker=[Multi-select marker (default: '"'"'┃'"'"' or '"'"'>'"'"')]:STR:' \
    '--marker-multi-line=[Multi-select marker for multi-line entries]:STR:' \
    '--ellipsis=[To show when line is truncated (default: '"'"'··'"'"')]:STR:' \
    '--tabstop=[Number of spaces for a tab character (default: 8)]:SPACES:' \
    '--scrollbar=[Use the given character to render scrollbar]:CHAR1[CHAR2]:' \
    '--no-scrollbar[Do not display scrollbar. A synonym for --scrollbar='"'"''"'"']' \
    '--list-border[Draw border around the list section]' \
    '--list-label[Label to print on the list border]' \
    '--list-label-pos[Position of the list label]' \
    '--no-input[Disable and hide the input section]' \
    '--prompt=[Input prompt (default: '"'"'> '"'"')]:STR:' \
    '--info=[Determines the display style of the finder info]:STYLE:(default right hidden inline inline-right)' \
    '--info-command=[Command to generate the finder info line]:COMMAND:' \
    '--no-info[A synonym for --info=hidden]' \
    '--separator=[Set the horizontal separator on the info]:STR:' \
    '--no-separator[Do not display horizontal separator on the info line]' \
    '--ghost=[Ghost text to display when the input is empty]:TEXT:' \
    '--filepath-word[Make word-wise movements respect path separators]' \
    '--input-border[Draw border around the input section]' \
    '--input-label[Label to print on the input border]' \
    '--input-label-pos[Position of the input label]' \
    '--preview=[Execute given command for current line and display]:COMMAND:' \
    '--preview-border=[Short for --preview-window=border-STYLE]:STYLE:(rounded sharp bold double block thinblock horizontal vertical line top bottom left right none)' \
    '--preview-label[Set horizontal border line label of preview window]' \
    '--preview-label-pos[Position of border label on border line of preview window]' \
    '--preview-window[POSITION: (default: right) up down left right]' \
    '--header=[Treat string as sticky header]:STR:' \
    '--header-lines=[Treat first N lines of input as sticky header]:N:' \
    '--header-first[Print header before the prompt line]' \
    '--header-border[Draw border around the header section]' \
    '--header-label[Label to print on the header border]' \
    '--header-label-pos[Position of the header label]' \
    '--header-lines-border[Display header from --header-lines with a separate border]' \
    '--footer=[Set sticky footer]:STR:' \
    '--footer-border[Draw border around the footer section]' \
    '--footer-label[Label to print on the footer border]' \
    '--footer-label-pos[Position of the footer label]' \
    {-q,--query=}'[Start the finder with the given query]:STR:' \
    {-1,--select-1}'[If one match, do'\''not start interactive finder and auto select only match]' \
    {-0,--exit-0}'[If no match, do'\''not start interactive finder and exit]' \
    {-f,--filter=}'[Filter mode. Do'\''not start interactive finder]:STR:' \
    '--print-query[Print query as the first line]' \
    '--expect=[Comma-separated list of keys to complete fzf]:KEY[,..]:' \
    '--no-clear[Do not clear finder interface on exit]' \
    '--bind=[Comma-separated list of custom key/event bindings]:BINDINGS:' \
    '--with-shell=[Shell command and flags to start child processes with]:STR:' \
    {--listen,--listen-unsafe}'[Start HTTP server and listen on the given address or Unix socket]' \
    '--walker=[Determines the behavior of the built-in directory walker]:(file ,dir ,follow ,hidden):' \
    '--walker-root=[List of directory names to start the built-in directory walker]:DIR:' \
    '--walker-skip=[Comma-separated list of directory names to skip during the directory walk]:DIRS:' \
    '--history=[Load search history from the specified file and update the file on completion]:HISTORY_FILE:' \
    '--history-size=[Maximum number of entries in the history file (default: 1000)]:N:' \
    '--bash[Print Bash shell integration e.g. eval "$(fzf --bash)"]' \
    '--zsh[Print Zsh shell integration e.g. source <(fzf --zsh)]' \
    '--fish[Print Fish shell integration e.g. fzf --fish | source]' \
    '--no-mouse[Disable mouse]' \
    '--no-unicode[Use ASCII characters instead of Unicode]' \
    '--ambidouble[If terminal displays ambiguous width characters]' \
    '--version[Display version information and exit]' \
    '--help[Show help message]' \
    '--no-extended' \
    '--man[Show man page]' \
    '-c' \
    '-2' \
    '*:file:_files'
}

_fzf
