by zzyzxd · 5y ago · 0 comments
Check query result -> realize the result is bad -> scroll back to the search bar -> place cursor at the beginning of the query -> enter "!g" -> redirect to Google.com
It is not too bad on desktop, but doing it once on a smartphone is more than enough to push me to switch back to Google.
So I just prepend based on what I'm searching for to begin with instead of after a failure. But I've also been using duckduckgo as my default for over a decade so I've gotten used to it.
command ddgGoogleBang composite js (new URLSearchParams(window.location.search)).get('q') + ' !g' | urlmodify_js -q q | open / <c-e> !g <enter>