Skip to content

custom completion on a directory type fallbacks to path completion #17856

@Juhan280

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 returning nothing from the completion function, it fallbacks to path completion instead of directory completion.

def return-nothing [] {}
def dir [path: directory@return-nothing] {}

How to reproduce

Image Image

Expected behavior

It should only show directories as fallback.

Configuration

key value
version 0.111.0
major 0
minor 111
patch 0
branch
commit_hash
build_os linux-x86_64
build_target aarch64-linux-android
rust_version rustc 1.91.1 (ed61e7d7e 2025-11-07)
rust_channel 1.91.1-x86_64-unknown-linux-gnu
cargo_version cargo 1.91.1 (ea2d97820 2025-10-10)
build_time 2026-03-01 08:49:59 +00:00
build_rust_channel release
allocator standard
features default, mcp, network, plugin, rustls-tls, sqlite, trash-support
installed_plugins
experimental_options example=false, reorder-cell-paths=true, pipefail=true, enforce-runtime-annotations=false, native-clip=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions