Skip to content

Commit f2ea430

Browse files
committed
Update man page for generalized string matching
1 parent 9d06c25 commit f2ea430

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

doc/mako.5.scd

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,8 @@ The following fields are available in criteria:
334334

335335
- _app-name_ (string)
336336
- _app-icon_ (string)
337-
- _summary_ (string): exact match on the summary of the notification. This
338-
field conflicts with _summary~_.
339-
- _summary~_ (string): a POSIX extended regular expression match on the summary
340-
of the notification. This field conflicts with _summary_.
341-
- _body_ (string): an exact match on the body of the notification. This field
342-
conflicts with _body~_.
343-
- _body~_ (string): a POSIX extended regular expression match on the body of
344-
the notification. This field conflicts with _body_.
337+
- _summary_ (string)
338+
- _body_ (string)
345339
- _urgency_ (one of "low", "normal", "critical")
346340
- _category_ (string)
347341
- _desktop-entry_ (string)
@@ -378,7 +372,19 @@ Quotes within quotes may also be escaped, and a literal backslash may be
378372
specified as \\\\. No spaces are allowed around the equal sign. Escaping equal
379373
signs within values is unnecessary.
380374

381-
Additionally, boolean values may be specified using any of true/false, 0/1, or
375+
All string fields except mode and output support additional operators != and ~=
376+
377+
- != indicates a non-match
378+
- ~= indicates a POSIX extended regular expression match
379+
380+
These string fields can also be specified as a bare word, which is equivalent to
381+
comparisons with the empty string:
382+
383+
\[summary\] \[summary!=""\]
384+
385+
\[!summary\] \[summary=""\]
386+
387+
Boolean values may be specified using any of true/false, 0/1, or
382388
as bare words:
383389

384390
\[actionable=true\] \[actionable=1\] \[actionable\]

0 commit comments

Comments
 (0)