Skip to content

File picker: directory completion messes with opening a file #329

Description

@ivanovkirilg

Bug

Given the File Picker is targeting a directory which contains:

  • a file with some name, e.g. .gitignore
  • a directory whose name is the start of the file's name, e.g. .git/

When the user attempts to type the name of the file,

Then a directory separator / is automatically added: .git/, preventing the user from typing in the filename.

(The separator can be deleted, and the filename then typed in successfully, so this is mostly a nuisance.)

Image

Image

Source

I believe this is the 'offending' line:

state.file_picker_pending_name = entry.as_path().into()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions