mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
fuzzy grep open via ag
14
Examples.md
14
Examples.md
@@ -83,6 +83,20 @@ vf() {
|
||||
}
|
||||
```
|
||||
|
||||
```sh
|
||||
# fuzzy grep open via ag
|
||||
vg() {
|
||||
local file
|
||||
|
||||
file="$(ag --nobreak --noheading $@ | fzf -0 -1 | awk -F: '{print $1 " +" $2}')"
|
||||
|
||||
if [[ -n $file ]]
|
||||
then
|
||||
vim $file
|
||||
fi
|
||||
}
|
||||
```
|
||||
|
||||
### Changing directory
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user