Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

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

Conversation

@gustav-fff

@gustav-fff gustav-fff commented May 20, 2026

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

AltStyle によって変換されたページ (->オリジナル) /