Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!hoss!fergvax!231b3678 From: 231b3678@fergvax.unl.edu (Phil Dietz) Newsgroups: comp.sys.amiga.applications Subject: Re: Does CED now have QEDIT-like block shifting?? Message-ID: <1991Mar09.203117.20820@hoss.unl.edu> Date: 9 Mar 91 20:31:17 GMT References: Sender: news@hoss.unl.edu (Network News Administer) Distribution: comp.sys.amiga.applications Organization: Comp Sci and Engr, Univ. of Nebr. Lines: 67 In article rfrost@spam.ua.oz.au (Richard Frost) writes: > >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 | >`------------------------------------------------------------------------' The secret is AREXX! Anything can be done if used properly through an arexx port. Simply Block off your text and press, say, F10...easy and FAST! Check out a file called something like devkit.zoo on a Fred Fish disk. It has 6 or so CED Arexx macros in it including a COMMENT block module. I'm sure this module can easily be modified to insert a tab/etc.... Phil Dietz <<<=================--------- Cheap Ad ---------===================<<< Phil Dietz SWL Lincoln 665 MEGS! 2 lines 231b3678@fergvax.unl.edu (402)421-1963 AMIGA, IBM, MAC, GIFS "What a deal! I bought an ENIAC for 5 bux, but can it play Tetris?"