Closed stecman closed 5 years ago
Under BASH and ZSH this now looks like this:
Still needs a little tweaking to make BASH escape quotes inside completions, but otherwise should be ready. Feel free to test this.
@JoshuaBehrens, @aik099 this is ready to merge now if you want to test/review.
@stecman you are a man of honor. I will test as soon as possible. If it works out this change can be part of the almost dusty PR :+1:
Merge it and release a new version :+1: Very good work
I had no problems anymore with whitespace or special chars I am used to work with.
Thanks for creating a new minor version. Apparently packagist is not yet aware of it :disappointed:
Aha, the Packagist hook just needed updating - published now :+1:
This replaces the previous simple "split on breaks" regex in
CompletionContext::splitCommand()
with a function that behaves as a tokenizer and uses a more complete regex.This adds support for completion of:
Some\ multi\ word\ sequence
"have some double quotes"
/'you\'ll get single quotes too'
=""
style options:--foo="bar"
~ (couldn't repro this working)To do:
Resolves #67