Skip to content

[REGRESSION] Weird completion behavior with fuzzy algorithm #19338

Closed

Description

@Juhan280

Bug report form

  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.

Describe the bug

When the completion algorithm is fuzzy and you try to complete the first argument of a command (lets say mv) like this mv <tab>, the resulting completion is incorrect when there exists at least one such command where the input currently typed in the commandline fuzzily matches the it (e.g semver bump fuzzily matches mv ; here the number of spaces after mv matters). In such case it completely skips the current command (e.g no completion for mv is provided)

How to reproduce

$env.config.completions.algorithm = "fuzzy"
mv <tab>

Expected behavior

Nu should show the completion of the current command (mv in this example) instead of skipping this and showing all the commands that fuzzily matches the current commandline.

Configuration

key value
version 0.116.1
major 0
minor 116
patch 1
branch makepkg
commit_hash b632ef0
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.99.0 (b940084d7 2026-09-28) (Arch Linux rust 1:1.99.0-1)
cargo_version cargo 1.99.0 (5f94df478 2026-08-27) (Arch Linux rust 1:1.99.0-1)
build_time 2026-10-05 00:02:17 +00:00
build_rust_channel release
allocator standard
features dap, default, lsp, mcp, network, plugin, rustls-tls, sqlite, trash-support
installed_plugins
experimental_options example=false, dc-glob=false, reorder-cell-paths=true, pipefail=true, enforce-runtime-annotations=true, native-clip=false, cell-path-types=false

Activity

  1. added
    status:needs-triage
    on Oct 24, 2026
  2. Juhan280 commented on Oct 24, 2026

    @Juhan280
    ContributorAuthor

    And also I did a git bisect and found this PR #18761 introduced the regression

  3. fdncred commented on Oct 24, 2026

    @fdncred
    Contributor

    @philocalyst any ideas about this?

  4. akasakariko commented on Oct 25, 2026

    @akasakariko
    Contributor

    I'd like to work on this

  5. added a commit that references this issue on Nov 14, 2026
    40c64ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions