danielperna84 / hass-configurator

Configuration UI for Home Assistant
MIT License
313 stars 168 forks source link

Add option to show folders above files in file view #241

Closed markwmuller closed 1 year ago

markwmuller commented 1 year ago

The file editor, when opening a file, shows all files/folders in the current directory simply alphabetically sorted. This always confuses me, and makes it hard for me to find what I'm looking for. It would be nice to have a setting that can force it to sort folders first, or sort everything equally.

For example, Ubuntu's Nautilus has the option "Sort Folders Before Files".

danielperna84 commented 1 year ago

That's already possible. The option for the standalone version is documented here: https://github.com/danielperna84/hass-configurator/wiki/Configuration#dirsfirst-bool

When using the Add-on, it's a single click:

dirsfirst
markwmuller commented 1 year ago

Perfect, thanks for helping me find it! Is there a reason the setting is not with others (such as the keyboard VIM mode)?

Could there be a little hint that there are more settings elsewhere? In case I'm not the only person who didn't think of the add-on configuration settings.

Anyway, thanks for explaining!

danielperna84 commented 1 year ago

Is there a reason the setting is not with others (such as the keyboard VIM mode)?

Because it's a Server setting. It's the backend that controls how it's returning the list of elements. The settings you are talking about are mostly specific the editor itself.

Could there be a little hint that there are more settings elsewhere? In case I'm not the only person who didn't think of the add-on configuration settings.

As you are the first one asking the question I think that's not necessary.