1.0.0 • Published 9 years ago

lighthouse-provider-common v1.0.0

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
9 years ago

lighthouse-provider-common

Some useful providers for the lighthouse-provider module.

Usage

Open installed applications via lighthouse

var common = require('lighthouse-provider-common');
var lighthouse = new Lighthouse();
lighthouse.attach(common.xdg);

process.stdin.pipe(lighthouse).pipe(process.stdout);

Providers

xdg

Reads output from xdg_menu and provides fuzzy matching (like SublimeText) to search through your installed applications. Requires xdg_menu to be available.

open

Treats your input as a path and opens it with its default application. Requires file, xdg-mime and xdg-open to be available on the system.

exec

Simply run your input directly.

url

If a url is detected, you may open it in your default browser. Requires xdg-open to be available on the system.