Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Custom web search engines #4382

Open
victor-marino opened this issue May 13, 2024 · 1 comment
Open

[FEATURE] Custom web search engines #4382

victor-marino opened this issue May 13, 2024 · 1 comment

Comments

@victor-marino
Copy link

victor-marino commented May 13, 2024

Describe the feature

It would be great if we could add any custom search engine (and not just Startpage) using normal search strings. Bonus points for search suggestions too.

This search engine should be used in any screen where Lawnchair itself offers an online search option directly to the user. E.g.: when you use the app search option, we could see "Search on Kagi" instead of "Search on Startpage".

Additional tweaks:

  • Option to always search the web when pressing enter in the app drawer search
  • Option to add 2-3 trailing shortcuts to the search widget

Why would it be useful to add?

Right now, all search options are hardcoded in the app, and there's a tight coupling between offline search, online search and the web browser where the results will be opened. These things should be decoupled whenever possible.

For instance, if one wants to use DuckDuckGo as their search engine, they also have to use their custom app & web browser, and lose the nice-looking local app search of Lawnchair.

Also, there's simply no way to use search engines that don't have an app, such as Kagi. Even choosing Startpage as the search engine means the search bar will no longer have any local search functionality.

At the same time, because there's a huge amount of search engines and everybody has their own preference, it's not realistic to expect the Lawnchair team to keep up and manually integrate every single option. There will always be unsatisfied users.

Did the feature exist in Lawnchair v2? (Play Store version)

No

Example(s)

My proposal would be something like this:

  1. Add a new app-wide setting, independent from the search widget settings (as the user may not necessarily be using the Lawnchair widget), that allows you to define your preferred web search engine.
  2. The search engine should be defined through regular search strings. Example:
Search: https://kagi.com/search?q=%s
Suggestions: https://kagi.com/api/autosuggest?q=%s
  1. From now on, this will be the search engine used anywhere where Lawnchair itself offers a web search option directly to the user, such as the app drawer search (Lawnchair obviously cannot control what is offered inside third party search apps).

Let me know what you think!

Additional context

No response

@victor-marino victor-marino changed the title [FEATURE] Custom web search engines and other search improvements [FEATURE] Custom web search engines May 13, 2024
@squidds
Copy link

squidds commented May 19, 2024

I really want to switch to Lawnchair from Nova, this is the only thing holding me back. There is no alternative search bar to use, either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants