jed-users mailing list

[2013 Date Index] [2013 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] isearch_forward match highlighting


On Sat, Dec 28, 2013 at 11:25 PM, gamo <gamo@xxxxxxxxxxxx> wrote:
> I don't, know, possibly hard from scratch, but there is a comand line
> replacement for grep that does that and efficiently. It's the 'silver
> searcher' called 'ag'

Does Ag only display lines that match?  (And therefore hide lines that
do not match?)

If so, what I want is different.

1) I only want to search the lines that are currently displayed on the screen.
2) I want to highlight matches in those lines.
3) I want to switch between searching and editing very quickly
(preferably without any visual flickering).

Grep/Ack/Ag seem to be designed for a different purpose.

I guess I could achieve the result I want if:

1) In Jed, I could pipe the current displayed portion of a buffer to a
command, and then display the results of the command over the buffer,
and

2) I could get Grep/Ack/Ag to display all the lines (not just matching
lines), and highlight all the matches, then...

This would be pretty close to what I want.  However, such a solution
would probably not be able to highlight other syntax the way Jed does.
 So I would have to visually filter out all the syntax highlighting
disappearing and then reappearing.  And there probably would not be
any way to move the cursor to the next (or previous match) without
hiding and then regenerating the Grep/Ack/Ag output.  So I think there
would be a lot of (very distracting) color/highlight
flickering/blinking in such a solution.  Or am I wrong?

-Parke
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2013 date index] [2013 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]