Autofill duplication in IDE/columnar menu layouts when all variants share a prefix
Open
Nobody has claimed this yet.
A:completions
category:bug
- Dominant language
- Rust
- Stars
- 40.5k
- Forks
- 2.3k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 79
Description
Describe the bug
When using the IDE or columnar menu layouts, the menu auto-fills a character if all variants start with the same prefix. However, when selecting a variant, this results in duplicated characters in the final input.
How to reproduce
Expected behavior
Replace autofilled chars with chosen option
Configuration
| key | value |
|---|---|
| version | 0.105.1 |
| major | 0 |
| minor | 105 |
| patch | 1 |
| branch | makepkg |
| commit_hash | 1fe62ee6132372453d6bfeb95978ee61a2b77f3b |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.87.0 (17067e9ac 2025-05-09) (Arch Linux rust 1:1.87.0-2) |
| cargo_version | cargo 1.87.0 (99624be96 2025-05-06) (Arch Linux rust 1:1.87.0-2) |
| build_time | 2025-06-10 20:31:33 +00:00 |
| build_rust_channel | release |
| allocator | standard |
| features | default, sqlite, trash |
| installed_plugins |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the IDE and columnar menu layouts with options sharing a prefix, then trace the menu autofill and variant-selection handling. Done means selecting a variant replaces the autofilled characters instead of duplicating them in the final input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100