[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Conkeror like hints for incremental search

From: Juri Linkov
Subject: Re: [PATCH] Conkeror like hints for incremental search
Date: Wed, 25 Jan 2012 00:55:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu)

> Anyway, please review it and if there is any interest in it merge it.

Thanks for proposing a useful feature.

I suggest to implement more simple and clean design that is
based on well-known Emacs features:

1. On the next matched strings display numbers counting from 1.
   You could try doing with tooltips that will look like in Conkeror,
   (this might be too slow, but worth trying).
   This is easy to do in `isearch-lazy-highlight-update'

2. Add a new numeric argument `count' to `isearch-repeat-forward' (`C-s')
   and `isearch-repeat-backward' (`C-r').

   This would allow easy navigation with e.g. `C-8 C-s' for the 8-th match
   in forward direction.

3. For backward matches we could display negative numbers,
   and `C-s' will treat negative arguments like `C- C-8 C-s'
   as positive counts for backward search.

   Also `C-r' would treat positive arguments like `C-8 C-r' as positive
   counts in backward direction.  A negative arguments for `C-r' like
   `C- C-8 C-r' would go to the 8-th match in forward direction, naturally.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]