Commit 3cbf3fa
committed
feat: Boost recently used files in snacks picker
Frequently and recently modified org files now rank higher in
ambiguous fuzzy matches. This addresses a common pain point with
similar-looking entries like dailies, where the fuzzy matcher alone
cannot disambiguate reliably.
The boost is intentionally subtle — capped to bridge small score
differences without overriding clear match quality. It uses the
snacks picker's native frecency mechanism plus mtime-based seeding
for files not yet visited in the current session.
A new toggle makes per-item scoring visible on demand, prepending
raw score and frecency values to each result. Useful for tuning
expectations and exploring what ranking heuristics would help for
specific workflows.1 parent 94aef63 commit 3cbf3fa
2 files changed
Lines changed: 38 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
152 | 167 | | |
153 | | - | |
154 | | - | |
| 168 | + | |
| 169 | + | |
155 | 170 | | |
156 | 171 | | |
157 | 172 | | |
| |||
285 | 300 | | |
286 | 301 | | |
287 | 302 | | |
| 303 | + | |
288 | 304 | | |
289 | 305 | | |
290 | 306 | | |
| |||
302 | 318 | | |
303 | 319 | | |
304 | 320 | | |
| 321 | + | |
305 | 322 | | |
306 | 323 | | |
307 | 324 | | |
308 | 325 | | |
309 | 326 | | |
310 | 327 | | |
| 328 | + | |
| 329 | + | |
311 | 330 | | |
312 | 331 | | |
313 | 332 | | |
314 | 333 | | |
315 | 334 | | |
316 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
317 | 340 | | |
318 | 341 | | |
319 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
0 commit comments