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

powershell completion with custom comp #1208

Merged
merged 1 commit into from Dec 29, 2020

Commits on Sep 7, 2020

  1. powershell completion with custom comp

    The current powershell completion is not very capable.
    
    Let's port it to the go custom completion logic to have a
    unified experience accross all shells.
    
    Powershell supports three different completion modes
    
    - TabCompleteNext (default windows style - on each key press the next option is displayed)
    - Complete (works like bash)
    - MenuComplete (works like zsh)
    
    You set the mode with `Set-PSReadLineKeyHandler -Key Tab -Function <mode>`
    
    To keep it backwards compatible `GenPowerShellCompletion` will not display descriptions.
    Use `GenPowerShellCompletionWithDesc` instead. Descriptions will only be displayed with
    `MenuComplete` or `Complete`.
    
    Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
    Luap99 committed Sep 7, 2020
    Copy the full SHA
    f2bf992 View commit details
    Browse the repository at this point in the history