Tried searching forum and google, but didn't find an answer.. Looked through settings several times.
Context: My default folder format uses Detail view.
Problem: When I am in a directory that doesn't have a per-directory format set, and I change the view to Thumbs, and I navigate to another directory that doesn't have a per-directory format set using the Folder Tree, the Thumbs view persists. I don't want it to persist.
Is there an option for the View mode to reset to the Folder Format default (Details) upon changing directories? I usually only need to switch to Thumbs view temporarily, and don't mean for it to persist outside of the folder where I needed Thumbs.
That's the normal behaviour, but if you want to force resetting the format to whatever is saved for the folder or type of folder, you can do that with this add-in.
It uses the
OnBeforeFolderChange event to reset the tab's format to its default, before changing to the new folder.
You could extend this so that it only happens if the Format Lock is off, so that you can switch to Thumbnails (or whatever) and keep it that way while changing folders when you want to view things in a different way temporarily. At the moment it always resets things, whether or not the Format Lock is on or off.
- Download: AutoResetFormat.js.txt (811 Bytes)
- Open Settings > Preferences / Toolbars / Scripts.
- Drag AutoResetFormat.js.txt to the list of scripts.
The script code from the download above is reproduced below. This is for people browsing the forum for scripting techniques. You do not need to care about this code if you just want to use the script.
// Called by Directory Opus to initialize the script
initData.name = "AutoResetFormat";
initData.version = "1.0";
initData.copyright = "";
// initData.url = "https://resource.dopus.com/viewforum.php?f=35";
initData.desc = "Automatically reset folder to its default format on folder change";
initData.default_enable = true;
initData.min_version = "12.0";
// Called before a new folder is read in a tab
var cmd = DOpus.Create.Command;
Since it's intended behavior, I'll try to adjust my own approach, rather than the program.
I can imagine a use case where I would want to keep Thumbs view.
Two follow-up questions:
- What things, other than View, persist between folders that use the default Folder Format?
- Is there a quick way to reset the currently-open folder to its default Folder Format? A button perhaps?
Ad2: Right-clicking the padlock gives you a few options.