Skip to content

Conversation

@tudorbarascu
Copy link
Member

@tudorbarascu tudorbarascu commented Jan 4, 2026

Use the unaccent function to improve locator and search more easily for layer names, layouts and bookmarks.

Unaccent also now works for the search in the processing toolbox.

E.g. from now on if a user searches for "creme" the locator will match a layer named "crème", and vice versa.

I tested all by hand (except the locator actions filter as I got lazy). Sometimes the CI fails but unrelated. I don't know if the processing toolbox search should have come in another pull request, I just added it here.

Fixes #39475

always perform unaccent to both the layer name and search term.

This allows users to find layers regardless of accents - for example,
searching for "creme" will match a layer named "crème", and vice versa.
@github-actions github-actions bot added this to the 4.0.0 milestone Jan 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit cc72b2e)

🍎 MacOS Qt6 builds

Download MacOS Qt6 builds of this PR for testing.
This installer is not signed, control+click > open the app to avoid the warning
(Built from commit cc72b2e)

Makes the Settings and Actions locator filters always perform
accent-insensitive matching by applying QgsStringUtils::unaccent()
to both the item name and search term before scoring.

E.g. searching for
"parametres" will match "Paramètres généraux".
@tudorbarascu tudorbarascu changed the title Unaccent layer names, bookmarks and layouts in locator Unaccent layers, bookmarks, actions, layouts and settings in locator Jan 4, 2026
@nicogodet
Copy link
Member

Does it fix #39475 ?

@tudorbarascu
Copy link
Member Author

Does it fix #39475 ?

Partially, as it does fix the unaccent for the locator search bar. I haven't looked at the processing search yet.

@tudorbarascu tudorbarascu changed the title Unaccent layers, bookmarks, actions, layouts and settings in locator Unaccent layers, bookmarks, actions, layouts and settings in locator and processing toolbox search Jan 5, 2026
@tudorbarascu
Copy link
Member Author

@nicogodet It does fix it now.

fixes qgis#39475

This resolves the issue where searching for "selection" would not match
algorithms named "Sélection par localisation" and similar cases with
accented characters.
@nicogodet
Copy link
Member

@nicogodet It does fix it now.

Nice!
Could you edit first message so "Fixes #39475"?

@lbartoletti lbartoletti merged commit 3c178a3 into qgis:master Jan 7, 2026
27 checks passed
@tudorbarascu
Copy link
Member Author

Thanks @lbartoletti

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.

Inconsistent accent sensitiveness in search bars

3 participants