mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
ripgrep search and preview
@@ -245,6 +245,10 @@ grep --line-buffered --color=never -r "" * | fzf
|
|||||||
|
|
||||||
# with ag - respects .agignore and .gitignore
|
# with ag - respects .agignore and .gitignore
|
||||||
ag --nobreak --nonumbers --noheading . | fzf
|
ag --nobreak --nonumbers --noheading . | fzf
|
||||||
|
|
||||||
|
# using ripgrep combined with preview
|
||||||
|
# find-in-file - usage: fif <searchTerm>
|
||||||
|
fif() { rg --files-with-matches --no-messages $1 | fzf --preview "highlight -O ansi -l {} 2> /dev/null | rg --colors 'match:bg:yellow' --ignore-case --pretty --context 10 $1 || rg --ignore-case --pretty --context 10 $1 {}" }
|
||||||
```
|
```
|
||||||
|
|
||||||
### Command history
|
### Command history
|
||||||
|
|||||||
Reference in New Issue
Block a user