Skip to content

Conversation

@kartben
Copy link
Contributor

@kartben kartben commented Oct 23, 2025

This implements the same improved sorting algorithm as was recently added to the documentation (see #98016), namely:

  • A match in a Kconfig symbol's name is given more weight than a match in its prompt.
  • Field-length normalization is applied so that the shorter the field, the higher its relevance (e.g. searching for "sensor" will now basically yield CONFIG_SENSOR as the top result as the query basically matches 100% of the symbol's name.

Also clean up guiconfig script to get rid of legacy Python 2 support that's actually getting in the way by making CI compliance checks (PyLint and PyCompat) unhappy

@kartben kartben force-pushed the kconfig_search branch 3 times, most recently from 1a0e781 to e4555ff Compare October 23, 2025 15:09
No reason to support Python 2 anymore.

Signed-off-by: Benjamin Cabé <[email protected]>
_menu_scroll is declared as global but never used in _jump_to.
Removing the unnecessary declaration.

Signed-off-by: Benjamin Cabé <[email protected]>
Changed orient=VERTICAL to orient="vertical".
VERTICAL wasn't imported; ttk.Panedwindow expects a string.

Signed-off-by: Benjamin Cabé <[email protected]>
This implements the same improved sorting algorithm as was recently
added to the documentation (see zephyrproject-rtos#98016),
namely:

- A match in a Kconfig symbol's name is given more weight than a match
  in its prompt.
- Field-length normalization is applied so that the shorter the field,
  the higher its relevance (e.g. searching for "sensor" will now
  basically yield CONFIG_SENSOR as the top result as the query basically
  matches 100% of the symbol's name.

Signed-off-by: Benjamin Cabé <[email protected]>
@sonarqubecloud
Copy link

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.

1 participant