Skip to content

Implement levenshtein distance for matching potential commands against (accidental) wrongful inputs #1934

@laim2003

Description

@laim2003

Feature idea

As a user,
I want the system to suggest the most likely intended command when I enter a mistyped or invalid command,
so that I can quickly correct mistakes. We already have auto completion infrastructure as in #1392, but this only works on certain systems and also, it would still be nice to have this feature

Additional context

Criteria:

  • The system compares user input against known commands using Levenshtein distance
  • Suggestions are shown only when similarity exceeds a defined threshold
  • The best‑matching command is suggested in a clear “Did you mean …?” message

The matching algorithm is pretty straight-forward, so that should not be a super big issue. However, we need to define, how we are going to embed this feature into the existing architecture: for commandlets, for arguments/command parameters etc.

Metadata

Metadata

Assignees

Labels

CLIIDEasy command-line-interface (parsing args, etc.)bashbash, zsh, git-bash (integration, scripts)completionauto-completion in bash or build in CLIenhancementNew feature or request
No fields configured for Feature.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions