Skip to content

settings: Added a way to add additional search keywords#2438

Merged
madcodelife merged 2 commits into
longbridge:mainfrom
Libadoxon:main
Jun 5, 2026
Merged

settings: Added a way to add additional search keywords#2438
madcodelife merged 2 commits into
longbridge:mainfrom
Libadoxon:main

Conversation

@Libadoxon

Copy link
Copy Markdown
Contributor

Description

This adds a field for both SettingsItem::{Item, Element} to allow additional search aliases for that item. This can be used to either provide more search terms for a field, e.g. having a field titled "Enable Two-factor auth" aliased with "MFA". Another use case is to allow custom elements to provide their own search terms as they don't have/want a title/description.

Screenshot

N/A

How to Test

cargo clippy + verified behavior with example in the settings story

Checklist

  • I have read the CONTRIBUTING document and followed the guidelines.
  • Reviewed the changes in this PR and confirmed AI generated code (If any) is accurate.
  • Passed cargo run for story tests related to the changes.
  • Tested macOS, Windows and Linux platforms performance (if the change is platform-specific)

@madcodelife madcodelife changed the title settings: Added a way to add additional search aliases for an item/el… settings: Added a way to add additional search keywords Jun 5, 2026
@madcodelife

Copy link
Copy Markdown
Member

I have renamed search_aliases to keywords and added docs.

Thank you!

@madcodelife madcodelife enabled auto-merge (squash) June 5, 2026 03:52
@madcodelife madcodelife merged commit 7009e17 into longbridge:main Jun 5, 2026
4 of 5 checks 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.

2 participants