How to search for two keywords in rg ripgrep
You can use rg pattern path to find the first occurence, then using -A and -B to show x lines after and before and piping this to rg again
rg pattern path -A x -B y | rg pattern
You can use rg pattern path to find the first occurence, then using -A and -B to show x lines after and before and piping this to rg again
rg pattern path -A x -B y | rg pattern