]> git.mdlowis.com Git - proto/labwc.git/commitdiff
docs: simplify description of shell wildcard patterns
authorJohan Malm <jgm323@gmail.com>
Sun, 1 Dec 2024 16:35:57 +0000 (16:35 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 1 Dec 2024 19:17:04 +0000 (20:17 +0100)
...to align with glob(7) language

Reported-by: @vyivel
docs/labwc-config.5.scd
docs/rc.xml.all
include/common/match.h

index 878ab60b8f32781744556958255ac78ed5973887..aabfb8ab6c1f81e150bbbdb7421ca69ec0ce5a24 100644 (file)
@@ -999,8 +999,9 @@ sandboxAppId="" type="" matchOnce="">*
        Define a window rule for any window which matches the criteria defined
        by the attributes *identifier*, *title*, or *type*. If more than one
        is defined, AND logic is used, so all have to match.
-       Matching against patterns with '\*' (wildcard) and '?' (joker) is
-       supported. Pattern matching is case-insensitive.
+       Matching is case-insensitive and is performed using shell wildcard
+       patterns (see glob(7)) so '\*' (not between brackets) matches any string
+       and '?' matches any single character.
 
        *identifier* relates to app_id for native Wayland windows and WM_CLASS
        for XWayland clients.
index addb03d4711b2dea05825285163d5a92061b760e..ae66fe4c29315cacf8717a8635b1546883d027a7 100644 (file)
     #   - Criteria can also contain `matchOnce="true"` meaning that the rule
     #     must only apply to the first instance of the window with that
     #     particular 'identifier' or 'title'.
-    #   - Matching against patterns with '*' (wildcard) and '?' (joker) is
-    #     supported. Pattern matching is case-insensitive.
+    #   - Matching is case-insensitive and is performed using shell wildcard
+    #     patterns (see glob(7)) so '\*' (not between brackets) matches any string
+    #     and '?' matches any single character.
 
     <windowRules>
       <windowRule identifier="*"><action name="Maximize"/></windowRule>
index 477f1adef9ebf10d0ae8a072cee35d1a742c79ae..294319c79c60f650a43884bebeaee06f8cb4e892 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdbool.h>
 
 /**
- * match_glob() - Pattern match using '*' wildcards and '?' jokers.
+ * match_glob() - Pattern match using shell wildcard rules (see glob(7))
  * @pattern: Pattern to match against.
  * @string: String to search.
  * Note: Comparison case-insensitive.