daniellandau / switcher

Gnome Shell extension to switch windows quickly by typing
GNU General Public License v3.0
352 stars 43 forks source link

Remember keyword<->result frequency #154

Open stavfx opened 2 years ago

stavfx commented 2 years ago

Would it be possible for Switcher to "remember" that when I searched for "ch" last time I chose to activate "Chrome" so it'll bubble it up to be the first option? This is kinda how Alfred works on mac and you can "train" it by manually selecting a specific application a few times. This way we can have stable results (e.g. Alfred now remembers "s" means Slack but "sl" means Sleep)

daniellandau commented 2 years ago

There's some scoring already for launching apps, but it isn't dependent on the search phrase so it only learns that you prefer some commonly used application to another that matches but that you don't actually want. https://github.com/daniellandau/switcher/blob/master/modes/launcher.js