diff --git a/pages/common/rg.md b/pages/common/rg.md index 2a967df979..6ec1635d16 100644 --- a/pages/common/rg.md +++ b/pages/common/rg.md @@ -1,6 +1,6 @@ -# ripgrep +# rg -> A recursive line-oriented CLI search tool. +> Ripgrep is a recursive line-oriented CLI search tool. > Aims to be a faster alternative to `grep`. > More information: . @@ -10,11 +10,11 @@ - Search for pattern including all .gitignored and hidden files: -`rg -uu {{pattern}}` +`rg --no-ignore --hidden {{pattern}}` - Search for a pattern only in a certain filetype (e.g., html, css, etc.): -`rg -t {{filetype}} {{pattern}}` +`rg --type {{filetype}} {{pattern}}` - Search for a pattern only in a subset of directories: @@ -22,7 +22,7 @@ - Search for a pattern in files matching a glob (e.g., `README.*`): -`rg {{pattern}} -g {{glob}}` +`rg {{pattern}} --glob {{glob}}` - Only list matched files (useful when piping to other commands): @@ -34,4 +34,4 @@ - Search a literal string pattern: -`rg -F {{string}}` +`rg --fixed-strings {{string}}`