Skip to content

Tab autocompletion in quoted filenames #11050

@lczyk

Description

@lczyk

Description

Run the following commands:

mkdir temp && cd temp
touch 'File Name With Spaces' 
touch file_name_without_spaces
touch file_name_without_spaces && echo 'a bunch of other commands' 2>&1 > /dev/null

Now say i want to re-run the latest command on 'File Name With Spaces'. Press up arrow, navigate to file_name_without_spaces and delete it. Start writing File\ N<tab> and the autocompletion kicks in no problem. Repeat but start writing 'File N<tab> and the autocompletion does not work. This seems to happen only in the middle of editing a historical command, hence the setup above.

https://asciinema.org/a/3FvbVP8qXwYq3KAcCRujilMUA

Context

  • fish, version 4.0b1 💪
  • Darwin marcin.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8122 arm64
  • alacritty 0.14.0 (22a4475)
  • Still happens with sh -c 'env HOME=$(mktemp -d) XDG_CONFIG_HOME= XDG_DATA_DIRS= fish'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions