Filename completion issue with whitspece characters
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 40.5k
- Forks
- 2.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 85
Description
Describe the bug
Filename completion does not work when dealing with two files with same initial part if one has a whitespace character.
How to reproduce
Create two files:
touch "abcdefg"
touch "abcdefg h"
Then type less ab and press tab.
Expected behavior
After pressing tab, filename completion should automatically complete the first common part of the two filenames abcdefg.
Screenshots
No response
Configuration
No response
Additional context
No response
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 with touch "abcdefg", touch "abcdefg h", then less ab and Tab. The issue names no files or tests, so locate the filename-completion entry point and its tests. Done means Tab completes the shared abcdefg prefix for both filenames.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100