mirror of
https://github.com/rehan-remade/universal-modder.git
synced 2026-11-05 01:37:40 +00:00
[PR #243] [MERGED] kb search: show the lines that match the most terms first #246
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rehan-remade/universal-modder#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rehan-remade/universal-modder/pull/243
Author: @aetherna1111-glitch
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @rehan-remade
Base:
main← Head:feat/kb-search-best-hit-lines📝 Commits (4)
5112165kb search: show the lines that match the most terms first6fb6224tests: the new kb search test in its own file2dd6b6bkb search: sort hit lines by count alone (sorted() is stable)39c5b5fMerge remote-tracking branch 'origin/main' into land/pr-243📊 Changes
2 files changed (+20 additions, -1 deletions)
View changed files
➕
tests/test_kb_search_hits.py(+16 -0)📝
um/kb.py(+4 -1)📄 Description
What:
um kb searchlists a note's hit lines with the lines matching the most query terms first, then in note order. Test included (in its own file, so it does not collide with other test additions).Checklist
um kb checkpasses (field notes) /uv run --with pytest pytest -q testspasses (code)um kb indexregenerated (field notes) — not applicable, no note changed🤖 Generated with Claude Code
https://claude.ai/code/session_01KKNUp8RuduYreNsFM6rvZg
Generated by Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.