From 34881b707bf722e338240e61b39946d86e4b8c4a Mon Sep 17 00:00:00 2001 From: Dylan Chong Date: Wed, 20 Jun 2018 21:20:24 +1200 Subject: [PATCH] Update Rg example to use smart-case option (#658) --- README.md | 2 +- doc/fzf-vim.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 315b14d..8234f9f 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ command! -bang -nargs=* Ag " Similarly, we can apply it to fzf#vim#grep. To use ripgrep instead of ag: command! -bang -nargs=* Rg \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always '.shellescape(), 1, + \ 'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(), 1, \ 0 ? fzf#vim#with_preview('up:60%') \ : fzf#vim#with_preview('right:50%:hidden', '?'), \ 0) diff --git a/doc/fzf-vim.txt b/doc/fzf-vim.txt index 0608f3e..db1a507 100644 --- a/doc/fzf-vim.txt +++ b/doc/fzf-vim.txt @@ -236,7 +236,7 @@ You can use autoload functions to define your own commands. " Similarly, we can apply it to fzf#vim#grep. To use ripgrep instead of ag: command! -bang -nargs=* Rg \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always '.shellescape(), 1, + \ 'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(), 1, \ 0 ? fzf#vim#with_preview('up:60%') \ : fzf#vim#with_preview('right:50%:hidden', '?'), \ 0)