FlatView folder format

Hi,

When I engage "flat view" (usually Mixed No Folders) the current view is discarded in preference for a single global "Flat View" format, even when format lock is engaged.

The only thing "Flat View" format really does is reset to the default column layout and add the Location field. It also messes with sorting and grouping.

Is it possible to

  1. Honour the "Format Lock" option, and not change the format when switching to flat view?
  2. Provide a "flat view" alternative for custom formats, rather than a single global flat view (like a second "columns" tab in the folder formats which applies in flat view mode)
  3. Split "columns" from "sorting" and "grouping" so I can define a format which adds a column (like flat view) but doesn't mess with my sorting/grouping?

Thanks

Turn off the FlatView format in Preferences / Folders / Folder Formats to stop it activating automatically.

If you want to keep adding the Location column automatically you could add this to the button that toggles FlatView mode, e.g.:

@toggle:if Set FLATVIEW=Toggle
@if:Set FLATVIEW=Toggle
Set FLATVIEW=Off
Set COLUMNSREMOVE=path
@if:else
Set FLATVIEW=On,MixedNoFolders
Set COLUMNSADD=path 
1 Like

That works suprisingly well, thank you.

If I use a script function OnFlatViewChange(), can I get access to the original folder format before it was replaced by Flat View? It's clear DOpus remembers the previous format, even if it isn't standard, but I can't see a way to access what it was before the OnFlatViewChange() function was called.

Also, the manual is broken. Under "OnFlatViewChange", if you click the link to "FlatViewChangeData", you are incorrectly sent to "DisplayModeChangeData".

Thanks

Thanks for that, we'll get that link fixed.

No there's no way currently to access the previous format.