Neamar / KISS

Lightning fast, open-source, < 250kb Android launcher
https://kisslauncher.com/
GNU General Public License v3.0
2.96k stars 580 forks source link

Auto launch if only one search result #1751

Closed DmitryRife closed 3 years ago

DmitryRife commented 3 years ago

Please, add auto launch if only one search result is found. For example, you type "wh" and there is only whatsapp is found, and you don't need to tap enter key to open this app. It is implemented in FAST App Search Tool (F-Droid, Google play), design is bad, but you can see example (check in settings).

DhruvaSambrani commented 3 years ago

I'd suggest strongly against it, as it will collide with search results.

Suppose I am searching for "where is australia", the second I type wh, it will open whatsapp. As an equivalent workaround, just type in your app choice, and press enter, the first result is selected automatically anyway

DmitryRife commented 3 years ago

Sorry, I forgot to mention that it can be useful in case of a disabled web search. In this case, I think it will be better, because you don't even have to look at the search string, you just do it automatically

DhruvaSambrani commented 3 years ago

But what if I type in wa instead of wh and it opens Water Reminder instead of Whatsapp? Isn't it a hassle if you make a mistake? Hence, if typing wh and hitting the "Enter" key (technically the search key on the keyboard), is anyway a fast enough solution, then why add an extra feature which confuses people? KISS, after all 😅

DhruvaSambrani commented 3 years ago

I think at https://github.com/Neamar/KISS/blob/24d187c69ee820d7d81ea032d834377abc469ada/app/src/main/java/fr/neamar/kiss/searcher/Searcher.java#L99

you'd do


// as original
} else if(this.processedPojos.length() == 1 && this.processedPojos.get(0) instanceof AppPojo ) {
    Result.fromPojo(activity, this.processedPojos.get(0)).doLaunch(...);
} else {
// as original
Wendigogo commented 3 years ago

But what if I type in wa instead of wh and it opens Water Reminder instead of Whatsapp? Isn't it a hassle if you make a mistake? Hence, if typing wh and hitting the "Enter" key (technically the search key on the keyboard), is anyway a fast enough solution, then why add an extra feature which confuses people? KISS, after all 😅

If you type 'wa' KISS will shown both Whatsapp and Water reminder, won't it? So in that case autolaunch shouldn't be enabled. The same should apply if Internet search is enabled: once more than one result is available autolaunch is disabled. I guess it's what your latest post does but I'm not sure. ^_^

Anyway, typing 'wa' then enter/search keyboard key is amazingly fast. I never could go back to something else. 😅

Neamar commented 3 years ago

See https://github.com/Neamar/KISS/issues/555 where this was discussed and tested :)

fmatheus commented 1 year ago

I agree with @DhruvaSambrani that it collides with search results. So to turn on Auto Launch should turn off Web Search. Or put it after a extra keyword, as the search provider name. (e.g. type github olaucher to search github for olauncher). I would like to participate as interaction designer (UX) of the auto launch feature. I think KISS is well positioned to provide a superb search based navigation like the great OLauncher! I suggest we consider Olauncher default behavior to inspire KISS Auto Launch. but kiss could bring it further that only open apps (e.g. call mom; text Neamar; and maybe personalized commands with action providers).

Neamar commented 1 year ago

Hello,

We already tested this in #555 and it was... really weird, and hard to use. A single typo started the wrong app, that was pretty frsutrating