You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose a new feature for custom linkification filters.
Imagine the pattern (?P<project>[A-Z]+)#(?P<issue>[0-9]+), this will for example generate project=MMB and issue=123 for the input MMB#123.
What I would like to do now is to map the project to an url, but the mapping is not one to one because MMB is an abbreviation for MeasurementModuleBase and we need the full name to be able to link into our gitlab.
Of course I could just add one pattern for every project, in this case for example MMB#(?P<issue>[0-9]+), but we have quite a lot of projects (about 50) and it would be nice to just provide Zulip with a "translation map", for example in a single text field accepting a map in json format, which is then applied to the project variable before it is handed to the url format string.
Here is an example how the json input could look like:
I would like to propose a new feature for custom linkification filters.
Imagine the pattern
(?P<project>[A-Z]+)#(?P<issue>[0-9]+)
, this will for example generateproject=MMB
andissue=123
for the inputMMB#123
.What I would like to do now is to map the project to an url, but the mapping is not one to one because
MMB
is an abbreviation forMeasurementModuleBase
and we need the full name to be able to link into our gitlab.Of course I could just add one pattern for every project, in this case for example
MMB#(?P<issue>[0-9]+)
, but we have quite a lot of projects (about 50) and it would be nice to just provide Zulip with a "translation map", for example in a single text field accepting a map in json format, which is then applied to theproject
variable before it is handed to the url format string.Here is an example how the json input could look like:
This idea was first presented here: https://chat.zulip.org/#narrow/stream/9-issues/topic/Linkification.20filter.20replacement.20maps
Best regards
Seddy
The text was updated successfully, but these errors were encountered: