files-community / Files

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

Feature: Add recycle bin settings to the properties window #10343

Open verdaderoken opened 2 years ago

verdaderoken commented 2 years ago

What feature or improvement do you think would benefit Files?

I just noticed Files would open Recycle Bin's properties as if it was a normal folder. The extra settings (the checkboxes, the max size) of the Recycle Bin should also be included in the redesign.

Files Recycle Bin properties window: image

Default Recycle Bin properties window: image

Requirements

Files Version

2.3.54.0

Windows Version

10.0.22623.875

Comments

No response

Josh65-2201 commented 2 years ago

Would be nice if the normal properties on it worked also. (If removing it was an idea) Then a new tab for the size limits.

hecksmosis commented 1 year ago

I think we could remove the Attributes and Created, Modified, Accessed rows and just add a new page for the size limits

hecksmosis commented 1 year ago

@yaira2 Is this ready to be worked on?

yaira2 commented 1 year ago

I think we could remove the Attributes and Created, Modified, Accessed rows and just add a new page for the size limits

I agree that more details can be hidden for recycle bin and replaced with an option to change the maximum size. We don't need as

I think a card with an option to change the maximum size (number box control) should do the trick, the other options are app preferences and don't belong in the properties window.

image

Josh65-2201 commented 1 year ago

That would have to be made for all drive connected as they all have there own recycle bin folders so a separate page would probably have to be made.

yaira2 commented 1 year ago

I wasn't aware of that, we'll need a better design then.

hecksmosis commented 1 year ago

Are Recycle bin folders in other drives currently supported?

Josh65-2201 commented 1 year ago

What do you mean by supported? All drive that have recycle bin support show in the recycle bin section and deleted items will go into like they should unless permanently delete option is checked.

hecksmosis commented 1 year ago

I mean in Files

hecksmosis commented 1 year ago

I have tested this and if you try to delete a file in a non-root physical drive it just deletes to the default C: Recycle Bin so we probably shouldn't implement the separate page until we do support the other bins (and instead use a single card for the time being)

Josh65-2201 commented 1 year ago

Work fine for me. Deleting content on another drive will place it into the recycle bin folder of that drive. Are you using the $RECYCLE.BIN folder (Turn on showing protected system files) or the one on the sidebar. If its the sidebar then that just acts like a library showing all the drives together.

hecksmosis commented 1 year ago

Oh, I didn't know that

hecksmosis commented 1 year ago

Then we should implement the tab

yaira2 commented 1 year ago

I'm not sure we need a tab, I still think a card with a list view would work. Could add a number box to the template for changing the size.

0x5bfa commented 5 months ago

For others:

Those values are stored in the registry

As you may find, we have to follow this setting if we implement this page. And I agree with Yair, it’s not worth having a new page, just a card in General tab.

If no one here is interested in implementing this feature, I can work on. There’re some work left so it’ll take a time to get started; while then if someone come here and struggling I can help them.

0x5bfa commented 5 months ago

that just acts like a library showing all the drives together.

Current properties management sucks (SelectedItemPropertiesViewModel and BaseProperties classes). We should have single interface (as in IStorableProperties) and then inherit it from IFileProperties, IFolderProperties, IDriveProperties, IDeviceProperties, IShellFolderProperties, INetworkLocationProperties and IFileTagProperties. Reflection can determine which pages should be shown and how properties should be changed via Details page or General page, using dedicated methods(as in ModifyLastAccess)