All Projects → datazenit → sensei-anywhere

datazenit / sensei-anywhere

Licence: MIT license
Navigation tool powered by fuzzy search (JS/HTML)

Programming Languages

javascript
184084 projects - #8 most used programming language

Sensei Anywhere

Sensei Anywhere is a navigation tool powered by fuzzy search. Sensei Anywhere is used in Datazenit to navigate between connections, databases and tables. This project is currently under heavy development, use at your own risk.

Installation

Sensei Anywhere depends on jQuery, lodash/underscore.js and Mousetrap. Include these libraries together with sensei-anywhere.css and sensei-anywhere.js.

Demo

Click on the image to view demo.

Sensei Anywhere Demo

More info

Read this blog post: Sensei Anywhere.

Usage

Create an array containing your items, e.g., file names, paths, links or anything else.

var data = [
	{
		group: "files",
		items: "assets/main.css", "assets/test.js", "assets/main.min.css", "assets/test.min.js"
	}
];

Initialize Sensei Anywhere and define shortcuts. In this example shortcuts are command+k and ctrl+k. You can define as many shortcuts as you want.

var anywhere = $.anywhere(data, ['command+k', 'ctrl+k']);

Listen to "select" event to get the selected item.

anywhere.events.on("select", function (item) {
   alert("Cool, your selected item: " + item);
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].