From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <5ad5dfde114f33e7a3520275a573d2d8@proxima.alt.za> Date: Wed, 2 Sep 2015 17:01:05 +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 Subject: Re: [9fans] acme search backwards Topicbox-Message-UUID: 686ede22-ead9-11e9-9d60-3106f5b1d025 On 2 September 2015 at 16:37, Alexander Kapshuk wrote: > On Wed, Sep 2, 2015 at 5:01 PM, wrote: >>> Also there was a discussion on 9fans about it with other >>> suggestions/solutions. >> >> :-/RE >> >> is what I remember Russ recommending, It's not perfect, but it does help. >> >> Lucio. >> >> > > Page 4 of A Tutorial for Sam Command Language, by Rob Pike, suggests > the following usage: >>>> > Just precede the pattern with a minus > sign, which reverses the direction of the search: > -/Emacs/ > > Similarly, > $-/Emacs/ > finds the last occurrence in the file, so > 0/Emacs/,$-/Emacs/ > selects the text from the first to last Emacs, inclusive. I actually know all of what you write, and the question was meant explicitly differently. I.e., the suggestions you mention are still far from reciprocal to a b3-click on any word in the text file. Copying (or even selecting a whole portion of) a word to get it into a formula like :-/.../ somewhere is ugly, to say the least. Thanks anyway! Ruda