-
Notifications
You must be signed in to change notification settings - Fork 1
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
Auto-complete some words #2
Comments
+1 : I'm trying to find some good rules to let autocompleters handle eveything. For example :
|
Do you want one autocompleter or aggregated ones? |
the shell works a bit differently at the moment: it uses a "late-binding" strategy : autocompleters are not bound when the shell boots. The only completer I bind is the following : https://github.com/jubianchi/atoum-shell/blob/master/classes/input/completer.php This one acts as a dispatcher, delegating the completion to the appropriate command. So I don't think I need an aggregate for now. At least, I don't need it until I refactor the way it's handled. For now, I thnik each command will provide his own completer depending on what it has to complete:
|
A command could also provide more than one completer, depending on what the user typed. For example, the |
The But I think that a simpler solution would be to solve hoaproject/Console#10. Thoughts? Would it fit your needs? Based on a pattern, we autocomplete “places” (this is how I see it), similarly to Zsh. |
@Hywan I have to give a try on using the new aggregated autocompleter to see if it fits. If yes, I'll use it ;) I'll keep you updated ;) |
Hello :-),
I think it would be great to use
Hoa\Console\Readline\Autocompleter\Word
to autocomplete some words, like$asserter
,integer
,float
and all the asserters.Thoughts?
The text was updated successfully, but these errors were encountered: