How to write a script to cancel the set group by in a lister?

How to write a script to automatically cancel the displayed by group when changing to another folder?
Or can this be done with the internal commands?

Thank you...

Please link your account.

Sorry. Done!

Thank you!

This script should do what you want. Download it and then drag it to the list under Preferences / Toolbars / Scripts:

Here is the code, for reference:

function OnInit(initData)
{ = "Ungroup";
	initData.version = "1.0";
	initData.copyright = "(c) 2020 Leo Davidson";
	initData.url = "";
	initData.desc = "Exit group mode when changing folder";
	initData.default_enable = true;
	initData.min_version = "12.0";

function OnBeforeFolderChange(afterFolderChangeData)
	var cmd = DOpus.Create.Command();
	cmd.RunCommand("Set GROUPBY=off");

Thank you very much Leo. And what a great program this is. Cannot not live without it anymore!

1 Like