![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | signature of tabexpansion function subobptimal Hi, When implementing tab completion, it is limiting to only be able to affect the last word of the line. I think it would be interesting to start a discussion of what we would want from tabexpansion and what means we need to achieve it. I'm certain other people have been frustration with cmd/powershell removing everything after the current completion when editing an interior part of the command line, so a feature would be to be able to complete words in the middle of the command line. To be able to provide the best completions, one would have to know the context of the current cursor position. The definitive information on this is only available after having run powershell's own parser for the current command line. The return value(s) from the tabexpansion function would have to indicate what parts of the command line that is being completed (ie what to replace by the new suggestionlist). Anyone else care to chip in with their opinions on this matter? Powershell Team, do you have anything you can tell us about thoughts in this area for vNext? Regards, /Staffan |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: signature of tabexpansion function subobptimal > Powershell Team, do you have anything you can tell us about thoughts in > this area for vNext? We are noodling around a couple of ideas around the area of tokenizing, user input mechanisms and the ability of the community to participate. We have some pretty exciting ideas but don't have anything to discuss yet. -- Jeffrey Snover [MSFT] Windows Management Partner Architect Microsoft Corporation This posting is provided "AS IS" with no warranties, no confers rights. Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scr.../hubs/msh.mspx |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: signature of tabexpansion function subobptimal "Jeffrey Snover [MSFT]" <jsnover@microsoft.com> wrote in message news:%2301kz7yjHHA.2436@TK2MSFTNGP03.phx.gbl... >> Powershell Team, do you have anything you can tell us about thoughts in >> this area for vNext? > We are noodling around a couple of ideas around the area of tokenizing, > user input mechanisms and the ability of the community to participate. We > have some pretty exciting ideas but don't have anything to discuss yet. > BTW I would love to be able to access not only $^ and $$ but the entire last command as well. This is handy for checking errors when calling legacy console apps. Right now somepointed out a way to do this using MyInvocation and that works fine as long as the command doesn't span lines. -- Keith |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TabExpansion problem | Shafik | PowerShell | 1 | 08-08-2007 11:38 AM |
| signature verification missing (digital Signature) on the Vista | verify | Vista security | 3 | 07-11-2007 12:38 PM |
| TabExpansion Function | ASCHNEIDER146 | PowerShell | 0 | 03-06-2007 09:31 AM |
| TabExpansion Timeout | blake.ryan@gmail.com | PowerShell | 0 | 12-01-2006 06:19 AM |
| TabExpansion Character Index? | Nick Howell | PowerShell | 3 | 10-12-2006 08:38 AM |