From 7df417c963ebdb0693dc73d59c200563431b02e1 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Tue, 4 Nov 2025 10:05:12 +0200 Subject: [PATCH] *: remove usage of archaic "foobar" (#19123) Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/ag.md | 26 +++++++++++++------------- pages/common/csvtool.md | 4 ++-- pages/common/docker-node.md | 2 +- pages/common/ngrok.md | 2 +- pages/common/pdfgrep.md | 4 ++-- pages/common/piper.md | 2 +- pages/common/z.md | 22 +++++++++++----------- pages/common/zoxide.md | 8 ++++---- pages/osx/pbpaste.md | 2 +- pages/osx/textutil.md | 14 +++++++------- 10 files changed, 43 insertions(+), 43 deletions(-) diff --git a/pages/common/ag.md b/pages/common/ag.md index aa074de346..d591721345 100644 --- a/pages/common/ag.md +++ b/pages/common/ag.md @@ -3,30 +3,30 @@ > The Silver Searcher. Like `ack`, but aims to be faster. > More information: . -- Find files containing "foo", and print the line matches in context: +- Find files containing `string`, and print the line matches in context: -`ag foo` +`ag string` -- Find files containing "foo" in a specific directory: +- Find files containing `string` in a specific directory: -`ag foo {{path/to/directory}}` +`ag string {{path/to/directory}}` -- Find files containing "foo", but only list the filenames: +- Find files containing `string`, but only list the filenames: -`ag {{[-l|--files-with-matches]}} foo` +`ag {{[-l|--files-with-matches]}} string` -- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line: +- Find files containing `STRING` case-insensitively, and print only the match, rather than the whole line: -`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} FOO` +`ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} STRING` -- Find "foo" in files with a name matching "bar": +- Find `string` in files with a name matching `file_name`: -`ag foo {{[-G|--file-search-regex]}} bar` +`ag string {{[-G|--file-search-regex]}} file_name` - Find files whose contents match a `regex`: -`ag '{{^ba(r|z)$}}'` +`ag '{{^ca(t|r)$}}'` -- Find files with a name matching "foo": +- Find files with a name matching `string`: -`ag {{[-g|--filename-pattern]}} foo` +`ag {{[-g|--filename-pattern]}} string` diff --git a/pages/common/csvtool.md b/pages/common/csvtool.md index 8928b45f1a..a92c7c27b7 100644 --- a/pages/common/csvtool.md +++ b/pages/common/csvtool.md @@ -11,9 +11,9 @@ `csvtool {{[-c|--column]}} {{2,4}} {{path/to/file.csv}}` -- Extract lines from a CSV file where the second column exactly matches `Foo`: +- Extract lines from a CSV file where the second column exactly matches `String`: -`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^Foo$}}' {{path/to/file.csv}}` +`csvtool {{[-c|--column]}} {{2}} {{[-s|--search]}} '{{^String$}}' {{path/to/file.csv}}` - Extract lines from a CSV file where the second column starts with `Bar`: diff --git a/pages/common/docker-node.md b/pages/common/docker-node.md index daedd61dff..8511be4309 100644 --- a/pages/common/docker-node.md +++ b/pages/common/docker-node.md @@ -29,4 +29,4 @@ - Update metadata about a node, such as its availability, labels, or roles: -`docker node update --{{availability|role|label-add|...}} {{active|worker|foo|...}} {{node1}}` +`docker node update --{{availability|role|label-add|...}} {{active|worker|...}} {{node1}}` diff --git a/pages/common/ngrok.md b/pages/common/ngrok.md index 714d9eb9ce..2211450a83 100644 --- a/pages/common/ngrok.md +++ b/pages/common/ngrok.md @@ -9,7 +9,7 @@ - Expose a local HTTP service on a specific host: -`ngrok http {{foo.dev}}:{{80}}` +`ngrok http {{example.com}}:{{80}}` - Expose a local HTTPS server: diff --git a/pages/common/pdfgrep.md b/pages/common/pdfgrep.md index 41eba40a64..9df4febeb2 100644 --- a/pages/common/pdfgrep.md +++ b/pages/common/pdfgrep.md @@ -11,9 +11,9 @@ `pdfgrep {{[-H|--with-filename]}} {{[-n|--page-number]}} {{pattern}} {{file.pdf}}` -- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches: +- Do a case-insensitive search for lines that begin with `file_name` and return the first 3 matches: -`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^foo}}' {{file.pdf}}` +`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} '{{^file_name}}' {{file.pdf}}` - Find pattern in files with a `.pdf` extension in the current directory recursively: diff --git a/pages/common/piper.md b/pages/common/piper.md index 2151d6f5c7..a62a5ce411 100644 --- a/pages/common/piper.md +++ b/pages/common/piper.md @@ -22,4 +22,4 @@ - Speak twice as fast, with huge gaps between sentences: -`echo {{Speaking twice the speed. With added drama!}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}` +`echo {{Speaking twice the speed. With added drama!}} | piper -m {{file.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}` diff --git a/pages/common/z.md b/pages/common/z.md index 29aea3525d..b3b0b8b4c8 100644 --- a/pages/common/z.md +++ b/pages/common/z.md @@ -3,25 +3,25 @@ > Tracks the most used (by frequency) directories and enables quickly navigating to them using string patterns or `regex`. > More information: . -- Go to a directory that contains "foo" in the name: +- Go to a directory that contains `string` in the name: -`z {{foo}}` +`z string` -- Go to a directory that contains "foo" and then "bar": +- Go to a directory that contains `string1` and then `string2`: -`z {{foo}} {{bar}}` +`z string1 string2` -- Go to the highest-ranked directory matching "foo": +- Go to the highest-ranked directory matching `string`: -`z -r {{foo}}` +`z -r string` -- Go to the most recently accessed directory matching "foo": +- Go to the most recently accessed directory matching `string`: -`z -t {{foo}}` +`z -t string` -- List all directories in `z`'s database matching "foo": +- List all directories in `z`'s database matching `string`: -`z -l {{foo}}` +`z -l string` - Remove the current directory from `z`'s database: @@ -29,4 +29,4 @@ - Restrict matches to subdirectories of the current directory: -`z -c {{foo}}` +`z -c {{string}}` diff --git a/pages/common/zoxide.md b/pages/common/zoxide.md index 470eca872c..ed4856d435 100644 --- a/pages/common/zoxide.md +++ b/pages/common/zoxide.md @@ -4,13 +4,13 @@ > Uses a ranking algorithm to navigate to the best match. > More information: . -- Go to the highest-ranked directory that contains "foo" in the name: +- Go to the highest-ranked directory that contains `string` in the name: -`zoxide query {{foo}}` +`zoxide query string` -- Go to the highest-ranked directory that contains "foo" and then "bar": +- Go to the highest-ranked directory that contains `string1` and then `string2`: -`zoxide query {{foo}} {{bar}}` +`zoxide query string1 string2` - Start an interactive directory search (requires `fzf`): diff --git a/pages/osx/pbpaste.md b/pages/osx/pbpaste.md index 2c64eb0336..4f0b727b59 100644 --- a/pages/osx/pbpaste.md +++ b/pages/osx/pbpaste.md @@ -10,4 +10,4 @@ - Use the contents of the clipboard as input to a command: -`pbpaste | grep foo` +`pbpaste | {{grep search_string}}` diff --git a/pages/osx/textutil.md b/pages/osx/textutil.md index 3b6410a137..31724ed814 100644 --- a/pages/osx/textutil.md +++ b/pages/osx/textutil.md @@ -3,21 +3,21 @@ > Manipulate text files of various formats. > More information: . -- Display information about `foo.rtf`: +- Display information about `file.rtf`: -`textutil -info {{path/to/foo.rtf}}` +`textutil -info {{path/to/file.rtf}}` -- Convert `foo.rtf` into `foo.html`: +- Convert `file.rtf` into `file.html`: -`textutil -convert {{html}} {{path/to/foo.rtf}}` +`textutil -convert html {{path/to/file.rtf}}` - Convert rich text to normal text: -`textutil {{path/to/foo.rtf}} -convert {{txt}}` +`textutil {{path/to/file.rtf}} -convert txt` -- Convert `foo.txt` into `foo.rtf`, using Times 10 for the font: +- Convert `file.txt` into `file.rtf`, using Times 10 for the font: -`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{path/to/foo.txt}}` +`textutil -convert rtf -font Times -fontsize 10 {{path/to/file.txt}}` - Load all RTF files in the current directory, concatenates their contents, and writes the result out as `index.html` with the HTML title set to "Several Files":