Draft: Match Number and Total Matches in Search
When pressing Ctrl+F in Kate, the editor shows the incremental find bar. The bar display previous/next navigation arrow buttons, but it does not show the user which match they are on or how many total matches exist. The feature request is to show a label like (N/M) — or nothing at all when there are no matches — side by side with the arrow buttons.
This is the request on BUG: 397272
What has been changed:
Add a new QLabel named matchCounter, hidden by default.
updateMatchCounter method:
Searches the entire Document for all occurrences of the current pattern. Count the number, finds the current index, and hide or show the widget.
The document is searched again for incremental searches.
Unit Tests were added for the feature.
Edited by Henrique Marks