Re: less-like behavior for search/search-next

2002-09-17 Thread Benjamin Pflugmann

Hi.

On Tue 2002-09-17 at 01:32:22 -0700, Jeremy Lin wrote:
[...]
 So how do people right now search for multiple occurences of a pattern
 anyway?

By pressing 'n', like in 'less'. :-)

Never noticed that re-searching for the same pattern does not find the
next match, like in less, because I never needed it. (well,
additionally, on german keyboards, '/' is 'SHIFT-7').

 By having separate bindings for search, search-next, and
 search-opposite?

Seems so. Default binding are '/', 'n' and 'ESC-/'.

HTH,

Benjamin.

-- 
[EMAIL PROTECTED]



msg30983/pgp0.pgp
Description: PGP signature


Re: less-like behavior for search/search-next - macros

2002-09-17 Thread Sven Guckes

* Jeremy Lin [EMAIL PROTECTED] [2002-09-17 10:38]:
 Is there a clean way to get less-like behavior for
 searching in the internal pager? In particular, I'd like
 search-next (or search) to prompt for a new search
 pattern, but keep the current as default, and move to
 the next match if one is already at the top of the screen.

so make command 'n' to first move one line down before searching again:
   macro  pager  n  next-linesearch\n

 Similarly for search-opposite. Ideally, this
 behavior would be a configuration variable.

ideally the internal would be less
plus the coloring of most, right?  ;-)

 So how do people right now search for
 multiple occurences of a pattern anyway?

one by one, i suppose.

 By having separate bindings for search,
 search-next, and search-opposite?

probably.

 P.S. Please cc me, as I'm not on the list.

please let your mutt tell us this by adding
lists [EMAIL PROTECTED] to your setup!
(and read my sig)

Sven

-- 
Sven Guckes   [EMAIL PROTECTED]
use lists address   when you are *not* subscribed
use subscribe address   when you   *are*   subscribed
- http://www.math.fu-berlin.de/~guckes/mutt/setup.html