fzf + ag fuzzy grep

github logo ・1 min read

In my environment, the vg () function described in the official fzf wiki did not work well.
Specifically, a new file with a line number added opens.

I searched and found this issue.

fag(){
  local line
  line=`ag --nocolor "$1" | fzf` \
    && vim $(cut -d':' -f1 <<< "$line") +$(cut -d':' -f2 <<< "$line")
}    

This function works well. It was very helpful.

twitter logo DISCUSS
Classic DEV Post from Mar 6

GraphQL performance issues & an easy solution

One of the biggest GraphQL flaws is missing of some basic implementations know from REST which are crucial for application performance.

matsuikazuto profile image
I am learning English.

😓 Sore eyes?

dev.to now has a dark version (in public beta).

Go to the "misc" section of your settings and select night theme ❤️