klorenz / gnome-shell-window-search-provider

Gnome Shell Extension for 3.16+, (maybe lower) to search for current windows using fuzzy search or regex
MIT License
22 stars 2 forks source link

Window Search Provider

Find your current open windows with gnome shell search :)

This is something I ever wanted to have again since I used compiz' windows matching in expose mode.

So here it is: You can search current open windows using gnome search. Type windows key, then start typing to find your window. It will fuzzy-match application name and window title like you might know from Sublime Text or Atom. Current algorithm does not yet order the matches by best score.

If you start your search with a "/", it will interprete all search terms (separated by whitespace) as regular expressions, which have to match all.

This extension was inspired by https://github.com/daniellandau/switcher/

Features

Preferences

Preferences file is read, whenever you enable the extension.

There is some rudimentary preference support now. For simplicity, this reads prefs from a JSON file prefs.json in following order. The first existing is taken:

What you can configure:

{
  "searchPrefix": ["kw", "p"],
  "useAppInfo": true,
  "debug": false
}

Installation

You can install this extension from https://extensions.gnome.org or simply clone this repository into your extension folder:

  $ cd ~/.local/share/gnome-shell/extensions
  $ git clone https://github.com/klorenz/gnome-shell-window-search-provider.git window-search-provider@quelltexter.org
  $ gnome-shell-extension-tool -e "window-search-provider"

You can also download a zip of this repo and install using Gnome Tweak Tool.

Screenshots

Match all windows containing (case insensitive) characters "e" "x" "t" "a" and "t" in that order:

Screenshot fuzzy search

Match all windows matching "ext" and "at" regular expressions:

Screenshot regex search