home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / editors / 3320 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!agate!iat.holonet.net!dattier
  3. From: dattier@orac.holonet.net (DWT)
  4. Subject: Re: mapping space bar
  5. Message-ID: <C1Jr6E.rn@iat.holonet.net>
  6. Sender: usenet@iat.holonet.net (USENET News System)
  7. Nntp-Posting-Host: holonet.holonet.net
  8. Organization: Information Access Technologies, Inc. of Berkeley, CA
  9. References: <C1GJB0.7Br@sci.kun.nl> <C1H623.A8t@boi.hp.com> <1993Jan27.214031.3457@bcars6a8.bnr.ca>
  10. Date: Thu, 28 Jan 1993 04:30:13 GMT
  11. Lines: 26
  12.  
  13. In article <1993Jan27.214031.3457@bcars6a8.bnr.ca> djf@bnr.ca asks, among
  14. other things to which I have no answers, this one question to which I do:
  15.  
  16. >BTW:
  17. > - is there a way to pipe just *1* line through a filter?  I find things like
  18. >!jsome_command<return>
  19. >always send two lines.
  20.  
  21. !!command              or
  22. !_command              or
  23. :.!command
  24.  
  25. >Also, is there an easy way to have *add* filtered
  26. >output rather than have it replace the input?
  27.  
  28. Hmm.  One could always duplicate the text to be filtered and then filter only
  29. the second copy of it.  Say it's a single line: yyp to duplicate it; the
  30. cursor will then be on the lower of the two identical lines, so !!command to
  31. filter it, leaving the upper line unchanged.  I'm trying to think of some way
  32. to use the :r !command construction (the way one usually adds the output of a
  33. command to the buffer) but I can't figure out how to feed part of the text to
  34. it.  One can use :r !command % to operate on the entire text as most
  35. recentlly written (not necessarily as currently in the buffer).
  36.  
  37. David W. Tamkin  P. O. Box 59297  Northtown Station, Illinois  60659-0297
  38. dattier@{holonet.net|ddsw1.mcs.com}  CIS: 73720,1570   MCI Mail: 426-1818
  39.