From 8ca7b2af072e5b8dbafbf28ad00685225d6c9f5d Mon Sep 17 00:00:00 2001 From: tgfisher Date: Mon, 21 Oct 2024 00:10:09 -0700 Subject: [PATCH] docs: mention that inline comments are not supported in a filter-file --- docs/content/filtering.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/content/filtering.md b/docs/content/filtering.md index ffc898c25..c73e41f7b 100644 --- a/docs/content/filtering.md +++ b/docs/content/filtering.md @@ -505,6 +505,8 @@ processed in. Arrange the order of filter rules with the most restrictive first and work down. +Lines starting with # or ; are ignored, and can be used to write comments. Inline comments are not supported. _Use `-vv --dump filters` to see how they appear in the final regexp._ + E.g. for `filter-file.txt`: # a sample filter rule file @@ -512,6 +514,7 @@ E.g. for `filter-file.txt`: + *.jpg + *.png + file2.avi + - /dir/tmp/** # WARNING! This text will be treated as part of the path. - /dir/Trash/** + /dir/** # exclude everything else