meli/src/conf
Manos Pitsidianakis 3e31c46a74
Add "regexp" feature, format text with regexps
`regexp` feature uses the pcre2 library to enable the user to define
regular expressions for matching text and applying text formatting to
the matches. An example from the theme configuration I used to test
this:

  [terminal.themes.win95.text_format_regexps]
  "listing.subject" = { "\\[[^\\]]*\\]" = { attrs = "Bold" } }
  "listing.from" = { "\\<[^\\>]*\\>(?:(?:\\s*$)|(?=,))" = { attrs = "Italics" } }

  [terminal.themes.win95.text_format_regexps."pager.envelope.body"]
  "^>.*$" = { attrs = "Italics" }
  "\\d+\\s?(?:(?:[KkMmTtGg]?[Bb])|(?:[KkMmTtGg][Bb]?)(?=\\s))" = { attrs = "Bold | Underline" }
2020-06-05 10:56:36 +03:00
..
accounts.rs Execute user shell commands with /bin/sh 2020-05-28 21:02:49 +03:00
composing.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
listing.rs Move Query to melib 2020-04-05 15:57:05 +03:00
notifications.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
pager.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
pgp.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
shortcuts.rs Remove fnv crate 2020-05-10 21:18:56 +03:00
tags.rs Add conf_override! macro 2020-03-18 19:13:07 +02:00
terminal.rs themes: Rename Theme struct to Themes 2020-06-02 18:31:07 +03:00
themes.rs Add "regexp" feature, format text with regexps 2020-06-05 10:56:36 +03:00