files-community / Files

A modern file manager that helps users organize their files and folders.
https://files.community
MIT License
34.79k stars 2.21k forks source link

Feature: Add support for flattening folders #12367

Open Jay-o-Way opened 1 year ago

Jay-o-Way commented 1 year ago

What feature or improvement do you think would benefit Files?

Would love an option to dissolve or flatten a folder. Placing all the content in the parent folder. Simply said, it's the opposite of "Create folder with selection" and placing it above or below this entry would make the most sense. Example:

Would give:

Requirements

Files Version

2.4.71

Windows Version

Windows 10

Comments

I've seen many, many requests for this in the PowerToys repo, so I know it's something people want.

yaira2 commented 1 year ago

We originally discussed this in #10619 but I think it's worth bringing back the discussion again.

yaira2 commented 1 year ago

I updated the requirements to only include one selected folder. Based on the reception and usage of this feature, we'll consider adding support for additional options.

hishitetsu commented 1 year ago

I would like to be more clear on the requirements.

yaira2 commented 1 year ago

Should we also recursively flatten subfolders of the target folder?

I can see scenarios where both would make sense, perhaps we can add a modal to let the user choose.

Should the target folder be deleted after the flattening is complete?

That's my understanding.

hishitetsu commented 1 year ago

perhaps we can add a modal to let the user choose.

How about having each as a separate command?

yaira2 commented 1 year ago

If we add additional options, we're going to want a modal either way. An added benefit is that it allows the user to confirm what would otherwise be a destructive action.

yaira2 commented 3 months ago

Fyi @Tundra

smarquespt commented 3 months ago

From a translator POV, is this really what "Flatten" means? I don't have a concrete wording but I think "Flatten" is not the best approach ... https://dictionary.cambridge.org/dictionary/english/flatten

yaira2 commented 3 months ago

It combines the folder structure into a single folder.

mdtauk commented 3 months ago

My only issue is about language. Flatten makes me think of unfolding a cardboard box, but I know its about creating a "flat" folder structure.

Some wording closer to "Gather files from subfolders and remove folders" but its a concept that is not easy to explain in a short way - and how you would localise the wording?

yaira2 commented 3 months ago

We're limited in space, but we can display a more detailed description in the confirmation prompt.

Jay-o-Way commented 3 months ago

I've seen "Dissolve (a) folder(s)" being used and that isn't all too weird to me...

yaira2 commented 3 months ago

Personally "Dissolve" sounds like it deletes the folder.