pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
232 stars 48 forks source link

feat(pop_shell): add config with window name/description search scope #159

Closed canadaduane closed 1 year ago

canadaduane commented 1 year ago

This adds an optional config.ron file to the pop_shell plugin and allows users to configure what desktop window attributes they want searched (e.g. window title and/or window description).

For example, I prefer the window name not to be searched, because it's often a web page that has set the title of the window (e.g. in Chromium). Because window items in the launcher list always sort above desktop apps, these active window HTML pages can get in the way of fast/memory muscle launcher usage.

My config is as follows (~/.local/share/pop-launcher/plugins/pop_shell/config.ron):

(
    search: (name: false, description: true),
)

With the above config, even if I'm on a google search page for xournal++, typing xou into pop-launcher will always load my desktop app, "Xournal++", even if a Chromium HTML page has set the title to "Xournal++ Search Results". (Typing "chro", however, would still switch to Chromium).

The default remains as it was, effectively:

(
    search: (name: true, description: true),
)

Fixes #152