logo

Relative Path Completion

Ben Kittrel posted on Wednesday, May 02, 2007 5:00 PM

I know this sounds trivial, but the way PowerShell expands to a full path
when using tab completion really annoys me.  Is there a way to configure it
to us relative path completion, like cmd?

For example if I'm in c:\data and type 'cd pro<TAB>', I want it to say 'cd
projects', rather than 'cd C:\data\projects'.

Based on user feedback, we're calling the current behaviour a bug and are

Bruce Payette [MSFT] posted on Thursday, May 03, 2007 9:06 PM

Based on user feedback, we're calling the current behaviour a bug and are
(hopefully) going to fix it in the next release. (As always, disclaimers
involving scheduling apply :-)

-bruce

--
Bruce Payette [MSFT]
Windows PowerShell Technical Lead
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

Very cool, thank you.BTW, I am very much enjoying your book.

BenKittrel posted on Thursday, May 03, 2007 10:58 PM

Very cool, thank you.

BTW, I am very much enjoying your book.  Keep on keepin on.

Mark,I thought the same thing, but it would be a trade off.

BenKittrel posted on Friday, May 04, 2007 11:54 AM

Mark,

I thought the same thing, but it would be a trade off.  This would interfere
with the current functionality where you can tab through the other filenames.


It's hard to say which is better.  I prefer the more bash-esque method,
because it's what I'm used to.

-Ben

Mark,I'm sorry, I thought you meant that if you hit tab to complete, and then

BenKittrel posted on Friday, May 04, 2007 12:24 PM

Mark,

I'm sorry, I thought you meant that if you hit tab to complete, and then hit
tab again it would add the slash and move one level deeper.

If it added the slash, but if you continued to tab it would cycle through
the elements in the directory like it does now, that would be incredible.

-Ben


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Create Account & Ask Question In Live Forum





Pete's Resume  |  Robbe's Resume  |  Neado  |  Free Icons  |  Privacy  |   (c) 2010