Windows Vista Forums

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


    Adam Milazzo [MSFT] Guest

    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

  2. #2


    Keith Hill [MVP] Guest

    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

  3. #3


    Adam Milazzo Guest

    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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder isn't displayed with full path. Mr. X. Vista General 3 26 Feb 2010
How to get the full path for the PS1 itself? Carlos Felipe França da Fonseca PowerShell 1 20 Jun 2009
What's file's full path and BIOS davidjchuang Vista file management 7 22 Mar 2008
BUG? (Test-Path $path -IsValid) and empty $path =?Utf-8?B?Um9tYW4gS3V6bWlu?= PowerShell 1 28 Aug 2006
full path versus ./filename Singee PowerShell 5 07 Jun 2006