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 - FEATURE REQUEST: better line editing

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


 
 

FEATURE REQUEST: better line editing

The line editor is where the user spends all his time interacting with the
shell. It should be as comfortable as possible.

For instance, the up and down arrow keys should move you between recent
/commands/ not recent /lines/.

That is, hitting the up arrow show move you to the full text of the last
command.

Eg,

C:\> dir |
>> ? {
>> $_.length -gt 1000
>> }


If I hit the up arrow, I don't want to see:

C:\> }

I want to see:

C:\> dir | ? { $_.length -gt 1000 }

So I can then hit Enter to re-execute the command. (This is especially
annoying when trying to redefine functions.)

And then there should be easier ways of moving the cursor around.



My System SpecsSystem Spec
Old 08-12-2006   #2 (permalink)
Alex K. Angelopoulos [MVP]


 
 

Re: FEATURE REQUEST: better line editing

In fact, if you look closely you'll see that every single raw keyboard
command is a standard old-fashioned DOSKEY-style command. They didn't want
to get into low-level interactive interface issues in this version, but it's
extremely annoying. Another annoyance for me since I tend to copy-paste code
a lot is the fact that a pasted tab is the same as a tab at the keyboard -
it attempts autocompletion.

"Adam Milazzo [MSFT]" <adamm@san.rr.com> wrote in message
news:uOc2WDbvGHA.4460@TK2MSFTNGP05.phx.gbl...
> The line editor is where the user spends all his time interacting with the
> shell. It should be as comfortable as possible.
>
> For instance, the up and down arrow keys should move you between recent
> /commands/ not recent /lines/.
>
> That is, hitting the up arrow show move you to the full text of the last
> command.
>
> Eg,
>
> C:\> dir |
>>> ? {
>>> $_.length -gt 1000
>>> }

>
> If I hit the up arrow, I don't want to see:
>
> C:\> }
>
> I want to see:
>
> C:\> dir | ? { $_.length -gt 1000 }
>
> So I can then hit Enter to re-execute the command. (This is especially
> annoying when trying to redefine functions.)
>
> And then there should be easier ways of moving the cursor around.
>



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


 
 

Re: FEATURE REQUEST: better line editing

Alex K. Angelopoulos [MVP] wrote:
> In fact, if you look closely you'll see that every single raw keyboard
> command is a standard old-fashioned DOSKEY-style command. They didn't want
> to get into low-level interactive interface issues in this version, but it's
> extremely annoying. Another annoyance for me since I tend to copy-paste code
> a lot is the fact that a pasted tab is the same as a tab at the keyboard -
> it attempts autocompletion.


Huh, I'm surprised that pasting text with a tab character causes it to
attempt tab completion.

They could do /so much/ cool stuff if they moved away from a purely
console-based approach.

I'm thinking of something like the Python "IDE" that comes with
ActivePython. Essentially, a shell running in a text editor, with some
rudimentary intellisense. If you hit Enter at the end of a command, it
executes the command. Otherwise, you can edit the command in its
entirety very easily.

Plus, they could do things like have tab completion not clear the rest
of the line, implement incremental history search, like bash's Ctrl-R, etc.

But if they don't get around to it this release, I won't mind too much.

I just hope they don't have a 2-3 year release cycle. They should try to
keep a short cycle, 6 months max, until it stabilizes...
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Feature Request Live Mail
feature request Vista General


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