core: add support for sign text transformations

Add support for regexp replacement patterns, which can be useful when
the text matched by --sign-filter or --sign-prefix should not be
displayed.
This commit is contained in:
Matthias Schiffer 2024-01-26 22:34:41 +01:00
parent a99a734df8
commit 8a1a26c13c
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 71 additions and 2 deletions

View file

@ -75,6 +75,12 @@ All prefixes and filters are applied to the front and back text separately, but
both the front and the back text will be shown in the popup when one of them
matches.
Finally, `--sign-transform` allows to specify sed-style replacement patterns to
modify the text displayed on the map. This can be used if the text matched by
`--sign-prefix` or `--sign-filter` should not be displayed:
`--sign-filter 's/\[Map\]//'` would replace each occurence of "\[Map\]" with
the empty string.
## Installation
Binary builds of the map generator for Linux and Windows, as well as an archive