benma / visual-regexp.el

A regexp/replace command for Emacs with interactive visual feedback
392 stars 28 forks source link

Lazy highlight of regexps #71

Open codecoll opened 2 years ago

codecoll commented 2 years ago

Very useful package, nice work, but using lazy highlight could be a great improvement, because when using it with big text files, it is sometimes very slow to type a regexp, even with the 50 default limit. Sometimes one has to wait seconds after every keypress while visual-regexp updates the display.

With lazy highlight it would only highlight if the user is idle for a short while, that is he stopped typing:

(if (sit-for 0.5)) ...