Skip to content

Tab completion shows all my abbreviations instead of completing a file #12838

Description

@injust

#12764 puts all my abbreviations with --position=anywhere or --command=foo into tab completion. Tab completing file paths is unusable because it is filled up with abbreviations. Also, tab completion with a single file in the directory no longer populates the file name.

In my dotfiles, I have 1 abbreviation using --position=anywhere, and many more using --command=git. Both types are shown by tab completion (regardless of the command).


The use case described in #12764 was:

right now if I don't know the exact abbr in non-command position, I can't use the abbr... but when I am learning abbrs, if I can tab complete to see choices, that helps me learn

The current implementation doesn't seem like a worthwhile change for how breaking it is 😦


fish 4.8.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