rgメモ
参考
結果のフィルタリング
特定のファイルのみを対象にする ( -g オプション )
含む rg fetch -g '*_spec.rb'
含まない rg fetch -g '!*_spec.rb'
特定のファイルタイプのみを検索対象にする
rg -t ruby test
ファイル名のみを出力する ( -l, --files-with-matches )
特定のパターンのみ出力する
特定のパターンを除外する
前後の N 行表示する
前 -B N --before-context N
後ろ -A N --after-context N
前後 -C N --context N
#rg #ripgrep