mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -05:00
Updated Examples (markdown)
@@ -305,7 +305,7 @@ Suggested by [@gbstan](https://github.com/gbstan)
|
|||||||
fif() {
|
fif() {
|
||||||
if [ ! "$#" -gt 0 ]; then echo "Need a string to search for!"; return 1; fi
|
if [ ! "$#" -gt 0 ]; then echo "Need a string to search for!"; return 1; fi
|
||||||
local file
|
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