Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion on spaced strings #114

Open
warpdesign opened this issue Feb 26, 2016 · 1 comment
Open

Autocompletion on spaced strings #114

warpdesign opened this issue Feb 26, 2016 · 1 comment
Labels

Comments

@warpdesign
Copy link

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
Copy link
Owner

dthree commented Feb 26, 2016

No, it's a bug.

@dthree dthree added the bug label Feb 26, 2016
@dthree dthree changed the title Problems with spaces Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants