Skip to content

Match count in status bar - #4039

Closed
redsti-github wants to merge 1 commit into
micro-editor:masterfrom
redsti-github:feature/match-count
Closed

redsti-github wants to merge 1 commit into
micro-editor:masterfrom
redsti-github:feature/match-count

Conversation

@redsti-github

Copy link
Copy Markdown
Contributor

From #4030

Adds the $(matches) option to the status bar, which displays the total number of matches (and current match) found while using the Find, FindNext and FindPrevious actions.

Displays as [X/Y] when searching and [Y matches] after performing any action.

Currently limits the number of matches to 1000 for performance reasons.

@redsti-github

Copy link
Copy Markdown
Contributor Author

TODO:

  • make the maximum match count an editable setting, rather than just 1000
  • for performance, we could cache the found matches, and if the next action is FindNext or FindPrevious we can use the cache and not search the entire file again
  • when placing the cursor back on a match, show [X/Y]
  • update the docs/help pages

@usfbih8u

usfbih8u commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

I think this would be better as a plugin instead, if you want. All the extra computation only to count, not a fan. It is a hack.

@redsti-github

Copy link
Copy Markdown
Contributor Author

Closing this since i don't think i will work on it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants