Re: Backward searching

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.general
Message-ID <1495474749.1942826.984864656.14E7F190@webmail.messagingengine.com>
Hello Dan,

On Sun, May 21, 2017, at 20:11, -dan d. wrote:
> Looking briefly at what is new in nano 2.8.4 I found a mention of
> a fix for doing a backward search.

To be precise: it wasn't a fix, but just a speedup.

> I didn't find anything in man nano about it.

The "SEE ALSO" section is not to be overlooked.  :)

  man nanorc | grep -C1 backward

> Is this builtin or a key binding?

Searching backward is done by typing ^W M-B, as you
will know.  But it is possible to bind the function
findprevious to some key (M-Q, for example) and then
you can search the next occurrence backwards with a
single keystroke.  See doc/sample.nanorc.

If you want a bindable search-backward function, then
plug a feature request into Savannah.  Or you could try
out  https://savannah.gnu.org/patch/?8791  (although I
don't know if it still applies cleanly).

Benno

-- 
http://www.fastmail.com - A fast, anti-spam email service.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.