mirror of
https://github.com/junegunn/fzf
synced 2026-06-09 10:03:17 +00:00
Update bash fzf option completion
This commit is contained in:
+54
-10
@@ -124,6 +124,7 @@ _fzf_opts_completion() {
|
|||||||
+i --no-ignore-case
|
+i --no-ignore-case
|
||||||
+s --no-sort
|
+s --no-sort
|
||||||
+x --no-extended
|
+x --no-extended
|
||||||
|
--accept-nth
|
||||||
--ansi
|
--ansi
|
||||||
--bash
|
--bash
|
||||||
--bind
|
--bind
|
||||||
@@ -137,56 +138,87 @@ _fzf_opts_completion() {
|
|||||||
--expect
|
--expect
|
||||||
--filepath-word
|
--filepath-word
|
||||||
--fish
|
--fish
|
||||||
|
--footer
|
||||||
|
--footer-border
|
||||||
|
--footer-label
|
||||||
|
--footer-label-pos
|
||||||
|
--freeze-left
|
||||||
|
--freeze-right
|
||||||
|
--gap
|
||||||
|
--gap-line
|
||||||
|
--ghost
|
||||||
|
--gutter
|
||||||
|
--gutter-raw
|
||||||
--header
|
--header
|
||||||
|
--header-border
|
||||||
--header-first
|
--header-first
|
||||||
|
--header-label
|
||||||
|
--header-label-pos
|
||||||
--header-lines
|
--header-lines
|
||||||
|
--header-lines-border
|
||||||
--height
|
--height
|
||||||
--highlight-line
|
--highlight-line
|
||||||
--history
|
--history
|
||||||
--history-size
|
--history-size
|
||||||
--hscroll-off
|
--hscroll-off
|
||||||
--info
|
--info
|
||||||
|
--info-command
|
||||||
|
--input-border
|
||||||
|
--input-label
|
||||||
|
--input-label-pos
|
||||||
--jump-labels
|
--jump-labels
|
||||||
--keep-right
|
--keep-right
|
||||||
--layout
|
--layout
|
||||||
--listen
|
--listen
|
||||||
--listen-unsafe
|
--listen-unsafe
|
||||||
|
--list-border
|
||||||
|
--list-label
|
||||||
|
--list-label-pos
|
||||||
--literal
|
--literal
|
||||||
--man
|
--man
|
||||||
--margin
|
--margin
|
||||||
--marker
|
--marker
|
||||||
|
--marker-multi-line
|
||||||
--min-height
|
--min-height
|
||||||
--no-bold
|
--no-bold
|
||||||
--no-clear
|
|
||||||
--no-hscroll
|
--no-hscroll
|
||||||
--no-mouse
|
--no-input
|
||||||
|
--no-multi-line
|
||||||
--no-scrollbar
|
--no-scrollbar
|
||||||
--no-separator
|
--no-separator
|
||||||
--no-unicode
|
|
||||||
--padding
|
--padding
|
||||||
--pointer
|
--pointer
|
||||||
--preview
|
--preview
|
||||||
|
--preview-border
|
||||||
--preview-label
|
--preview-label
|
||||||
--preview-label-pos
|
--preview-label-pos
|
||||||
--preview-window
|
--preview-window
|
||||||
--print-query
|
--print-query
|
||||||
--print0
|
--print0
|
||||||
--prompt
|
--prompt
|
||||||
|
--raw
|
||||||
--read0
|
--read0
|
||||||
--reverse
|
|
||||||
--scheme
|
--scheme
|
||||||
--scroll-off
|
--scroll-off
|
||||||
|
--scrollbar
|
||||||
--separator
|
--separator
|
||||||
|
--smart-case
|
||||||
|
--style
|
||||||
--sync
|
--sync
|
||||||
--tabstop
|
--tabstop
|
||||||
--tac
|
--tac
|
||||||
|
--tail
|
||||||
--tiebreak
|
--tiebreak
|
||||||
--tmux
|
--tmux
|
||||||
--track
|
--track
|
||||||
--version
|
--version
|
||||||
|
--walker
|
||||||
|
--walker-root
|
||||||
|
--walker-skip
|
||||||
--with-nth
|
--with-nth
|
||||||
--with-shell
|
--with-shell
|
||||||
--wrap
|
--wrap
|
||||||
|
--wrap-sign
|
||||||
--zsh
|
--zsh
|
||||||
-0 --exit-0
|
-0 --exit-0
|
||||||
-1 --select-1
|
-1 --select-1
|
||||||
@@ -206,11 +238,11 @@ _fzf_opts_completion() {
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--tiebreak)
|
--tiebreak)
|
||||||
COMPREPLY=($(compgen -W "length chunk begin end index" -- "$cur"))
|
COMPREPLY=($(compgen -W "length chunk pathname begin end index" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--color)
|
--color)
|
||||||
COMPREPLY=($(compgen -W "dark light 16 bw no" -- "$cur"))
|
COMPREPLY=($(compgen -W "dark light base16 16 bw no" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--layout)
|
--layout)
|
||||||
@@ -221,12 +253,21 @@ _fzf_opts_completion() {
|
|||||||
COMPREPLY=($(compgen -W "default right hidden inline inline-right" -- "$cur"))
|
COMPREPLY=($(compgen -W "default right hidden inline inline-right" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
--wrap)
|
||||||
|
COMPREPLY=($(compgen -W "char word" -- "$cur"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--style)
|
||||||
|
COMPREPLY=($(compgen -W "default minimal full" -- "$cur"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
--preview-window)
|
--preview-window)
|
||||||
COMPREPLY=($(compgen -W "
|
COMPREPLY=($(compgen -W "
|
||||||
default
|
default
|
||||||
hidden
|
hidden
|
||||||
nohidden
|
nohidden
|
||||||
wrap
|
wrap
|
||||||
|
wrap-word
|
||||||
nowrap
|
nowrap
|
||||||
cycle
|
cycle
|
||||||
nocycle
|
nocycle
|
||||||
@@ -235,6 +276,7 @@ _fzf_opts_completion() {
|
|||||||
left
|
left
|
||||||
right
|
right
|
||||||
rounded border border-rounded
|
rounded border border-rounded
|
||||||
|
border-line
|
||||||
sharp border-sharp
|
sharp border-sharp
|
||||||
border-bold
|
border-bold
|
||||||
border-block
|
border-block
|
||||||
@@ -248,14 +290,16 @@ _fzf_opts_completion() {
|
|||||||
border-left
|
border-left
|
||||||
border-right
|
border-right
|
||||||
follow
|
follow
|
||||||
nofollow" -- "$cur"))
|
nofollow
|
||||||
|
info
|
||||||
|
noinfo" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--border)
|
--border | --list-border | --header-border | --header-lines-border | --footer-border | --input-border | --preview-border)
|
||||||
COMPREPLY=($(compgen -W "rounded sharp bold block thinblock double horizontal vertical top bottom left right none" -- "$cur"))
|
COMPREPLY=($(compgen -W "line rounded sharp bold block thinblock double horizontal vertical top bottom left right none" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--border-label-pos | --preview-label-pos)
|
--border-label-pos | --preview-label-pos | --list-label-pos | --header-label-pos | --footer-label-pos | --input-label-pos)
|
||||||
COMPREPLY=($(compgen -W "center bottom top" -- "$cur"))
|
COMPREPLY=($(compgen -W "center bottom top" -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user