Files icon indicating copy to clipboard operation
Files copied to clipboard

Feature: Order option for dot / hidden files

Open Farnsi opened this issue 9 months ago • 7 comments

What feature or improvement do you think would benefit Files?

Currently .files listed first. It would be nice to have an option, to use the current sorting and additionally choose to sort within this order if dot-files should be shown first, last, or by name (ignoring the dot).

Requirements

  • Additional sort option of dot-fiels within the current sort-orders
  • And/or an option for Hidden Elements to ignore the dot for sorting

Files Version

3.9.1.0

Windows Version

11

Comments

No response

Farnsi avatar Apr 17 '25 08:04 Farnsi

Thanks for the feedback

Josh65-2201 avatar Apr 18 '25 13:04 Josh65-2201

@Josh65-2201 Hello, I'd be interested in contributing to this ,may I take it on as my first contribution to the project?

MohabASHRAF-byte avatar Apr 23 '25 09:04 MohabASHRAF-byte

If @yaira2 approved this feature.

Josh65-2201 avatar Apr 23 '25 11:04 Josh65-2201

@yaira2 Hi! Just checking in to see if this feature is approved. I'd love to take it on as my first contribution. Thanks!

MohabASHRAF-byte avatar Apr 23 '25 13:04 MohabASHRAF-byte

@MohabASHRAF-byte I would like to hold off until we gather more feedback, but if we decide to move forward, I think the best way to go about this is by adding a toggle under sorting settings to 'Ignore dot when sorting dot files' (the text can use some tweaking).

Image

yaira2 avatar Apr 23 '25 14:04 yaira2

@MohabASHRAF-byte If you want you can work on issues listed here https://github.com/orgs/files-community/projects/3/views/7 For code quality and styles see https://files.community/docs/contributing/code-style For further help on contributing please join our Discord https://discord.gg/files and ask in the app-development channel.

Josh65-2201 avatar Apr 23 '25 14:04 Josh65-2201

To be clear, I see little reason not to do this, but I'd like to give it a few weeks before approving.

yaira2 avatar Apr 23 '25 14:04 yaira2

It is weird that the default sorting for folders that users aren't supposed to touch much are at the beginning. I mean, this is true for all major file browsers (though on Linux, they tend to be treated as hidden)

Minenash avatar Sep 04 '25 07:09 Minenash

Does anyone have a use case to keep dot files at the top of the list (I expect that there are a number of use cases), or would it be okay to make this change without a setting?

yaira2 avatar Sep 07 '25 14:09 yaira2

Do you mean to sort it as if the . wasn't in the name?

Josh65-2201 avatar Sep 07 '25 15:09 Josh65-2201

Do you mean to sort it as if the . wasn't in the name?

Yes, to simply ignore it by default. Although, I suspect that some users purposely use dots on items they want to be sorted first.

yaira2 avatar Sep 07 '25 15:09 yaira2

I think a setting still makes sense, as you said, seems people probably do it on purpose to get it to the top, some people wanting the dot to be ignored, but since these folders tend to not supposed to be used by the user much, having it be below the rest of the files instead also makes sense

Minenash avatar Sep 07 '25 16:09 Minenash