pop-os / cosmic-launcher

WIP
GNU General Public License v3.0
103 stars 53 forks source link

[Request] Customize result order #204

Open patrulhasirius opened 1 week ago

patrulhasirius commented 1 week ago

Coming from launchers like rofi, I would like to be able to put the open apps last on results or even remove them, as i'm used to just typing the app name and clicking enter to launch. Is this type of configuration planned?

wash2 commented 1 week ago

By default the priority for open apps is high, but you could override it not to be. Similarly, you could make the priority for the desktop entries plugin high. https://github.com/pop-os/launcher/blob/master/plugins/src/cosmic_toplevel/plugin.ron

patrulhasirius commented 1 week ago

Interesting, so at the moment this would need sudo to modify the files and can't be customized via .config, right?

wash2 commented 1 week ago

Interesting, so at the moment this would need sudo to modify the files and can't be customized via .config, right?

No it can be customized without sudo. https://github.com/pop-os/launcher has more details, but just plugins="calc desktop_entries files find pop_shell pulse recent scripts terminal web" install will install the listed plugins to your User-local plugins: ~/.local/share/pop-launcher/plugins/{plugin}/

patrulhasirius commented 1 week ago

That's not the case when installing from repos, correct?

wash2 commented 1 week ago

You can still override them by installing this way. It takes highest priority. See the docs for https://github.com/pop-os/launcher/blob/476a8fb44564b7075adf2c3b74bad758f6582747/service/src/plugins/external/load.rs#L14 Maybe I've misunderstood your question though?