Freitag, 20. Februar 2009

ISE Extension basics: splitting text to lines

Finally I got the best way to split text to an array of lines. It is using $text -split "`r`n"



Improved thanks to Jaycul's comment.

Montag, 9. Februar 2009

Do you like ISE-Cream?

ISE-Cream is a CodePlexProject to extend ISE the new editor of PowerShell V2 CTP 3.

You can forget all the prehistoric, not windows like copy & paste keys and convert to uniform ^C ^V .

The countdown for this final transistion is allready running.

No actually that is a completely unrelated event, which shows how easy datetime could be handled in databaseworld, if only if were invented by mathematicians.

The database example shows , that it is important to start with a clear vision, otherwise you will have to fix it later with functions like set datefirst. I use this function every day, so with me it is allways saturday. (I didn't chose sunday - in germany the shops would be closed).

Back to PowerShell reality. I started to design some categories, which might help the project in organizing the contributions:

  • basic function [that means reinventing of the wheel]
  • load - save [with session and history]
  • print - export (to html, rtf, etc.)
  • invoke files - scriptblocks - lines - regions
  • editing tasks
  • comment - identify - beautytifier
  • snippets
  • introspection - expand alias - syntax check - tabcompletion
  • other text transforms e.g. sorting of lines
  • ISE caller - profile management
  • Custumization - Custom memue
Happy extending

Bernd

Samstag, 7. Februar 2009

Bernd_k joined the PowerShell ISE-CREAM project

I joined the ISE-CREAM project here and and checked in an editor extension here to open the Explorer with the folder containing the currently edited file.

I like the cooperation between explorer and ISE, often I open files by drag-and-drop from the explorer.


An ISE bug when running in german locale


This is a bug showing up in CTP 3 and Win 7 (the german beta download), when running in german locale.

Correct would be, that all Ctrl+ were replaced by Strg+.

The english Win 7 Beta download does not show the bug.

For the curious Strg is an abbrivation of the german word Steuerung which is a synonym of the german word Kontrolle, which means just what you can guess without use of a dictionary.

Therefore I spell Strg as Stupid-Translated-Regular-Garbage, but as this was not invented by Microsoft, I will complain here.

At last some good news for us PowerShell users. To create a custum menue items we have to use the Ctrl- for all locales.

The replacement in display is task of the OS.

Example:

$psISE.CustomMenu.Submenus.Add("run region 5", {dir }, 'strg+D')

will work in any system.

You can vote for the bug at https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=411556&SiteID=99

-Bernd

Mittwoch, 4. Februar 2009

Schmierzettel 2

Hello again,

today I'm very happy, I just installed Windows 7 as dual boot on my vista notebook.

Defragmentation and repartioning took some time. Was there real IT-Live in advance to external USB-drives?

I wrote a little about it in one of my other blogs.

This christmas I got PowerShell V2 CTP3 and just in time to my birthday Karl Prosser started the ISE-Cream project. That's really great.

And don't miss Jaykul's artikel about it’s by design I really enjoyed it.

Greetings

Bernd