andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Column editing, rectangular selection #85

Closed andreikop closed 11 years ago

andreikop commented 11 years ago

How often do you use it in real coding?

vi commented 11 years ago

Sometimes. I often intentionally keep the code lined up vertically (by providing extra spaces inside lines) to make it easier to read and edit.

For example, if you have

doSomething(56       ,"qwert"           );
doSomething(43534    ,""                );
doSomething(-44      ,"4"               );
doSomething(123      ,"qwsssssssssssert");

and want

doSomething("qwert"           ,56       );
doSomething(""                ,43534    );
doSomething("4"               ,-44      );
doSomething("qwsssssssssssert",123      );

it is convenient to use rectangular editing.

Actually I want this feature to be extended to "multi-cursor" feature, like I seen in Sublime.

andreikop commented 11 years ago

Does rectangular QScintilla selection allow to do any actions except copy, cut, paste, delete? Which actions are necessary for rectangular selection?

Multicursor edit is more advanced feature, will be done separately.

andreikop commented 11 years ago

Duplicate of #82