From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net From: =?ISO-8859-1?Q?Maur=ED=ADcio_CA?= Date: Fri, 4 Dec 2009 20:44:37 -0200 Message-ID: References: <7b20ed61c1b8ecf1d0ee9c766a185837@ladd.quanstro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: Subject: Re: [9fans] Input/output Topicbox-Message-UUID: a7b8324e-ead5-11e9-9d60-3106f5b1d025 >> Thanks, that's exactly what I need. My idea is to use this >> inside sam itself with '|', so that I can easily edit small >> parts of big files. > Why not just highlight the section you want to edit and then > type commands into the ~~sam~~ window? Major probable real reason is that I have not yet master the proper way to do everything. Second major reason is that I'm happy with 'rc' scripts. I've been writing them for anything I think of, just to learn it :) Others: * Sometimes I want to do a long, complex edit in a section, but keep all changes in a single undo/redo step for the main document. * I like the 'x' command, but it changes the selection. If you use it many times it may be tiresome to select the same section of text many times. I can't use 'k' to help here, as I think it is not supposed to keep track of changes in selection size. * When reviewing many similar, but not small, pieces of text, the command below is pretty nice ('eec' is my "sub-sam"): x/cool_regexp/| eec * If I'm working on a section of a file, big enough not to fit in the screen, I like to isolate it. * When you say 'window', you mean that GUI thing? At this time I use 'sam -d', but some day I may attach a mouse to my computer and try that :) Thanks for your comments, or others you may have. Best, Maur�cio