9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Acme: how to search only in selection
Date: Thu,  9 Aug 2012 15:46:47 +0200	[thread overview]
Message-ID: <CAOEdRO2V09v19BX_S2VmBy2tgukj3mEU-QrKmkG0OLayNLL=MA@mail.gmail.com> (raw)
In-Reply-To: <9025913.n3tMFBrZiE@coil>

On 9 August 2012 15:11, dexen deVries <dexen.devries@gmail.com> wrote:
> Hi list,
>
>
> how do I perform right-click search only in highlighted range?
>
>
> Use case: while editing C-like code (PHP), I highlight whole function by
> clicking on opening brace and would like to search only the selection for all
> occurrences of some symbol stored in window's tag. Preferably with wrap-around
> after reaching end of the selection :D
>
>
> (cue boyd with ``it's easier to post to 9fans than to think'')
>
> --
> dexen deVries
>
> [[[↓][→]]]
>

I don't know a direct way and am afraid there is no one immediately
ready to use.
Once the text is selected, however, you may fairly easily copy it to a
new window, and then rightclicking should work, even with a
wrap-around...

Otherwise, using '>g pattern' will make a list, in the Error window,
of lines where the pattern is, so then you can go through it.

Ruda



  reply	other threads:[~2012-08-09 13:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 13:11 dexen deVries
2012-08-09 13:46 ` Rudolf Sykora [this message]
2012-08-09 14:00   ` dexen deVries
2012-08-09 15:28     ` Matthew Veety
2012-08-09 15:47       ` Paul Lalonde
2012-08-09 17:30         ` dexen deVries
2012-08-09 19:08           ` erik quanstrom
2012-08-09 19:27             ` Kurt H Maier
2012-08-09 20:00             ` dexen deVries

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='CAOEdRO2V09v19BX_S2VmBy2tgukj3mEU-QrKmkG0OLayNLL=MA@mail.gmail.com' \
    --to=rudolf.sykora@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).