junegunn / fzf.vim

fzf :heart: vim
MIT License
9.59k stars 582 forks source link

how to make GFiles case insensitive #1376

Open fliu7 opened 2 years ago

fliu7 commented 2 years ago

Quick question from a vim newbie: how to make :GFiles case insensitive as in fzf -i? :GFiles -i does not work, so I added -i to fzf#vim#gitfiles. But is there a way to configure it instead of having to change code?

alexsmartens commented 2 years ago

+1

alexsmartens commented 2 years ago

here is my work around:

command! -bang -nargs=? -complete=dir GFiles
    \ call fzf#vim#gitfiles(<q-args>, {'options': ['-i']}, <bang>0)

noremap <c-p> :GFiles --others --exclude-standard --cached<cr>