From 96c1945fd2853cdc5841bd3cf840d9affbb31ded Mon Sep 17 00:00:00 2001 From: Canop Date: Wed, 16 Nov 2022 09:55:07 +0100 Subject: doc: add `rust&test` example (true story) --- website/docs/navigation.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'website/docs') 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). -- cgit v1.2.3