Skip to content

File browser plugin: New files filtered out by default #712

@Khazbs

Description

@Khazbs

Description

The file browser plugin doesn't list empty files by default, as the "Show Binary" option in "Filters" is off by default. Because of this, when creating files using the "New File" command in the file browser plugin, I get the following error:

The new file is currently filtered out. You need to adjust your filter settings to make the file visible

After enabling the "Show Binary" option, empty files are listed. I don't think such default behavior is particularly beginner-friendly.

Steps to reproduce

  1. Start xed;
  2. Open the side pane file browser;
  3. In the file browser's context menu, open "Filters" and ensure "Show Binary" is as unchecked as it is by default;
  4. In some directory, use the file browser's "New File" command to create a new file.

Actual result

  • An alert appears: "The new file is currently filtered out. You need to adjust your filter settings to make the file visible";
  • The new file is not visible in the file browser.

Expected result

  • The new file created through the file browser should be visible with default settings.

Possible solutions

  • Don't make new files empty, put a newline in them;
  • Don't assume empty files to fall into the "Binary" category;
  • Enable "Show Binary" by default.

Not sure which is preferable.

Environment

  • xed 3.8.4
  • Cinnamon 6.4.13
  • Linux Mint Debian Edition 7 (Gigi)

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