![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | TabExpansion Character Index? I'd like to do tab-expansion across an escaped space character (" "), but I can't because of how the word is broken up. I was thinking that it might work if I had the character index of the cursor w.r.t. the line; with that, I can back-parse any escaped characters... Better yet, can you make it treat an escaped character as part of the word? Nick |
My System Specs![]() |
| | #2 (permalink) |
| | Re: TabExpansion Character Index? Well, as I just discovered, a bug somewhere in my code is causing the space problem...better look more carefully at my regexes. It would still be nice to grab the cursor index, though... Nick Nick Howell wrote: > I'd like to do tab-expansion across an escaped space character (" "), > but I can't because of how the word is broken up. I was thinking that it > might work if I had the character index of the cursor w.r.t. the line; > with that, I can back-parse any escaped characters... > > Better yet, can you make it treat an escaped character as part of the word? > > Nick |
My System Specs![]() |
| | #3 (permalink) |
| | Re: TabExpansion Character Index? "Nick Howell" wrote: > It would still be nice to grab the cursor index, though... Not sure if this is what you mean: [console]::get_CursorLeft() This will return the console cursor's x-position. However, this might depend on the width of your prompt. -- greetings dreeschkind |
My System Specs![]() |
| | #4 (permalink) |
| | Re: TabExpansion Character Index? Ah! Didn't think of that...I can probably measure prompt, so should be OK...I'll have to experiment... dreeschkind wrote: > "Nick Howell" wrote: > >> It would still be nice to grab the cursor index, though... > > Not sure if this is what you mean: > > [console]::get_CursorLeft() > > This will return the console cursor's x-position. > However, this might depend on the width of your prompt. > > -- > greetings > dreeschkind |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| TabExpansion question | PowerShell | |||
| TabExpansion problem | PowerShell | |||
| TabExpansion Function | PowerShell | |||
| TabExpansion Timeout | PowerShell | |||
| Yet another way to extend the default TabExpansion | PowerShell | |||