TabExpansion2

1.0.5

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.

Show more

Installation Options

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

Install-Script -Name TabExpansion2 -RequiredVersion 1.0.5

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

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

Owners

Copyright

(c) Roman Kuzmin

Package Details

FileList

Version History

Version Downloads Last updated
1.0.8 147 11/19/2023
1.0.7 133 1/3/2023
1.0.6 24 11/11/2022
1.0.5 (current version) 89 1/1/2022
1.0.4 191 12/26/2019
1.0.3 36 11/9/2019
1.0.2 243 7/14/2016
1.0.1 22 6/27/2016
1.0.0 23 6/22/2016
Show more