TabExpansionPlusPlus icon indicating copy to clipboard operation
TabExpansionPlusPlus copied to clipboard

Provide Support for Powershell v5

Open MartinSGill opened this issue 9 years ago • 3 comments

PackageManagement\Install-Package : A command with name 'Register-ArgumentCompleter' is already available on this system. This module 'TabExpansionPlusPlus' may 
override the existing commands. If you still want to install this module 'TabExpansionPlusPlus', use -AllowClobber parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1661 char:21

It would be nice to have this module work out of the box for powershell v5.

Maybe by namespacing the Register-AutoCompleter function, e.g. Register-TPPAutoCompleter I really want to be able to easily benefit from all the hard work put into the auto-completers shipped with the module, but errors on import make me nervous :)

MartinSGill avatar Aug 31 '16 06:08 MartinSGill

So.. uhhh.. guess this project is dead?

tommck avatar Aug 18 '19 16:08 tommck

You could say this project met it's goals. It was meant to be a prototype of what should be brought back into the core of PowerShell, and now that PowerShell has Register-ArgumentCompleter, the important part is complete.

Going forward, if someone else wanted to pick this up, I'd look at shipping 2 modules:

  1. CompletionUtilities - that has the helpers used by this completers in this module. Those utilities might also be candidates to bring back into PowerShell
  2. ArgumentCompleters - the useful argument completers that people typically want from this module.

lzybkr avatar Aug 22 '19 03:08 lzybkr

I created a new repo with just the completers, updated to work in PowerShell 5+ and PowerShell Core. Hopefully it's useful for someone. :)

https://github.com/MatejKafka/PowerShell-ArgumentCompleters

MatejKafka avatar Mar 26 '22 01:03 MatejKafka