Commit f1a8cae
feat: add navigation history to path selector
Implement navigation history that remembers directory selections when navigating up and down multiple levels. The path selector now tracks which items were selected in each directory and restores focus when returning to previously visited directories.
- Add Map to track path -> selection name pairs
- Save selections when navigating up or down
- Restore focus to saved selections when revisiting directories
- Fix event handlers to pass full choice object instead of just value
- Add comprehensive tests for navigation history feature
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 03e74e5 commit f1a8cae
2 files changed
+60
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
282 | 290 | | |
283 | 291 | | |
284 | 292 | | |
| |||
314 | 322 | | |
315 | 323 | | |
316 | 324 | | |
317 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
318 | 331 | | |
319 | 332 | | |
320 | 333 | | |
| |||
327 | 340 | | |
328 | 341 | | |
329 | 342 | | |
330 | | - | |
| 343 | + | |
331 | 344 | | |
332 | 345 | | |
333 | 346 | | |
| |||
346 | 359 | | |
347 | 360 | | |
348 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
349 | 367 | | |
350 | 368 | | |
351 | 369 | | |
352 | 370 | | |
353 | 371 | | |
354 | 372 | | |
355 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
356 | 380 | | |
357 | 381 | | |
358 | 382 | | |
| |||
458 | 482 | | |
459 | 483 | | |
460 | 484 | | |
461 | | - | |
462 | | - | |
463 | 485 | | |
464 | | - | |
| 486 | + | |
465 | 487 | | |
466 | | - | |
| 488 | + | |
467 | 489 | | |
468 | 490 | | |
469 | 491 | | |
470 | 492 | | |
471 | 493 | | |
472 | | - | |
| 494 | + | |
473 | 495 | | |
474 | 496 | | |
475 | 497 | | |
476 | 498 | | |
477 | 499 | | |
478 | | - | |
| 500 | + | |
479 | 501 | | |
480 | 502 | | |
481 | 503 | | |
| |||
0 commit comments