-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Thumbnails Only For Specified Folders/Filetypes? #50
Comments
I think some fm's use a .directory file for this - I might look into it a some point. Or maybe a .nothumbs file that spacefm could spot. Another possibly would be a shortcut key for turning off thumbnails (perhaps make it a panel-specific setting). For now, you might create a different spacefm config-dir for photo browsing which uses different settings. Thanks for the input. |
The main problem right now is that it takes a loooong time to generate the thumbnails since I have all of my photography stuff backed up to ~6 different drives which also contain a lot of video files.
I don't think that is the best idea I would need to make hundreds of them unless they also apply to every sub-directory as well. It would also be a lot easier to debug problems with one config file than 500 config files. I don't know if spacefm generates thumbnails for video files, but thumbnails were barely usable in nautilus for me because it's thumbnail generator would max out one core while failing to process h264 video files. If spacefm does or will generate video thumbnails I would make video and image thumbnails separate options if you don't implement filetype filtering. |
No video thumbnails in spacefm.
If you don't like the .nothumbs idea, how do you think this should work, from a UI angle? Making these things work is easy, but adding them to the UI without making a mess is the real challenge. Too many options and the UI grows out of control, and some users already find spacefm intimidating. Filetypes are a little easier, but I think there would be a cost to it in terms of performance - every filetype would need to be compared to a glob, etc. For the folders, a list of globs might work too (sort of like .gitignore but just one list for everything), but would be limited. Give it some thought if you like - this won't be done too soon because there are higher priority items on the list, but I'm willing to consider some possibilities. |
I thought about it for a while and here is what I came up with. If possible I think giving the user a optional choice between a blacklist or whitelist to control which folders have thumbnails generated for them with blacklist as the default option would be best.
I would suggest these options be in that section
If you have this disabled by default spacefm would use the current behavior (or have a empty blacklist as default), and the user could enable whichever type of list they like the best.
For Whitelist
I would use a separate file to store the whitelist and blacklist so the user can try each option without losing any changes they have made to the lists. I think the best way to edit the lists using the UI is to add a command to the right click menu like this
and if the folder is already in the list
I gave these commands very descriptive names, they are probably too long right now. If you add filtering by filetype I would suggest adding these options to
below the first set
Again I would have this disabled by default to avoid user confusion. I see "Advanced Tweaks" (mentioned earlier) as a new tab that would contain changes to default behavior that not all users will understand or want to mess with.
The "Advanced Tweaks" tab might be hidden unless a "Enable Advanced Tweaks" option was set in the existing "Advanced" tab to help alleviate the initial configuration intimidation some users are feeling when they first start using spacefm. I think that part of the problem is that the lack of tooltips makes it harder to figure out what a command does if it has an ambiguous name. |
Would it be possible at some point to define which folders to generate thumbnails for, instead of generating them for all folders?
For example when I am editing photos I don't need thumbnails for all ~300GB of photos just the ones in the folders I am working in right now.
Also would it be possible to specify which filetypes to generate thumbnails for, instead of generating thumbnails for all filetypes?
This would make thumbnail generation faster and decrease the hdd space used for storing thumbnails.
The text was updated successfully, but these errors were encountered: