PowerTab version 0.99 Beta 2 Released
Powertab 0.99 features relative filesystem completion, PowerTab 0.99 beta 1 was on the Powertab Beta Page for a while but not much downloaded yet, I updateded it to beta 2.
I made a lot of small bugfixes in this release and added some extra features, a lot of them came at the requests from Powertab users. Especial Kirk and SQl_Guru provided very detailed feedback, this is really appriciated and helped a lot to improve this version.
Init-Tabexpansion.ps1
the Init-Tabexpansion.ps1 script and can be started without parameters now to re-initialize PowerTab without starting a new shell.
this is a command I missed when I messed up my $powertabconfig variable during a demo
[Tab]]> .\PowerTab\Init-TabExpansion.ps1
WARNING: PowerTab version 0.99 Beta 2 was allready loaded
re-Initializing configuration from :
C:\Users\MvanOrsouw\Documents\WindowsPowerShell
PowerTab version 0.99 Beta 2 PowerShell TabExpansion library
/\/\o\/\/ 2007 http://thePowerShellGuy.com
PowerTab Tabexpansion additions enabled : True
[PoSH]> .\PowerTab\Init-TabExpansion.ps1 -
[PoSH]> ╔═ - ════════════════════╗
[PoSH]> ║ -ConfigurationLocation ║
[PoSH]> ║ -NoWarning ║
[PoSH]> ╚═[1] 1-2 (2/2)]═════════╝
Kirk gave some great feedback on his blog : PowerShelling with PowerTab and we exchanged some mail afterwards, resulting in the following changes :
Issue 1 I could not solve, see comments but issue 2 I did fix
If you are viewing the tab expansion window for the current word and you press backspace or Esc, you should be returned to the exact command you started FIXED
fixes from feature request 2 :
1) Filesystem completion on Space
Added $PowerTabConfig.SpaceCompleteFileSystem to also enable Space completion in the filesystem, to still be able to type a space when this setting is enabled you can use "Control-Space"
2) Slash and BackSlash completion support on non US keyboard layout
Fixed by checking character not KeyCode
3) Completion on other "terminating" characters
Added support for additional completion characters, by default ']' , ':' and ')' ,but I made them configurable using the following 2 settings :
[Tab]]> $PowerTabConfig.CustomComplete
True
[PoSH]> $PowerTabConfig.CustomCompletionChars
]:)
Mail :
4) TabCompletion not correct for empty directories when using autocompletion on '\'
Fixed,
Also on autocompletion the list will now always show even with only one item, so autocompletion does stay active
Also SQL_Guru posted some tips and requests on my Powertab Beta Page that are all implemented for version 0.99 Beta 2
# Any chance of sorting the shares of a server?
# Could you also add ExternalScript completion to TabExpansion.ps1?
# Bugfix on get-ScriptParameters
# Fast Scroll Option
I implemented fast scrolling by holding shift while pressing the up or down arrow
[Tab]]> $PowerTabConfig.FastScrollItemcount
10
[PoSH]> $PowerTabConfig.FastScrollItemcount = 5
# Fix for Lagging when Using UP/Down arrow
Other extra features :
Drivecompletion by :[tab]
direct .net completion behind new-object
[Tab]]> :
[PoSH]> ╔═ ═══════════════╗
[PoSH]> ║ Alias: ║
[PoSH]> ║ C: ║
[PoSH]> ║ cert: ║
[PoSH]> ║ D: ║
[PoSH]> ║ Env: ║
[PoSH]> ║ Function: ║
[PoSH]> ║ HKCU: ║
[PoSH]> ║ HKLM: ║
[PoSH]> ║ Variable: ║
[PoSH]> ╚═[1] 1-9 (9/9)]═══╝
[PoSH]>
[PoSH]> New-Object
[PoSH]> ╔═ ═══════════════╗
[PoSH]> ║ Microsoft ║
[PoSH]> ║ NTFS ║
[PoSH]> ║ System ║
[PoSH]> ║ Trinet ║
[PoSH]> ╚═[1] 1-4 (4/4)]═══╝
and from a Newsgroup question : $PowerTabConfig.IgnoreConfirmPreference to ignore Confirmpreference in Powertab
you can download the new beta here : Powertab Beta Page , and main link will be updated this week
Thanks again for all the input and I hope the changes do work for you.
Enjoy,
Greetings /\/\o\/\/