GithubHelp home page GithubHelp logo

fuzzyswitcher.spoon's Introduction

FuzzySwitcher.spoon

Live in the terminal and Spotlight too heavy for simple Application startup?

Spotlight indexing every single file creepy too much?

Fed up with cmd+tab constantly just to hit that right icon in a looong list?

This is a minimalist replacement that fuzzy selects both running and not-yet-running Applications enabled by the amazing http://www.hammerspoon.org/

Installation

In ~/.hammerspoon/init.lua:

hs.loadSpoon("FuzzySwitcher")
spoon.FuzzySwitcher:bindHotkeys({show_switcher = {{"cmd"}, "space"}})
spoon.FuzzySwitcher:start()

Usage

Fuzzy is a bit of a white lie actually: it's fuzzy with "exact match" (fzf -e), which was considered less overwhelming for this use case.

Here's the difference when entering fi:

# fuzzy
Safari
FaceTime
Firefox
FindMy

# fuzzy with exact match
Firefox
FindMy

While there are shortcuts to select a candidate quickly from the result list, the user is encouraged to come up with unique bits of Application names to naturally narrow down the result to exactly one. For example on my system <cmd+space>ox<Enter> will always run, or switch to a running Firefox.

Configuration

  • obj.app_folders: folders to watch, by default /Applications, /System/Applications, /System/Applications/Utilities and ~/Applications
  • obj.app_ignore_list: list of applications to ignore, e.g. Siri

Disabling Spotlight

To hijack cmd+space with hammerspoon, disabling the spotlight keyboard shortcut is not enough, it must be changed first to something else under "Keyboard Shortcuts".

Spotlight indexing must be turned off for every volume individually, e.g. sudo mdutil -i off /

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.