Path: utzoo!attcan!uunet!steinmetz!barnett@mozart.steinmetz.ge.com From: barnett@mozart.steinmetz.ge.com (Bruce Barnett) Newsgroups: comp.editors Subject: Re: alignment on the right hand side Message-ID: <12203@steinmetz.ge.com> Date: 23 Sep 88 03:29:44 GMT References: <15889@shemp.CS.UCLA.EDU> <2000002@otter.hple.hp.com> Sender: news@steinmetz.ge.com Reply-To: barnett@mozart.steinmetz.ge.com (Bruce Barnett) Organization: GE Corp. R & D, Schenectady, NY Lines: 48 In-reply-to: pdc@otter.hple.hp.com (Damian Cugley) In article <2000002@otter.hple.hp.com>, pdc@otter (Damian Cugley) writes: >Almost any UN*X editor should be able to do this. >One notable exception is the SunView textedit, >which allows you to bind filters to keys but doesn't allow you to pick >one completely arbitrarily. Well, you could select the command you want, and then execute the binding to paste it into a known filename. Then you could execute the other binding that will call up the new filter. example: Filter # 1 cat >$HOME/tmp/my-tmp-filter Filter #$2: csh -c `$HOME/tmp/my-tmp-filter` With 3.x, you have to bind both to function keys. With 4.0, you have the option of adding an entry to your pop-up menu inside of textedit. Another method is to have a filter execute another filter specified in the secondary selection. Then you could 1. Type the filter you want to execute. If you had another window with a list of filters, you could use any of them. 2. Select the text you want filtered with pending delete. 3. Select the filter you want with the secondary selection 4. pop up a menu, or press a function key and execute the filter that calls the secondary filter. The filter might be something like csh -c `get_selection 2` The third method is to type in the filter, delete it, and use a filter like: csh -c `get_selection 3` which executes the filter in the clip-board. I may have a few typo's because I am typing this in from home, but it shouldn't be hard to get it working. You should also be able to use more complex statements with sed, awk, etc. besides the simple one word filters. -- -- Bruce G. Barnett uunet!steinmetz!barnett