fix: Show result count in grep mode status line (#481)#493
Open
gustav-fff wants to merge 1 commit into
Open
Conversation
Display match count in grep status line alongside mode indicator. Format: "<S-Tab> plain │ results: N" (multi-mode) or "results: N" (single-mode). Modified update_status() in lua/fff/picker_ui.lua to: - Include pagination.total_matched in grep mode status - Show both mode indicator and result count when multiple modes configured - Show only result count when single mode configured - Use separator " │ " between mode and count Fixes file picker status display unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #481
Root Cause
Grep mode status line only showed mode indicator (
<S-Tab> plain) without result count. File mode displaysmatched/totalbut grep mode didn't show match counts.Fix
Modified
update_status()inlua/fff/picker_ui.lua(lines 1962-2030) to:pagination.total_matchedin grep mode status display<S-Tab> plain │ results: Nresults: NTesting
pagination.total_matchedpopulated from grep searchmatched/total)Automated triage via gustav-fff bot.