@ -69,59 +69,185 @@ _fzf_opts_completion() {
cur = " ${ COMP_WORDS [COMP_CWORD] } "
cur = " ${ COMP_WORDS [COMP_CWORD] } "
prev = " ${ COMP_WORDS [COMP_CWORD-1] } "
prev = " ${ COMP_WORDS [COMP_CWORD-1] } "
opts = "
opts = "
-h --help
-x --extended
-x --extended
-e --exact
-e --exact
--extended-exact
+x --no-extended
+e --no-exact
-q --query
-f --filter
--literal
--no-literal
--algo
--algo
-i +i
--scheme
--expect
--no-expect
--enabled --no-phony
--disabled --phony
--tiebreak
--bind
--color
--toggle-sort
-d --delimiter
-n --nth
-n --nth
--with-nth
--with-nth
-d --delimiter
-s --sort
+s --no-sort
+s --no-sort
--track
--no-track
--tac
--tac
--tiebreak
--no-tac
-i
+i
-m --multi
-m --multi
+m --no-multi
--ansi
--no-ansi
--no-mouse
--no-mouse
--bind
+c --no-color
+2 --no-256
--black
--no-black
--bold
--no-bold
--layout
--reverse
--no-reverse
--cycle
--cycle
--no-cycle
--keep-right
--no-keep-right
--hscroll
--no-hscroll
--no-hscroll
--jump-labels
--hscroll-off
--height
--scroll-off
--literal
--filepath-word
--reverse
--no-filepath-word
--margin
--info
--no-info
--inline-info
--inline-info
--no-inline-info
--separator
--no-separator
--scrollbar
--no-scrollbar
--jump-labels
-1 --select-1
+1 --no-select-1
-0 --exit-0
+0 --no-exit-0
--read0
--no-read0
--print0
--no-print0
--print-query
--no-print-query
--prompt
--prompt
--pointer
--pointer
--marker
--marker
--header
--sync
--header-lines
--no-sync
--ansi
--async
--tabstop
--no-history
--color
--no-bold
--history
--history
--history-size
--history-size
--no-header
--no-header-lines
--header
--header-lines
--header-first
--no-header-first
--ellipsis
--preview
--preview
--no-preview
--preview-window
--preview-window
-q --query
--height
-1 --select-1
--min-height
-0 --exit-0
--no-height
-f --filter
--no-margin
--print-query
--no-padding
--expect
--no-border
--sync"
--border
--no-border-label
--border-label
--border-label-pos
--no-preview-label
--preview-label
--preview-label-pos
--no-unicode
--unicode
--margin
--padding
--tabstop
--listen
--no-listen
--clear
--no-clear
--version
--"
case " ${ prev } " in
case " ${ prev } " in
--algo)
COMPREPLY = ( $( compgen -W "v1 v2" -- " $cur " ) )
return 0
; ;
--scheme)
COMPREPLY = ( $( compgen -W "default path history" -- " $cur " ) )
return 0
; ;
--tiebreak)
--tiebreak)
COMPREPLY = ( $( compgen -W "length begin end index" -- " $cur " ) )
COMPREPLY = ( $( compgen -W "length chunk begin end index" -- " $cur " ) )
return 0
return 0
; ;
; ;
--color)
--color)
COMPREPLY = ( $( compgen -W "dark light 16 bw" -- " $cur " ) )
COMPREPLY = ( $( compgen -W "dark light 16 bw no" -- " $cur " ) )
return 0
; ;
--layout)
COMPREPLY = ( $( compgen -W "default reverse reverse-list" -- " $cur " ) )
return 0
; ;
--info)
COMPREPLY = ( $( compgen -W "default right hidden inline inline-right" -- " $cur " ) )
return 0
; ;
--preview-window)
COMPREPLY = ( $( compgen -W "
default
hidden
nohidden
wrap
nowrap
cycle
nocycle
up top
down bottom
left
right
rounded border border-rounded
sharp border-sharp
border-bold
border-block
border-thinblock
border-double
noborder border-none
border-horizontal
border-vertical
border-up border-top
border-down border-bottom
border-left
border-right
follow
nofollow" -- " $cur " ) )
return 0
; ;
--border)
COMPREPLY = ( $( compgen -W "rounded sharp bold block thinblock double horizontal vertical top bottom left right none" -- " $cur " ) )
return 0
return 0
; ;
; ;
--history)
--border-label-pos| --preview-label-pos )
COMPREPLY = ( )
COMPREPLY = ( $( compgen -W "center bottom top" -- " $cur " ) )
return 0
return 0
; ;
; ;
esac
esac