How to use the alfy.input.length function in alfy

To help you get started, we’ve selected a few alfy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skibitsky / alfred-timing / tasks.js View on Github external
var task = inputMatches(
    sortedData.map(t => {
	const project = t.project.title;
	return {
		title: t.title,
		subtitle: `Project: ${project}`,
		autocomplete: t.title,
		arg: t.title,
		variables: {
			project: project
		}
	};
}), 'title');

	if (input.length !== 0)		{
		task.unshift({title: `Create Task: "${input}"`, arg: input});
	}

	output(task);
});