From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <9025913.n3tMFBrZiE@coil> References: <9025913.n3tMFBrZiE@coil> Date: Thu, 9 Aug 2012 15:46:47 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Acme: how to search only in selection Topicbox-Message-UUID: a9596526-ead7-11e9-9d60-3106f5b1d025 On 9 August 2012 15:11, dexen deVries 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-a= round > after reaching end of the selection :D > > > (cue boyd with ``it's easier to post to 9fans than to think'') > > -- > dexen deVries > > [[[=E2=86=93][=E2=86=92]]] > 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