Skip to content

Tab completion sorts folder names with the slash #12695

Description

@injust

fish's tab completion sorts folder names with the slash. So a folder named "a b" is sorted before "a", which doesn't obey conventional ordering.

cd (mktemp -d)
mkdir a 'a b'
ls <tab>

will output

a b/  a/

I'm pretty sure this is unintended behaviour. I know ls doesn't do this, even if you do ls -F (which displays folders with a trailing slash).


fish 4.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions