[GH-ISSUE #404] [BUG] DDG style bangs should support bang at the end #268

Closed
opened 2026-02-25 20:35:18 +03:00 by kerem · 3 comments
Owner

Originally created by @agg23 on GitHub (Aug 27, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/404

Originally assigned to: @vacom13 on GitHub.

Describe the bug
DuckDuckGo allows the user to specify bangs at either the start or the end of a custom command, as long as the short form is used: !g or g!. It would be nice if we had the same functionality here.

Originally created by @agg23 on GitHub (Aug 27, 2021). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/404 Originally assigned to: @vacom13 on GitHub. **Describe the bug** DuckDuckGo allows the user to specify bangs at either the start or the end of a custom command, as long as the short form is used: `!g` or `g!`. It would be nice if we had the same functionality here.
kerem 2026-02-25 20:35:18 +03:00
Author
Owner

@Albonycal commented on GitHub (Aug 29, 2021):

Huh.. yea.. I tried to use that but it didn't work... This will be very useful

<!-- gh-comment-id:907830753 --> @Albonycal commented on GitHub (Aug 29, 2021): Huh.. yea.. I tried to use that but it didn't work... This will be very useful
Author
Owner

@dalf commented on GitHub (Aug 31, 2021):

In searx, DDG bangs are implemented as a trie:

Raw idea: it can be an external package, so different projects can use it.

<!-- gh-comment-id:909084797 --> @dalf commented on GitHub (Aug 31, 2021): In searx, DDG bangs are implemented as a trie: * https://github.com/searx/searx/blob/master/searx/data/external_bangs.json * https://github.com/searx/searx/blob/master/searx/external_bang.py * https://github.com/searx/searx/blob/master/searx_extra/update/update_external_bangs.py Raw idea: it can be an external package, so different projects can use it.
Author
Owner

@vacom13 commented on GitHub (Oct 25, 2021):

Hey @benbusby I would like to work on this.

<!-- gh-comment-id:950994439 --> @vacom13 commented on GitHub (Oct 25, 2021): Hey @benbusby I would like to work on this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#268
No description provided.