Currently if you have a url that is in the json bang files and you want multiple triggers for it
for ex:
[
{
"s": "Google Maps",
"d": "maps.google.com",
"t": "gmap",
"u": "https://maps.google.com/maps?q={{{s}}}",
"c": "Online Services",
"sc": "Google"
},
{
"s": "Google Maps",
"d": "maps.google.com",
"t": "gmaps",
"u": "https://maps.google.com/maps?q={{{s}}}",
"c": "Online Services",
"sc": "Google"
}
]
then you have to have two entries like that.
To make your JSON structure more concise, you could consolidate the two "t"
values into an array. This way, you don't need to repeat the entire object but can still specify multiple tags.
Here’s how it would look:
[
{
"s": "Google Maps",
"d": "maps.google.com",
"t": ["gmap", "gmaps"],
"u": "https://maps.google.com/maps?q={{{s}}}",
"c": "Online Services",
"sc": "Google"
}
]
I think this could make the json files much smaller but also just make it all more readable
NOTE:
this will break from the normal DDG schema, so make sure to really mention that in the readme of the bangs repo that it is NOT the same schema anymore