summaryrefslogtreecommitdiffstats
path: root/website/docs/input.md
diff options
context:
space:
mode:
Diffstat (limited to 'website/docs/input.md')
-rw-r--r--website/docs/input.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/docs/input.md b/website/docs/input.md
index 89a3cfd..7a63bd7 100644
--- a/website/docs/input.md
+++ b/website/docs/input.md
@@ -50,7 +50,7 @@ The caracters you use as operators and the parenthesis can be useful in patterns
Most often you'll just type what feels natural and broot will select the interpretation which makes sense but you might be interested in a few rules:
-* parenthesis and operators in the second pattern part (parts being separated by `/`) are part of the pattern, which explains why `/(json|xml)` is interpreted as a regular expression. If you want to do a fuzzy search for a `|` in the name of your files, you'll need to have an explicit pattern mode : `nf/a|b` because `a|b` would search for files whose name contains either `a` or `b`. And to ensure an operator or closing parenthesis isn't interpreted as part of your pattern, just close it with a `/`.
+* parenthesis and operators in the second pattern part (parts being separated by `/`) are part of the pattern, which explains why `/(json|xml)` is interpreted as a regular expression. If you want to do a fuzzy search for a `|` in the name of your files, you'll need to either escape it as `\|` or to have an explicit pattern mode : `nf/a|b` because `a|b` would search for files whose name contains either `a` or `b`. And to ensure an operator or closing parenthesis isn't interpreted as part of your pattern, just close it with a `/`.
* broot interprets the left operand before the right one and doesn't interpret the second one if it's not necessary. So if you want to search your whole disk for json files containing `abcd`, it will be faster to use `/json$/&c/abcd` rather than `c/abcd/&/json$/` which would look at the file name only after having scanned the content.
## The verb invocation