electroshell icon indicating copy to clipboard operation
electroshell copied to clipboard

Late-formatting of results

Open AndrewGaspar opened this issue 9 years ago • 4 comments

One of my pet-peeves with the current PowerShell shell is that sometimes I'll execute a command and get some results, but the results are formatted in a way that is either too verbose or too limited, so I'll have to re-run the command piped to the appropriate Format-* command. It would be awesome if this shell collected the results in memory (within reason) and allowed the user to re-format those results on the fly, kind of like how Chrome's F12 tools work.

AndrewGaspar avatar Jan 12 '16 01:01 AndrewGaspar

Hmmm, that's an interesting idea. Could even be something facilitated by Editor Services, keeping the last result pre-formatting in a special variable which could be re-evaluated through a different formatter.

daviwil avatar Jan 12 '16 01:01 daviwil

Do you have an example of how that works in Chrome's dev tools that I could take a look at?

daviwil avatar Jan 12 '16 01:01 daviwil

It's not really exactly the same thing, but I can enter a variable in the REPL, and then dig into the details of the variable after outputting to the shell. I want something similar for PowerShell.

(picture from Edge F12 instead) 2016-01-11 2

AndrewGaspar avatar Jan 12 '16 01:01 AndrewGaspar

Ahhh! Yeah, a structured output display would be helpful and definitely in the scope of what I'm trying to accomplish

daviwil avatar Jan 12 '16 01:01 daviwil