mirror of
https://github.com/labwc/labwc.git
synced 2026-03-21 05:33:52 -04:00
docs: simplify description of shell wildcard patterns
...to align with glob(7) language Reported-by: @vyivel
This commit is contained in:
parent
5847508eb2
commit
8e3d5784a3
3 changed files with 7 additions and 5 deletions
|
|
@ -999,8 +999,9 @@ sandboxAppId="" type="" matchOnce="">*
|
||||||
Define a window rule for any window which matches the criteria defined
|
Define a window rule for any window which matches the criteria defined
|
||||||
by the attributes *identifier*, *title*, or *type*. If more than one
|
by the attributes *identifier*, *title*, or *type*. If more than one
|
||||||
is defined, AND logic is used, so all have to match.
|
is defined, AND logic is used, so all have to match.
|
||||||
Matching against patterns with '\*' (wildcard) and '?' (joker) is
|
Matching is case-insensitive and is performed using shell wildcard
|
||||||
supported. Pattern matching is case-insensitive.
|
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
|
*identifier* relates to app_id for native Wayland windows and WM_CLASS
|
||||||
for XWayland clients.
|
for XWayland clients.
|
||||||
|
|
|
||||||
|
|
@ -631,8 +631,9 @@
|
||||||
# - Criteria can also contain `matchOnce="true"` meaning that the rule
|
# - Criteria can also contain `matchOnce="true"` meaning that the rule
|
||||||
# must only apply to the first instance of the window with that
|
# must only apply to the first instance of the window with that
|
||||||
# particular 'identifier' or 'title'.
|
# particular 'identifier' or 'title'.
|
||||||
# - Matching against patterns with '*' (wildcard) and '?' (joker) is
|
# - Matching is case-insensitive and is performed using shell wildcard
|
||||||
# supported. Pattern matching is case-insensitive.
|
# patterns (see glob(7)) so '\*' (not between brackets) matches any string
|
||||||
|
# and '?' matches any single character.
|
||||||
|
|
||||||
<windowRules>
|
<windowRules>
|
||||||
<windowRule identifier="*"><action name="Maximize"/></windowRule>
|
<windowRule identifier="*"><action name="Maximize"/></windowRule>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include <stdbool.h>
|
#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.
|
* @pattern: Pattern to match against.
|
||||||
* @string: String to search.
|
* @string: String to search.
|
||||||
* Note: Comparison case-insensitive.
|
* Note: Comparison case-insensitive.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue