feat: rank search results by match quality and launch frequency
Some checks failed
release / build (push) Failing after 4s
Some checks failed
release / build (push) Failing after 4s
Track per-app launch counts in ~/.cache/breadbox/history.json. When a query is active, sort visible results by fuzzy match quality (exact > prefix > contains > subsequence) then by launch count descending, so the most relevant and most-used app rises to the top. The base list (no query) also surfaces most-launched apps above unvisited ones.
This commit is contained in:
parent
fde5fe7c64
commit
423d00383b
6 changed files with 106 additions and 17 deletions
|
|
@ -1,9 +1,10 @@
|
|||
[package]
|
||||
name = "breadbox-shared"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
toml = "0.8"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue