nushell / nushell/nushell

Filename completion issue with whitspece characters

Open
#4,595 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A:completions category:bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.