bayashi / irir

A filter to add colors for text lines generically from a YAML configuration file easily

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New config syntax: Matches

bayashi opened this issue · comments

This is proposal of new matcher. Hoping to write or conditions at one match value with new type matches

- type: matches
  match: "info|debug"
  color: cyan
  target: word

Above case will color words on "info" or "debug".

  • match_either: if a line match a word either, then colorize all matched words or line
  • match_all: if a line match all words, then colorize all words or line
- type: match_either
  matches:
    - "info"
    - "debug"
  color: cyan
  target: word

Adding matches property for multiple matching conditions.