Folder with folder thumbnail

Features wanted...
avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Folder with folder thumbnail

Post by avivariba »

Currently, folders containing other folders look completely empty in Thumbnail view:
folders.png
folders.png (7.19 KiB) Viewed 905 times
Structure:
- Empty folder
- Filled folder
-- Image set 1
--- 1.png
--- 2.png
--- 3.png
-- Image set 2
--- 4.png
--- 5.png
...

I would think 'Filled folder' should at least show an empty thumbnail, so that it differs from empty folders (and in turn preventing someone from accidentally deleting it for them thinking it was empty):
folders-idea.png
folders-idea.png (6.5 KiB) Viewed 893 times
Or, more clear for the above still looks empty albeit different: a folder icon as thumbnail, like this:
folders-better-idea.png
folders-better-idea.png (7 KiB) Viewed 893 times
Even nicer would be if it would show the icon of the first directory within (so the thumbnail of 'Image set 1', meaning '1.png'). So that if the first contained folder has a (cached) thumbnail, it uses that one, and it otherwise showing the aforementioned folder icon as thumbnail instead:
folders-even-nicer.png
folders-even-nicer.png (26.89 KiB) Viewed 905 times

klownboy
Posts: 4089
Joined: 28 Feb 2012 19:27

Re: Folder with folder thumbnail

Post by klownboy »

There are a number of forum threads closely related to this topic. Take a look at viewtopic.php?f=5&t=24054 and viewtopic.php?p=196872
viewtopic.php?t=23063 and viewtopic.php?t=15509 There are other referrals within those threads.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Folder with folder thumbnail

Post by avivariba »

klownboy wrote: 24 Apr 2023 01:39 There are a number of forum threads closely related to this topic. Take a look at viewtopic.php?f=5&t=24054 and viewtopic.php?p=196872
viewtopic.php?t=23063 and viewtopic.php?t=15509 There are other referrals within those threads.
Interesting! That is a couple more I was able to find through search here. However, I don't think they apply (ZoomtoFillFolderThumbs seems to be the closest and is great for those who want something like that, but it's also much more complicated with many more thumbnails than needed (and random ones at that), and unless I missed something it seems to require a manual activation each time).

The main concern is just that a folder with content (even if it's just folders) simply shouldn't look the same as an empty folder. If it can automatically inherit the first thumbnail from a folder within, that would be a plus but that's not as important.

klownboy
Posts: 4089
Joined: 28 Feb 2012 19:27

Re: Folder with folder thumbnail

Post by klownboy »

Don't get me wrong,. I certainly don't want to come off as negative on the idea. Take another look at the very first link I provided above.
avivariba wrote: 24 Apr 2023 09:01 Even nicer would be if it would show the icon of the first directory within (so the thumbnail of 'Image set 1', meaning '1.png'). So that if the first contained folder has a (cached) thumbnail, it uses that one, and it otherwise showing the aforementioned folder icon as thumbnail instead:
Unless I'm out to lunch (probably), it seems very close to what I asked for last year (i.e., your "filled folder" would show the thumbnail "1.png"). Showing some kind of generic modified folder thumbnail for a "filled folder" vs an "empty folder" with no content would be different than what I asked for.

By the way the display of the folders in Zoom to Fill is all automatic, no need for Custom Event Actions or hitting toolbar buttons. The main folder view is saved as FVS and that's it.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Folder with folder thumbnail

Post by avivariba »

klownboy wrote: 24 Apr 2023 12:42Don't get me wrong,. I certainly don't want to come off as negative on the idea. Take another look at the very first link I provided above.

Unless I'm out to lunch (probably), it seems very close to what I asked for last year (i.e., your "filled folder" would show the thumbnail "1.png"). Showing some kind of generic modified folder thumbnail for a "filled folder" vs an "empty folder" with no content would be different than what I asked for.
I can see its similarities with the "even nicer" idea, but instead mine wouldn't have any recursion of looking up folders within folders (and possibly within other folders) to determine the thumbnail. It would only check if there is a thumbnail cached for the first subfolder, and otherwise show just a default folder icon within the thumbnail.

It's not so much about the thumbnail images for me, just about there being a visible difference between folders that are actually empty and ones that aren't.

Like in Windows File Explorer:
windows.png
windows.png (9.98 KiB) Viewed 834 times

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Folder with folder thumbnail

Post by admin »

Interesting. I was not even aware of the difference. Must have been introduced with Win10. Needs more thought.

klownboy
Posts: 4089
Joined: 28 Feb 2012 19:27

Re: Folder with folder thumbnail

Post by klownboy »

OK I see what you mean more clearly now and agree. The "ideally" part of the wish threw me off track a bit. The view from Explorer explains it best. A "Filled Folder" has any kind of content, folder(s) or file(s). The "Empty folder" is void of any content.

Don, this is similar to the return of scripting command Property("empty" and "nosubs"). The folder with any kind of content would show a folder thumbnail with the papers in it as shown in avivariba's last post.

Edit: Don to incorporate something along the lines of this request, it would seem you would need to exhaust all the hierarchy of possibilities for displaying a folder thumbnail first (e.g., desktop.ini, folder.jpg, etc.) and if not one of those types in the chain applies, then this paper filled type thumbnail would be shown.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Folder with folder thumbnail

Post by admin »

Made some tests on Win10. It should work if you set this tweak:

Code: Select all

FolderThumbsShell=1

klownboy
Posts: 4089
Joined: 28 Feb 2012 19:27

Re: Folder with folder thumbnail

Post by klownboy »

That tweak works Don. It was initially with a black background, but after refreshing thumbnails it was white. In dark mode its background is white until refreshed. Though if I remember correctly, this is the case with icons as well.
filled folder vs empty.jpg
filled folder vs empty.jpg (28.22 KiB) Viewed 780 times
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Folder with folder thumbnail

Post by admin »

Yes, the thumbnail cache only returns opaque pixels.

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Folder with folder thumbnail

Post by avivariba »

That works surprisingly well! Great stuff! :party:

One of the main issues I had with Windows File Explorer (which made me use XY in the first place) is that it tends to hang for me until it has loaded all the thumbnails for everything in view (even when in List view) and then loading all at once afterwards, but no issues with this whatsoever.

Shutey
Posts: 36
Joined: 25 Apr 2023 10:11

Re: Folder with folder thumbnail

Post by Shutey »

For those of us new to XYplorer, can you please explain where one places this code so we can all tell the difference between empty and not empty folders.
Thank you
admin wrote: 25 Apr 2023 16:23 Made some tests on Win10. It should work if you set this tweak:

Code: Select all

FolderThumbsShell=1
Windows 11 Pro, Dell XPS 17" 12th gen i9 cpu, 64Gb ram, 2Tb SSD, RTX 3060 6Gb vram

highend
Posts: 13260
Joined: 06 Feb 2011 00:33

Re: Folder with folder thumbnail

Post by highend »

One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Shutey
Posts: 36
Joined: 25 Apr 2023 10:11

Re: Folder with folder thumbnail

Post by Shutey »

Thank you for this link.

I tried the "FolderThumbsShell=1" tweak but in Windows 11 I still get the usual empty folder thumbnail even if the folder contains subfolders.
Am I missing a step or something?
Windows 11 Pro, Dell XPS 17" 12th gen i9 cpu, 64Gb ram, 2Tb SSD, RTX 3060 6Gb vram

Horst
Posts: 1080
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Folder with folder thumbnail

Post by Horst »

The tweak works fine here under Windows 11.
See the screenshot (the folders Hold and XML are empty)
Screenshot - 14.05.2023 , 19_51_11.png
Screenshot - 14.05.2023 , 19_51_11.png (183.17 KiB) Viewed 663 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3235)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Post Reply