File browser plugin: New files filtered out by default

Open
#712 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, linux
Domain
desktop

Research direction

Start by reproducing the issue in xed's file browser with the default Filters settings, then trace the New File command and the filtering behavior that classifies empty files. Done means a newly created file is visible in the file browser without changing the default filter settings.

Written by the indexing model from the issue text.

Description

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)
Dominant language
C
Stars
551
Forks
115
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/xed

All issues in linuxmint/xed

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.