dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Autocompletion on spaced strings #114

Open warpdesign opened 8 years ago

warpdesign commented 8 years ago

It seems autocomplete module splits autcomplete elements and use only the last part.

So doing:

vorpal.command('cat')
      .autocomplete(['foo', 'blah blew']);

Would present this list:

foo blew instead of showing foo "blah blew"

This is especially a problem when using autocomplete-fs module to autocomplete directories since directories containing spaces will be cut out.

Maybe there is an option for that but I didn't see it mentionned in the documentation.

dthree commented 8 years ago

No, it's a bug.