Lenses don't trigger correctly, and the symptoms look like an off by 1 error.
- Start with no lenses defined.
- Define a new lens "Hacker News", "news.ycombinator.com", bang = "l1"
- Perform search "!l1 test". Searches uses query string "https://kagi.com/search?l=1&q=test", however no lenses are selected and the results are equal to the same search with no lens.
- Add another lens "Reddit", "reddit.com", bang = "l2"
- Perform search "!l2 test". Query string becomes "https://kagi.com/search?l=1&q=test". Searches reddit for "test". Behaves as expected.
- Perform search "!l1 test." Does the exact same query string and search as "!l2 test", where it searches reddit, not hacker news.
- Delete all lenses.
- Create a new lens "Fake", "kagifeedback.org", bang = "fake".
- Recreate the Reddit and Hacker News lenses exactly as before after the Fake lens exists. So the lenses in order should be Fake (!fake), Hacker News (l1), Reddit (l2).
- Perform search "!fake test". Query string becomes "https://kagi.com/search?l=1&q=test", searches using the Hacker News lens.
- Perform search "!l1 test." Query string becomes "https://kagi.com/search?l=1&q=test", searches using the Hacker News lens.
- Perform search "!l2 test." Query string becomes "https://kagi.com/search?l=2&q=test", searches using the Reddit lens.
- If you manually select the fake lens to search and use no bang, it searches kagifeedback.org as expected and uses query string "https://kagi.com/search?q=test&l=0".
So basically, it is like the first lens created doesn't work, and if you have more than one lens an attempt to use the first on in the list points at the second one instead. But if you make a fake lens that you don't actually use, then the ones after that seem to work as expected.
I expected lenses to work as defined with their associated bangs.