Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!spam!spam.ua.oz.au!rfrost From: rfrost@spam.ua.oz.au (Richard Frost) Newsgroups: comp.sys.amiga.applications Subject: Does CED now have QEDIT-like block shifting?? Message-ID: Date: 9 Mar 91 16:17:28 GMT Sender: rfrost@spam.ua.oz Distribution: comp.sys.amiga.applications Organization: Dept. of Stats Pure & Appl. Maths, Adelaide University Lines: 52 I use QEDIT on an IBM at work, I believe one of its strongest points is its ability to shift text in a block left or right to allow quick and easy movement of code from one level of indentation to another... ie consider the code: .. void test(...) { /* quite a few levels of indentation ...later .. */ if (blah) { /* code thats in here is just itching to be a function */ } } To put the code into a function in CED one must do a columnar block cut and paste it into a created function (quite laborious)... with QEDIT, I'd just position the cursor in the first line of code, type an ALT-L (which begins the highlight-block-a-line-at-a-time mode) move the cursor to the last line of the code to be cut and hit the grey '-' key on the keypad, cutting out all the highlighted code. Next, I'd hit the grey '*' key and paste the code into my empty function and proceed to move all the code LEFT until it was indented correctly for that function, with shift-F7 (move text left). Does CED have the ability to shift text WITHIN a HIGHLIGHTED BLOCK left or right like this?. I now CANNOT write code quickly in any editor which lacks this facility, its indispensable. The new editor TurboText has this feature (it even has QEDIT emulation) but is terribly slow (YES, I KNOW the IBM does not have bit mapped text like the Amiga, thus the IBM has superior speed in purely text based programs) but I reckon that with some smart blitter work I think CED could easily be able to do this !!! -- .---------------.------------------------------.-------------------------. | Richard Frost | USENET: rfrost@spam.ua.oz.au | FIDONET: 3:680/805 | .-------.-------^------------------------------^-------------------------| | O F F | A NEW life awaits you in the OFF WORLD colony, the chance to | | WORLD | begin again in a golden land of opportunity and adventure ! | `-------' New climates, recreational facilities ... | | The custom tailored genetically engineered humanoid replicant designed | | especially for YOUR needs !! .... BLADERUNNER | `------------------------------------------------------------------------'