Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - BUG/ANNOYANCE: PoSH autocompletes the full path rather than a minimal path

Reply
 
Old 08-11-2006   #1 (permalink)
Adam Milazzo [MSFT]


 
 

BUG/ANNOYANCE: PoSH autocompletes the full path rather than a minimal path

If you attempt tab completion on a file in a subdirectory of the current one
(eg, sub<tab>\fi<tab> for subdir\file), PoSH autocompletes the full path.
C:\a\long\path\with\many\subdirectories\file.txt

This is annoying when the path actually is really long, like 90 characters
long. It should be more like cmd.exe's autocompletion, which does not expand
into the full path.



My System SpecsSystem Spec
Old 08-11-2006   #2 (permalink)
Keith Hill [MVP]


 
 

Re: BUG/ANNOYANCE: PoSH autocompletes the full path rather than a minimal path

"Adam Milazzo [MSFT]" <adamm@san.rr.com> wrote in message
news:%2396zNGbvGHA.1372@TK2MSFTNGP04.phx.gbl...
> If you attempt tab completion on a file in a subdirectory of the current
> one (eg, sub<tab>\fi<tab> for subdir\file), PoSH autocompletes the full
> path.
> C:\a\long\path\with\many\subdirectories\file.txt
>
> This is annoying when the path actually is really long, like 90 characters
> long. It should be more like cmd.exe's autocompletion, which does not
> expand into the full path.


I 100% agree with you on this. I've bugged it before. Now it might be nice
to have a way to get PoSH to autocomplete and give the full path but I don't
think it should be via the default TAB shortcut (maybe Ctrl+TAB instead).

--
Keith

My System SpecsSystem Spec
Old 08-12-2006   #3 (permalink)
Adam Milazzo


 
 

Re: BUG/ANNOYANCE: PoSH autocompletes the full path rather than aminimal path

Keith Hill [MVP] wrote:
> "Adam Milazzo [MSFT]" <adamm@san.rr.com> wrote in message
> news:%2396zNGbvGHA.1372@TK2MSFTNGP04.phx.gbl...
>> This is annoying when the path actually is really long, like 90
>> characters long. It should be more like cmd.exe's autocompletion,
>> which does not expand into the full path.

>
> I 100% agree with you on this. I've bugged it before. Now it might be
> nice to have a way to get PoSH to autocomplete and give the full path
> but I don't think it should be via the default TAB shortcut (maybe
> Ctrl+TAB instead).


I think the cases where the full path is really needed are rare, and you
could get away with defining a function that takes a possibly-relative
path and returns the full path.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to get the full path for the PS1 itself? PowerShell
What's file's full path and BIOS Vista file management
how to get subdir items with full path name? PowerShell
Full path in the Address bar of Explorer??? Vista installation & setup
BUG? (Test-Path $path -IsValid) and empty $path PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46