Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

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\/\/

Published Sunday, October 28, 2007 7:27 PM by MoW

Comments

# Interesting Finds: October 29, 2007

Monday, October 29, 2007 9:46 AM by Jason Haley

# re: PowerTab version 0.99 Beta 2 Released

Hi MoW - looks good. Some initial issues I spotted:

Direct object completion leaves a ] on the end of the type name.

$var = New-Object System.AppDomain]

I'm hacking together a few fixes for other things too, mainly for provider-qualified path completion. I'll talk to you in #powershell about it later.

Wednesday, October 31, 2007 11:17 AM by Oisin Grehan

# re: PowerTab version 0.99 Beta 2 Released

Hiya Oisin,

Thanks, I did a demo and had some problems with automatic type completion also.

seems I intruduced a bug in 0.99 B2, but had no time to look into it yet (I'm sure is small as it was not there sunday at 00:00 just before posting ;-).

Greetings /\/\o\/\/

Wednesday, October 31, 2007 4:09 PM by MoW

# re: PowerTab version 0.99 Beta 2 Released

seems like there is a bug(or missign feature) where :

1) in a filesystem if you just press tab and you have one maching item it won't expand it bit will bring the box

2) if matches have the same root it will not expand the compeltion up to the difference(bash default's behavior

Wednesday, October 31, 2007 11:02 PM by lantonov

# re: PowerTab version 0.99 Beta 2 Released

Lantonov :

1) I added this on purpose in V 0.99 B2 , for autocompletion, saves you from adding another tab.

2) I do not understand this question

Greetings /\/\o\/\/

Monday, November 05, 2007 4:28 AM by MoW

# re: PowerTab version 0.99 Beta 2 Released

There seems to be a bug with registry path completion:

dir hklm:\soft[tab]

completes to

dir hklm:\HKEY_LOCAL_MACHINE\SOFTWARE

Monday, November 05, 2007 10:34 AM by Martin

# re: PowerTab version 0.99 Beta 2 Released

Martin,

Thanks I reproduced the bug and will look at it.

Greetings /\/\o\/\/

Wednesday, November 07, 2007 7:27 AM by MoW

# re: PowerTab version 0.99 Beta 2 Released

Hi MoW,

i you communicate a small bug.

If the profile file is signed, the setup add lines after the signature block.

if my file of profiles is signed, the Powertab setup adds lines after the signature block.

PS>

SignerCertificate                         Status                                 Path

-----------------                         ------                                 ----

                                         HashMismatch                           Microsoft.PowerShell_profile.ps1

I must modify my file manually in order to be able to sign it again.

Thanks for PowerTab !!!

ps

Sorry for my poor english.

Microsoft.PowerShell_profile.ps1 :

...

# here : the end of my profile

# SIG # Begin signature block

# MIIFQgYJKoZIhvcNAQcCoIIFMzCCBS8CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB

...

# /dsKACot

# SIG # End signature block

################ Start of PowerTab Initialisatie Code ########################

#

#  added to Profile by PowerTab Setup For Loading of Custom TabExpansion,

#

# /\/\o\/\/ 2007

#

# http://ThePowerShellGuy.com

#

# Initialize PowerTab

& 'G:\PowerTab099b2\Init-TabExpansion.ps1' `

    -ConfigurationLocation 'C:\Documents and Settings\UserName\Mes documents\WindowsPowerShell'

################ End of PowerTab Initialisatie Code ##########################

Saturday, February 23, 2008 6:30 PM by BatchMan

# Записанная веб-трансляция "Управление Windows Vista с помощью Windows PowerShell" и ответы на заданые вопросы

Вчера провели веб-трансляция "Управление Windows Vista с помощью Windows PowerShell" . Как

Thursday, May 08, 2008 2:17 AM by Beshkov Andrey
Anonymous comments are disabled