summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-11-16 09:55:07 +0100
committerCanop <cano.petrole@gmail.com>2022-11-16 09:55:07 +0100
commit96c1945fd2853cdc5841bd3cf840d9affbb31ded (patch)
tree06b476a597100697d33dc4ad9fa52b28be84a900
parent3f4659f44ce78da6dc29537c85623894b29c1157 (diff)
doc: add `rust&test` example (true story)
-rw-r--r--website/docs/navigation.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/website/docs/navigation.md b/website/docs/navigation.md
index 624eb7c..5734f89 100644
--- a/website/docs/navigation.md
+++ b/website/docs/navigation.md
@@ -60,12 +60,16 @@ To display only files containing `"memmap"`, type `c/memmap`:
Simple patterns can be composed with the `!`, `&` and `|` operators.
-For example, if you don't want to see files whose name ends in `"rs"`, you may type `!/rs$` (it's the negation of the `/rs$` regular expression).
+Examples:
-And if you want to see all files containing `"pattern"` but not the rust ones, you'll type `!rs&c/pattern`:
+If you don't want to see files whose name ends in `"rs"`, you may type `!/rs$` (it's the negation of the `/rs$` regular expression).
+
+If you want to see all files containing `"pattern"` but not the rust ones, you'll type `!rs&c/pattern`:
![composite](img/20200620-composite-notrs.png)
+If you're looking for a file whose name you don't remember exactly ("rust_test" ? "test-rust" ?), you may type `test&rust` meaning the name contains both "test" and "rust".
+
# More about searches
If you want to know more about the exact pattern syntax, see [reference](../input/#the-filtering-pattern).