Goto a folder AND load a Folder Format

Here is a rather naive script which you can drop into the Script Addins folder (name is resetfolder.js for example)

After changing the folder in a tab, it will force a reset of the format.
Note that it honours the 'lock' setting (the tiny padlock icon in the bottom left) and won't
mess with the format if that is ticked.

Its overkill because it messes with the format on every change, and doesn't pay attention to
whether you want to preserve the format in subfolders etc...
but it might be a start if you want to make something more functional..

Cheers

// Reset folder format on every directory change

// Called by Directory Opus to initialize the script
function OnInit(initData)
{
	initData.name = "Reset Folder Format";
	initData.version = "1.0";
	initData.copyright = "(c) 2019 PerlLlama";
	initData.desc = "Resets the default format for every folder.";
	initData.default_enable = true;
	initData.min_version = "12.0";
}

function OnAfterFolderChange(data)
{
	if( data.tab.format.locked == false) {
		var cmd = DOpus.Create.Command;
		cmd.RunCommand("SET FORMAT=!folder");
	}
	return false;
}