feat: implement bangs #13
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "ChaoticCreature/asklyphe:develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's been over a year since I've use rust so please let me know if I've made any terrible mistakes or if you want me to make any other changes.
I tried to implement bangs as close to the functionality provided by both duckduckgo and waterfox with multiple aliases for one website, only redirecting to & removing the first bang encountered, removing extra spaces surrounding the bangs, etc.
it should be pretty simple to extend with new bangs and not require a massive refactor to eventually implement a settings menu with toggles/creating new ones.
The key in the hashmap is the vanity name/whatever it's called that could be used in some future settings menu list, but for now it's useless
epic demonstration video:
https://forge.voremicrocomputers.com/attachments/5cf6a844-1f0c-4233-9675-af09459d9140
I spent too long thinking and now I'm not sure if it's really a good idea to use the hashmap and if I should instead use a Vec & include the name in the struct/remove it and add it back if needed.
If you think that would be better I can change it :3
@husky Pls review when u have time, lyphe would become so much more bangin' if this was merged :3
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.