TabExpansion2

1.0.4

The script replaces the built-in function TabExpansion2, creates the table
TabExpansionOptions, and does nothing else. Initialization is performed on
the first code completion via profiles *ArgumentCompleters.ps1.

$TabExpansionOptions consists of empty entries:

CustomArgumentCompleters = @{}
NativeArgumentCompleters = @{}
ResultProcessors = @()
InputProcessors =
The script replaces the built-in function TabExpansion2, creates the table
TabExpansionOptions, and does nothing else. Initialization is performed on
the first code completion via profiles *ArgumentCompleters.ps1.

$TabExpansionOptions consists of empty entries:

CustomArgumentCompleters = @{}
NativeArgumentCompleters = @{}
ResultProcessors = @()
InputProcessors = @()

Initialization via profiles. When TabExpansion2 is called the first time it
invokes scripts like *ArgumentCompleters.ps1 found in the path. They add
their completers to the options.

TabExpansion2.ps1 (with extension if it is in the path) should be invoked
in the beginning of an interactive session. Modules and other tools on
loading may check for existence of the table and add their completers.

Any found profile and completer issues are written as silent errors.
Examine the variable $Error on troubleshooting.

Extra table options:

IgnoreHiddenShares
$true tells to ignore hidden UNC shares.

LiteralPaths
$true tells to not escape special file characters.

RelativePaths
$true tells to replace paths with relative paths.
$false tells to replace paths with absolute paths.

Consider to use Register-ArgumentCompleter instead of adding completers to
options directly. In this case *ArgumentCompleters.ps1 are compatible with
v5 native and TabExpansionPlusPlus registrations.

Consider to use Register-InputCompleter and Register-ResultCompleter
instead of adding completers to options directly.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name TabExpansion2

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Roman Kuzmin

Copyright

(c) Roman Kuzmin

Version History

Version Downloads Last updated
1.0.4 (current version) 132 12/26/2019
1.0.3 27 11/9/2019
1.0.2 234 7/14/2016
1.0.1 13 6/27/2016
1.0.0 12 6/22/2016