Path: utzoo!news-server.csri.toronto.edu!rutgers!cbmvax!bagate!dsinc!unix.cis.pitt.edu!zaphod.mps.ohio-state.edu!usc!apple!motcsd!mcdcup!mcdchg!laidbak!amiganet!dhansen From: dhansen@amiganet.chi.il.us (Dave Hansen) Newsgroups: comp.sys.amiga.applications Subject: Re: Does CED now have QEDIT-like block shifting?? Message-ID: Date: 13 Mar 91 06:18:07 GMT References: Organization: Amiga Network Information Systems Lines: 19 >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. With CED, merely make up a macro that consists of: SHIFT-R (replace) (old text):CTRL-J (new text):CTRL-J then type a Yes for each prompt (for each line) and it will insert 3 spaces. Similarly, flip old text and new text and it will delete leading 3 spaces. You can get much more elegant with this than many 'fixed command' editors. For example, if you want to do this to a highlighted region, set bookmark#1, mark text for the region you wish to shift, cut, move to bottom of document, set bookmark#2, paste, goto#2, do the above replace but answer turbo which will do it until the end of the file. goto#2, mark block to end of file, cut, goto#1, paste. You'd be surprised at how fast this works. voice: (708)691-4747 Internet:dhansen@amiganet.chi.il.us