Skip to content

Integrate with fuzzy finder plugins

KabbAmine edited this page Jan 12, 2016 · 2 revisions

How to get gulp task names

The function gulpVim#GetTasks() returns a string containing task names separated by \n if they exist, otherwise returns 0.

Most fuzzy finder plugins accept a list as a source, so split(gulpVim#GetTasks(), "\n") is the right way to get it.

Examples

A simple FzfGulp command:

command! FzfGulp call fzf#run({
			\ 'source': split(gulpVim#GetTasks()),
			\ 'sink': 'GulpExt'
			\ })
Clone this wiki locally