Skip to content

Releases: stecman/symfony-console-completion

ZSH support

21 Oct 00:30
Compare
Choose a tag to compare

This release adds a hook for using the module under ZSH, and makes it easy to add hooks for other shells. The appropriate hook is determined automatically at runtime, so no user profile changes should be needed for existing setups in most cases (see second note below).

Notes

  • The recommended way of parsing the completion hook in a shell has changed, though the old method will continue working for existing installations:

    # New method (works under BASH and ZSH)
    myprogram _completion --generate-hook | source /dev/stdin
    
    # Old method (only works under BASH)
    eval $(myprogram _completion --generate-hook)
  • In order to generate a script that will work in the current shell, the SHELL environment variable is parsed. Since this is a setting rather than a representation of current state, the --shell option may need to be specified in some circumstances.

0.3.0

13 Jul 10:57
Compare
Choose a tag to compare

This release primarily adds support for colon characters in completions.

BC break: public methods on CompletionHandler that allowed reading of command-line contents have been moved to CompletionContext. A completion handler's context is accessible through CompletionHandler::getContext().