From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay3.UU.NET ([192.48.96.8]) by hawkwind.utcs.utoronto.ca with SMTP id <24079>; Mon, 27 Mar 1995 15:40:56 -0500 Received: from uucp3.UU.NET by relay3.UU.NET with SMTP id QQyixm06084; Mon, 27 Mar 1995 15:40:42 -0500 Received: from rexago8.UUCP by uucp3.UU.NET with UUCP/RMAIL ; Mon, 27 Mar 1995 15:40:41 -0500 Received: by summitis.com (smail2.5) id AA07733; 27 Mar 95 15:16:03 EST (Mon) Received: from summitis.com by rserv1.summitis.com; Mon, 27 Mar 1995 15:14 EST Received: from cheetah by rexsrvr2.summitis.com (AIX 3.2/UCB 5.64/4.03) id AA113230; Mon, 27 Mar 1995 15:13:48 -0500 Received: by cheetah (AIX 3.2/UCB 5.64/4.03) id AA21809; Mon, 27 Mar 1995 15:13:46 -0500 From: hc05@summitis.com Message-Id: <9503272013.AA21809@cheetah> Subject: Re: Editors compendium & sam To: sam-fans@hawkwind.utcs.toronto.edu (Sam mailing list) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Date: Mon, 27 Mar 1995 15:40:47 -0500 Thanks for the replies so far on the editor compendium. I'll respond to both Erik & Rob here. A few of the suggestions don't work in all situations, so we'll have to decide how to state them. Beirne From: Erik Quanstrom >>Goto column number: It says you can do this, but I don't know how. I know >> I can put the cursor anywhere I want with the mouse, but don't know >> how to go to the nth column on a line. >-/^/+#10 > >go to 10th column Good, but it won't work on the first line, if this matters. >>Goto begin next line: ? >+,/^/ (0th postion on next line) This doesn't work if you are at the beginning of a line. How about just /^/ > >but for god sakes, use the mouse. Agreed. > >>Goto begin prev line: ? >- >-,/^/ This selects the previous and current lines. > >>Move cursor up by page: yes, using the mouse on the scrollbar. >using up on keyboard, too >>Move cursor dn by page: yes, using the mouse on the scrollbar. >using down on keyboard, too Of course! > >>Scroll curr line to TOS/MOS/BOS: Yes/No/No. >use the mouse You can use the mouse to move the current line to the top of the screen, but there is not a simple way to move the current line to the middle or bottom, short of a bunch of trial-and-error clicks, unless there is something I am missing. > >>Binary editor: They give three categories. I think this one is closest: >> "displays binary characters doesn't do CR/LF conversion on binary files" >elides \0. Good. I'll have to remember this. From: uunet!plan9.att.com!rob >it seems that sam doesn't fit their model very well, which doesn't surprise me. >one thing they can't encompass is that the mouse language and command >language solve different sets of problems. > I agree, since sam has almost no features and almost infinite capabilities. >general comments: there is no such thing (in sam as i wrote it, at least) as a >sam macro, so i'm not sure what you mean by the word 'macro'. I looked at the compendium again, and found a better choice than to say macros, which is to use the following, so I will substitute this wherever I said macro. ^ The editor does not have a specific command to do this, but it can be very easily done with a couple of keystrokes. I.e. Clear buffer may be implemented as: select buffer contents command, delete selection. The compendium does have one item as being implemented with a macro, which is "Spell check select text". I did this with an external script that I wrote that is a front end to ispell, but this should go in the filter category in the compendium rather than as a macro. > >details: > > Goto column number: It says you can do this, but I don't know how. I know > I can put the cursor anywhere I want with the mouse, but don't know > how to go to the nth column on a line. >sam has no notion of column, only characters. > Goto begin next line: ? This highlights the next line. >+ > Goto begin prev line: ? >- This highlights the previous line. > Tag search: Yes, with the help of an external program. >if the program's not there, does that count? Good question. I just looked, and I got the tag program with the samx extensions, which I am not counting here, although I couldn't live without them. > > Interactive debugging: No. >with acid, the external B command does a nice job. Is acid available for UNIX? This does make me realize that I should add Plan 9 to the OS list. > > Syntax highlighting: No. >it's really 'no', but i don't miss it in C because of the double-clicking rules Agreed. Also, I've found regular expressions to convey the C constructs I care about. > Srch select region: No. >x/pattern/p This one could be a yes. It depends on what they mean. This command selects the last occurrence in the selected region, which may be fine. > > List all occurances: Yes. >occurrences. tell me this is your typo. Its not my typo. I cut & pasted it from the compendium. oh yes, i missed the 'begin' : >Goto begin next line: ? +0+#0 Good, but it won't work if you are at the beginning of a line. >Goto begin prev line: ? -0-#0 Good, but it won't work if you are at the beginning of a line. -- ------------------------------------------------------------------------------- Beirne Konarski | Reading maketh a full man, conference a beirnek@summitis.com | ready man, and writing an exact man. "Untouched by Scandal" | -- Francis Bacon -------------------------------------------------------------------------------