That's exactly what I was thinking of
Personalised bangs
being able to use custom bangs, by giving our own query urls (e.g https://mysite.com/search?q=%s
). Google chrome has something similar to this to add custom search engines
!g
is really strong in my muscle memory, so I keep ending up on the site I wanted to get away from. It's like a toxic relationship.
I'd love a setting that behaves like sl
in the terminal. Just give me some negative reinforcement when I use !g
.
- Perhaps it could rick roll me?
- Send me to prehistoric Google?
- Block Kagi until I type "I will not use !g again. I will not use !g again." and so on 20 times?
- Add a 10-second delay before redirecting so I can reflect on my shortcomings?
This is a cute idea.
This is what custom scripts are for.
@insomnia-creator Nice, there are custom scripts as well as custom CSS? Or do you mean userscripts like tamper monkey? I've written a few but not sure how I'd write one to catch that from Firefox's location bar.
We have discussed adding a feature for enabling users to add custom bangs.
I think if you wanted this, you could simply create a bang that would override the stock !g
to just go back to Kagi, or something else.
- Edited
insomnia-creator This is what custom scripts are for.
But this assumes users have the knowledge to write the script.
Exactly! But the things the suggestion is too wacky for it to be a mainstream features.
The 'punishments' are for custom scripts.
Everything else is for custom bangs.
I have something tangentially related, I often work with Julia (a programming language), and would like to use !jl to search the docs. However, this leads me to search John Lewis. Having personalised bangs with ability to overwrite the default would allow me to change to something more suitable for me.
This feature is live and found under More: menu in results
Customize -> Add Shortcut
Looking forward to feedback.
- Edited
Thank you, I've been looking forward to this!
Three bits of feedback
I would never have thought to look for this under "More... Customize...". Now I know it's there, it makes sense, and I understand why it's there but I don't think it's discoverable
I can see myself adding a lot of these, which could get unweildy if the only place to add them is under a dropdown menu. Personally I would have preferred to have them on their on page similar to Lenses
Setting up my first one, I used a put the bang symbol in the shortcut, like "!dek" when it was expecting "dek". The bang just didn't work. I deduced what my mistake was and went back to change it, but maybe Kagi could automatically strip the bang symbol so it works. I assume this will be a common mistake for first time users.
And one positive: I love the way it pre-fills existing DDG bangs. Genius.
Setting up my first one, I used a put the bang symbol in the shortcut, like "!dek" when it was expecting "dek". The bang just didn't work. I deduced what my mistake was and went back to change it, but maybe Kagi could automatically strip the bang symbol so it works. I assume this will be a common mistake for first time users.
Hi there - this is a bug, we do indeed intend to take care of this for you
I can repro this - we'll see whats up and get a fix out.
Finally!
I'm still testing the feature but one thing I noted is the button "edit", it's confusing and can be easily replaced by a simple "save" (the yellow helps though).