skyjake/lagrange Issue #527: Feature request: Search keywords for the NavBar
2022-07-23 21:43:06 jakobi
Please add a keyword search feature to the navbar.
- *Usecase**: quick searches, such as using newswaffle to read a page from the old-web within gemini, without distractions.
I didn't quite have a pressing need for that features, but with newswaffle "search-engine" (aka cgi-script aka web-to-gemini-proxy, aka web-reader-mode for gemini :-) ), this has definitely changed.
- *Example use**: E.g. find a web link mentioned in the text, copy it, open a new tab, go to navbar, type a searchkeyword of your choice a space and paste the link (ok, ensure prefix https://, as newswaffle seems to require it). Lagrange is looking for the keyword and the associated search machine url, and replaces the %s in
`gemini://gemi.dev/cgi-bin/waffle.cgi/links?%s`
with the text after the keyword from the navbar, and displays the output for that modified url. Basically firefox or chrome keyword-search behaviour.
This is likely a generalization of [https://github.com/skyjake/lagrange/issues/157] (Issue 157). And it also permits to leave the global search engine unset, so you've navbar searches without leaking by accidental searches from the navbar: just unset the global search url in the preferences.
Optional extension would be to offer _context-menu search for highlighted words_ in one of the <top 5 or e.g. somehow flagged search engines from the search engine table>, again similar to firefox.
Thx,
Peter