Skip to content

Inconsistent rules for triggers #406

@RuinTD

Description

@RuinTD

Hello, I'm writing a program that uses Kagi's Bangs and tried to parse bangs.json using the format specified in the README, which notes that Trigger / t:

May contain letters, numbers, dashes (-), periods (.), and underscores (_). No spaces or other special characters.

However, I'm noticing several bangs that seem to break these "rules". I first noticed this with some entries that use other language characters, such as "Wikipedia (BG)" (!уики). Technically, the readme never specified English letters so I could forgive that. However, we also have "cplusplus.com" (!c++) and "Slashdot" (!/. and !./).

I'm thinking there should probably be checks to ensure each bang matches the "rules" in the readme. Those "rules" should probably also be relaxed. I was thinking that it should just be "Can't contain spaces, !, or @", but there is one rule using @ being "Facebook User Page" (!@fb, carried over from DDG bangs); but the "rules" could also just be "No spaces".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions