fzf.vim icon indicating copy to clipboard operation
fzf.vim copied to clipboard

how to make GFiles case insensitive

Open fliu7 opened this issue 2 years ago • 2 comments

  • [x] I have fzf 0.23.0 or above
  • [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
  • [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
  • [x] I have read through the manual page of fzf (man fzf)
  • [x] I have searched through the existing issues

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?

fliu7 avatar Mar 17 '22 15:03 fliu7

+1

alexsmartens avatar May 19 '22 00:05 alexsmartens

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>

alexsmartens avatar May 23 '22 17:05 alexsmartens