Flat View without files (2)

Hi, is there a way to use the "flat tree" without showing any files? So, only folders are shown.
This would show a folder tree, with all the attributes that I have available in my view, but would hide anything that is not a folder.

thanks!

The folder tree itself only ever shows folders, but if you want something similar in the file display when using Flat View then you can turn on a filter which hides all files.

The quickest way to do that on an ad-hoc basis is to push * to open the filter bar, then click the icon on the left which hides all files.

If you want to do it via a toolbar button or hotkey then that's also possible. Let us know exactly how you want it to work and we can give details. (e.g. You might want a button that turns on the filter and one of the Flat View modes at once, and then acts as a toggle for both.)

2 Likes

Thank you. This indeed does what I want.
It would be great if this could be assigned to a toolbar button that turns the "flat tree view + filter" on and off (so, at once).

Put this on a toolbar button:

@if:Set FLATVIEW=On
Set FLATVIEW=Off
Set HIDEFILTERFILENAME
@if:else
Set HIDEFILTERFILENAME=*
Set FLATVIEW=On

If you wanted Flat View (Grouped), change the last line to this:

Set FLATVIEW=On,Grouped
2 Likes

Thanks, this works perfectly!

Hi all,

I would love to use this button. Unfortunately, the linked instructions seem to go over my head. It is also not clear to me which exact part of those instructions should be followed here.

I already tried the script code with both variants "JScript" and "VBScript", but the button doesn't seem work either way. Instead, "Script Error" is displayed in the status bar when clicking the button.

Thanks for any assistance!

I accidentally linked to the wrong post in the thread (due to the forum always jumping to the end of threads you've already visited).

The instructions you want are the Raw Commands section of the first post in that thread: How to use buttons and scripts from this forum

(I've corrected the link in the post above.)

1 Like

Thanks very much for the fast action.

Creation of that button worked well now.

Strangely however, the button leads to a different result in my left Lister as compared to the right Lister -- in the same folder.

Clicking the button in the left Lister shows all files and folders in a flat view. Doing so in the right Lister shows only the files and not the folders.

I don't understand why this is the case.

In addition, I would like to see only the folders listed (flat), not the files, when the button is used.

Thankful for any ideas!

There must be something different about how you have the right side set up. e.g. Filters already in place when you run the button.

Try closing the right tab and opening a fresh one.

This button command doesn't work in Dopus 12.28.2 Beta, it still shows all files in a flat view. Any updates to this button command?

If you mean this button, it still works for me in 12.28.2:

It is weird, this button command doesn't work for me.

2022-07-20_221857

Are you starting from (a different) Flat View mode when you click the button?

Or do you have any filename filters applied already?

What kind of folder are you trying it in?

I didn't start from a different Flat View mode and I didn't apply any filter before pressing the button.
I just tried in this folder for testing.


2022-07-21_003044

Is "Show Everything" mode on?

(Would be better if we could see the status bar, as that usually says if it's on, or any other filtering, unless the info was removed from it.)

"Show Everything" mode off.

Before click the button...

After click the button...

See if Preferences / Folders / Folder Formats / Folder Type Formats / Flat View is turned on; if it is, try turning it off and see if it makes a difference.

1 Like

After Flat View turned off, the command button works as it should.

I think I found the problem, if I turn on "Hide Filter" the command button doesn't work properly, but if I turn off "Hide Filter" the command button works as it should.
2022-07-21_131838

That'll mean the filename filter is overridden after flat view turns on. You could reorder the last two lines of the command to set the filter after turning on flat-view, but it'll be a bit slower that way. If you aren't using the filters in the folder format then turning off that page is the best option.

Those Hide Filters and Show Folders pages in the Flat View folder format should be off by default, or at least are off in my own configuration. No reason to turn them on unless you want that format to always set/reset the filters when turning on Flat View.

1 Like

Thank you very much for this explanation, really helped me. :+1:

1 Like