Column mode for selecting blocks of text is one of the little things that i use every once in a while that is more or less indispensable. In Geany, when selecting a block in column mode the rightmost edge of the selection is always the location of the cursor and the cursor won't go beyond the end of the line. So if a line in the middle of the block is longer than the bottom (or top) line, there isn't any way to include it in the selection.
For example with this text:
Not is the time for all good men to come to the aid of their country.
There isn't any way to select the whole thing as a block in column mode. Can anything be done about this?
Thanks,
Bob S.
It would require some new code in the scintilla area I would guess, but for a "quick"? workaround, pad all the lines with spaces out to the longest line you want to include, then grab it all with a rectangle.
I put the 'quick' in quotes because obviously, it could be cumbersome.
chuck
Bob Snyder wrote:
Column mode for selecting blocks of text is one of the little things that i use every once in a while that is more or less indispensable. In Geany, when selecting a block in column mode the rightmost edge of the selection is always the location of the cursor and the cursor won't go beyond the end of the line. So if a line in the middle of the block is longer than the bottom (or top) line, there isn't any way to include it in the selection.
For example with this text:
Not is the time for all good men to come to the aid of their country.
There isn't any way to select the whole thing as a block in column mode. Can anything be done about this?
Thanks,
Bob S.
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Umm.. yeah that is pretty cumbersome. Especially for blocks with a lot of lines.
Thanks for the response, though.
Bob S.
chuck wrote:
It would require some new code in the scintilla area I would guess, but for a "quick"? workaround, pad all the lines with spaces out to the longest line you want to include, then grab it all with a rectangle.
I put the 'quick' in quotes because obviously, it could be cumbersome.
chuck
Bob Snyder wrote:
Column mode for selecting blocks of text is one of the little things that i use every once in a while that is more or less indispensable. In Geany, when selecting a block in column mode the rightmost edge of the selection is always the location of the cursor and the cursor won't go beyond the end of the line. So if a line in the middle of the block is longer than the bottom (or top) line, there isn't any way to include it in the selection.
For example with this text:
Not is the time for all good men to come to the aid of their country.
There isn't any way to select the whole thing as a block in column mode. Can anything be done about this?
Thanks,
Bob S.
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Mon, 11 May 2009 19:44:41 -0700, Bob wrote:
Umm.. yeah that is pretty cumbersome. Especially for blocks with a lot of lines.
As chuck said, this is mainly a Scintilla issue and should be requested there. I guess it leads directly to the idea of being able to put the cursor into columns behind the 'physical' end of the line.
On a related note, chuck did you by chance have a look at https://sourceforge.net/tracker/?func=detail&atid=787794&aid=2784820... This is a patch to add a vertical line for column mode editing as a visual indicator. Since you know the code better than me, maybe you can judge whether it's worth adding and maybe warming up the discussion on Scintilla. Especially because in Scintilla there were recently a related discussions and test implementation about column mode editing (http://groups.google.com/group/scintilla-interest/browse_thread/thread/91c2b...).
Regards, Enrico