Reputation: 4521
I think ordinary editors can display the number of matches while searching strings like following. How to do this in Emacs? Especially I want to see these numbers while using isearch-forward
and isearch-forward-regexp
.
Upvotes: 6
Views: 621
Reputation:
The 3rd party package anzu.el displays the current match and the total number of matches of the current incremental search in the mode line.
You can install from Marmalade or MELPA with M-x package-install RET anzu
. Note that neither of these archives are enabled by default in Emacs, so you need to customize package-archives
as explained in the instructions of the corresponding archive.
Upvotes: 7