Skip to content

feat: show all entries when only a finder prefix is typed1 - #148

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
fagianijunior:feat/show-fonts-on-prefix
Jul 3, 2026
Merged

feat: show all entries when only a finder prefix is typed1#148
vaxerski merged 1 commit into
hyprwm:mainfrom
fagianijunior:feat/show-fonts-on-prefix

Conversation

@fagianijunior

Copy link
Copy Markdown
Contributor

Summary

When the user types only a finder prefix (e.g. ' for fonts), the launcher now displays all available results from that finder instead of showing nothing, while respecting the MAX_RESULTS_PER_FINDER limit."

Fixes #144

Motivation

Previously, typing just the font prefix caused the launcher to return early without displaying any results — which wasn't intuitive. The expected behavior is that users can browse all available fonts by typing ' alone, without needing to start filtering right away.

Changes

QueryProcessor.cpp
: when the query contains only the prefix (no additional text), pass an empty query ("") to the selected finder to retrieve all its results, and schedule the UI update via addIdle.

How to test

Open hyprlauncher
Type ' (the font finder prefix)
Verify that all available fonts are displayed in the results list

@vaxerski
vaxerski merged commit ffea482 into hyprwm:main Jul 3, 2026
1 check passed
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.

[BUG] Fonts show when you put in ' (with a space after the ')

2 participants