9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Maurí­cio CA" <mauricio.antunes@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Input/output
Date: Fri,  4 Dec 2009 20:44:37 -0200	[thread overview]
Message-ID: <hfc3cl$ahi$1@ger.gmane.org> (raw)
In-Reply-To: <dd6fe68a0912041051y2e03f582hb6a8f9ce9f58d766@mail.gmail.com>

 >> 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




  reply	other threads:[~2009-12-04 22:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<hf8tg7$hed$1@ger.gmane.org>
2009-12-03 19:34 ` erik quanstrom
2009-12-04 13:13   ` Maurí­cio CA
2009-12-04 18:51     ` Russ Cox
2009-12-04 22:44       ` Maurí­cio CA [this message]
2009-12-05  1:45       ` Jorden Mauro
     [not found] <<3aaafc130912041745ub300dc6w498ddedfea62d837@mail.gmail.com>
2009-12-05  1:53 ` erik quanstrom
2009-12-05  4:16   ` Jorden Mauro
2009-12-03 17:45 Maurí­cio CA
2009-12-03 18:27 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hfc3cl$ahi$1@ger.gmane.org' \
    --to=mauricio.antunes@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).