Skip to content

Tab completion should not replace ~ or variables #5350

@lzybkr

Description

@lzybkr

Tab completion should not replace ~ or variables.

E.g.

cd ~\<TAB>
vim $env:APPDATA\<TAB>
& $env:SystemRoot\<TAB>

When editing a script, the replacement might actually make the script less portable, e.g. $env:SystemRoot isn't always on the c: drive.

On the command line, you normally end up with a longer command line, and possibly less meaningful. It can also be less useful when searching your history.

We could have an option that control this behavior, but I suspect it should be the default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions