On Thu, Mar 5, 2009 at 4:23 AM, Frank Lanitz <span dir="ltr"><<a href="mailto:frank@frank.uvena.de">frank@frank.uvena.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, 5 Mar 2009 00:21:56 +0100<br>
Enrico Tröger <<a href="mailto:enrico.troeger@uvena.de">enrico.troeger@uvena.de</a>> wrote:<br>
<br>
> I actually think this would be an awesome improvement and could go into<br>
> Geany but it still needs someone to write it. So, patches are welcome.<br>
<br>
</div>Hmm...ok. Since I'd like to learn something, can somebody of you give<br>
me a near life case study for this feature? Even I guess I understood<br>
what it should do, I'm ot sure, why and when to use it.<br>
<div><div></div><div class="h5"><br></div></div></blockquote></div><br>It sounds like rectangle-mode in Emacs, or column-editing mode in TextMate.<br><br>One common use case is formatting data or code.<br><br>For instance, say I wanted to work with the whitespace between the first and second tuple elements in each row of the follow code:<br>
<br>call_foo([<br>  (a, 1, 1),<br>  (b, 2, 2),<br>
  (c, 3, 3),<br>
  (d, 4, 4),<br>
  (e, 5, 5)<br>])<br>
<br>I would select a rectangular region of text between the comma in the first row, and the second tuple element in the fifth row (covering the whitespace right down the middle).  Then I can use "shift-left" and "shift-right" commands to move the entire rectangle around, "grow" or "shrink" commands to change the whitespace, or "kill" to clear the space and close it up.<br>
<br>In Emacs, you select the rectangle by dropping a mark in one corner, and placing the cursor in the other.  In TextMate, you can hold down a key and drag the mouse to select a rectangle of text on the screen.<br><br>Maris<br>