Repository navigation
Commit 3bf0879
committed
feat: add inline previews for selected completions
Replace opt-in cycle insertion with a default display-only completion preview,
configurable with --preview. Emphasize matched input and share one mapping for
cursor placement and mouse positions without editing the buffer during preview.
Accept and submit the selected completion with one Enter press when previews
are enabled. Disabling previews restores two-step Enter: accept, then submit.
Keep Right/End acceptance aligned with the visible candidate and prevent hidden
history suggestions from taking precedence. Preserve shared-prefix expansion and
unique-match acceptance.
Map Unicode case expansions back to original input and candidate coordinates.
Traverse the ordered display mappings once during rendering.
Cover Unicode, quotes, escaped filename spaces, mouse clicks, cancellation,
selection stability and resizing. Document basic usage in the completion section.
Validation: 1089 library tests passed (1 ignored), 28 Bash PTY scenarios passed,
formatting and Clippy passed, release build and documentation completed.
Documentation retains existing rustdoc warnings.1 parent f0ab3d0 commit 3bf0879
10 files changed
Lines changed: 1216 additions & 473 deletions
File tree
- src
- app
- actions
- completions
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
457 | 469 | | |
458 | 470 | | |
459 | 471 | | |
| |||
803 | 815 | | |
804 | 816 | | |
805 | 817 | | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| |||
0 commit comments