Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
bangin – a primitive, portable shell script which enables DuckDuckGo-like bangs (github.com/samhh)
4 points by samhh on Sept 17, 2020 | hide | past | favorite | 1 comment


Hello, author here.

The idea came to me yesterday as I wanted to use a bang for ProtonDB. I didn't fancy waiting around for it to be added to DDG following submission, and that led me to ponder the other harms of this really useful feature being locked behind DDG's service.

In theory, with the script being so simple and working on the basis of mere input and output, it should be easy to write other tooling around it, which I've briefly touched upon in the README.

The shell script is extremely simple, but anyone with experience in writing them might be able to spot problems with it, please do let me know if you do.

I'm unsure about how best to package banglists. One option would be to provide a config file with a list of lists, a bit like you do with some adblocking software, but that'd presumably require some sort of intransience.

Anyway, feedback welcome!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: