Skip to content

nu-cli/completions: verify case for matching dir, .nu, file and command#5506

Merged
fdncred merged 3 commits intonushell:mainfrom
herlon214:fix/file-completions-verify-case
May 11, 2022
Merged

nu-cli/completions: verify case for matching dir, .nu, file and command#5506
fdncred merged 3 commits intonushell:mainfrom
herlon214:fix/file-completions-verify-case

Conversation

@herlon214
Copy link
Copy Markdown
Contributor

Description

This PR adds back the check for CompletionOptions.case_sensitive when doing the completion match for directory, dot nu, file and command completions.
Probably fixes #5438, but I couldn't test correctly because none of the 3 OSes I use have a case sensitive filesystem.

Tests

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --all --all-features -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo build; cargo test --all --all-features to check that all the tests pass

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 11, 2022

thanks

@fdncred fdncred merged commit a925674 into nushell:main May 11, 2022
@herlon214 herlon214 deleted the fix/file-completions-verify-case branch May 12, 2022 09:22
fennewald pushed a commit to fennewald/nushell that referenced this pull request Jun 27, 2022
…nd (nushell#5506)

* nu-cli/completions: verify case for matching dir, .nu, file and command

* avoid copy

* fix clippy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Prefix-based completion is apparently case-insensitive

3 participants