mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Updated Examples (markdown)
@@ -305,7 +305,7 @@ Suggested by [@gbstan](https://github.com/gbstan)
|
||||
fif() {
|
||||
if [ ! "$#" -gt 0 ]; then echo "Need a string to search for!"; return 1; fi
|
||||
local file
|
||||
file="$(rag --max-count=1 --ignore-case --files-with-matches --no-messages "$@" | fzf-tmux +m --preview="rga --ignore-case --pretty --context 10 '"$@"' {}")" && open "$file"
|
||||
file="$(rga --max-count=1 --ignore-case --files-with-matches --no-messages "$@" | fzf-tmux +m --preview="rga --ignore-case --pretty --context 10 '"$@"' {}")" && open "$file"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user