Skip to content

fix: Show result count in grep mode status line (#481)#493

Open
gustav-fff wants to merge 1 commit into
mainfrom
triage-bot/issue-481
Open

fix: Show result count in grep mode status line (#481)#493
gustav-fff wants to merge 1 commit into
mainfrom
triage-bot/issue-481

Conversation

@gustav-fff
Copy link
Copy Markdown
Collaborator

Closes #481

Root Cause

Grep mode status line only showed mode indicator (<S-Tab> plain) without result count. File mode displays matched/total but grep mode didn't show match counts.

Fix

Modified update_status() in lua/fff/picker_ui.lua (lines 1962-2030) to:

  • Include pagination.total_matched in grep mode status display
  • Show both mode indicator and result count when multiple modes configured: <S-Tab> plain │ results: N
  • Show only result count when single mode configured: results: N
  • Use separator " │ " between mode and count

Testing

  • Unit tests confirm status text built correctly with result count
  • Integration tests verify pagination.total_matched populated from grep search
  • File mode status display unchanged (still shows matched/total)

Automated triage via gustav-fff bot.

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.
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.

[fff.nvim]: Show amount of results on grep results

2 participants