# Filtering in virtual folders

**URL:** <https://resource.dopus.com/t/filtering-in-virtual-folders/42687>\
**Category:** Help & Support\
**Created:** [November 3, 2022, 3:53pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687 "2022-11-03T15:53:48Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 3:53pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/1 "2022-11-03T15:53:48Z")

</div>

Comma filtering in the FAYT mode works fine in normal folders. However, when i use it in the Desktop folder, there is a lot of folders also being listed. For example, i hat three RAR files on the desktop, but the comma type FAYT also listed lots of folders, not being related to the search term. Is there maybe a better search mode for virtual folders?

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 3, 2022, 3:55pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/2 "2022-11-03T15:55:02Z")

</div>

What is comma filtering?

Maybe a screenshot would help show what you're doing and seeing.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 4:28pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/3 "2022-11-03T16:28:26Z")

</div>

![grafik](https://resource.dopus.com/uploads/default/original/3X/6/b/6b06f547323dcf2087e6725ad66bb851ac5d621d.jpeg)

I could't find a better description for this function. Because writing **","-filter** looks strange.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 3, 2022, 5:03pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/4 "2022-11-03T17:03:37Z")

</div>

Makes sense. I think mine has a different hotkey.

What are you typing as the filter / pattern?

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 5:10pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/5 "2022-11-03T17:10:13Z")

</div>

In that case, it was just **,rar**. And it did find the files, only there were lots of folders with no relation. Maybe following setting in preferences -\> folder isn't ideal? Can't test it now, because it's on another machine. The setting is "treat all virtual folders as real ones".

![grafik](https://resource.dopus.com/uploads/default/original/3X/b/6/b650aa29a88a99103c547e701b69b3e2efde6fa7.png)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 3, 2022, 6:14pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/6 "2022-11-03T18:14:23Z")

</div>

Can we see a screenshot of the folder with the filter applied and also visible?

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 6:30pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/7 "2022-11-03T18:30:35Z")

</div>

Sure. Note, that i simulated it on my machine, while the original case was on another. But i have the same effect here. The upper image shows the state before filtering.

 ![grafik](https://resource.dopus.com/uploads/default/original/3X/9/7/97bd0e9f73299a574278c487b2bf1a6f8605b7d8.jpeg)  
 ![grafik](https://resource.dopus.com/uploads/default/original/3X/f/a/fa2a30257e833d5b99b21b7fc3873ef16219d7f6.png)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 3, 2022, 6:37pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/8 "2022-11-03T18:37:06Z")

</div>

It looks like you're using Flat View? Is the question really about filtering folders in Flat View, rather than filtering in virtual folders?

There's an option on the filter bar, bottom-right of your second screenshot, to apply the filter to folders when in Flat View. But not that if a folder is filtered out, all of the things inside it are as well.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 6:55pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/9 "2022-11-03T18:55:08Z")

</div>

Yes, it looks like flatview, but the status bar mode info says i'm in Details mode, as seen in the screenshot. Also, i didn't deliberately apply the flat mode in that case.

Edit: and yes, i have tried the checkboxes, if it makes a difference, which wasn't the case. But i have found something strange here. When i use my button to change over to  
Set FLATVIEW=On,Grouped,Toggle

the status bar info still says "Details", although the apperance changes to the grouped flatview. I will post my status bar code, so you could look into it, if there is something wrong.

 ![grafik](https://resource.dopus.com/uploads/default/original/3X/c/9/c969c7aacf1a70c7c217822b286bea392a6283d3.jpeg)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 3, 2022, 7:03pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/10 "2022-11-03T19:03:13Z")

</div>

Flat View can be on at the same time as Details Mode.

Something must be turning it on, as it won't turn on by itself.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 7:13pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/11 "2022-11-03T19:13:03Z")

</div>

Well, i looked into the folder options, but no hint about any possible flatview setting. Looks you are right about the mode. But i can't figure out, why the desktop folder is in flatview mode when i enter it. I'm using the slash command to go to that folder. 🤔

/desktop

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 7:24pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/12 "2022-11-03T19:24:39Z")

</div>

Now i made a button

Go /desktop  
Set FLATVIEW=Off

But i still will get the flatview. Seems like somethings is broken in some of the ini files?

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 7:35pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/13 "2022-11-03T19:35:43Z")

</div>

This is weird. When i go into the Desktop, i have the flatview. Then, after using  
**Set FLATVIEW=On,Grouped,Toggle**  
it toggles the flat view back to normal, and i can do the search like intended. But if i put the same commands into a button

Set FLATVIEW=On,Grouped,Toggle  
Go /desktop

it won't work anymore, even though it's technically the same thing.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 3, 2022, 8:15pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/14 "2022-11-03T20:15:51Z")

</div>

Maybe you've installed a script that turns on flat view automatically for some folders.

Flat View normally has to be turned on explicitly. It's not something that happens at all out-of-the-box unless you flick the Flat View button, so it has to be happening due to something you've installed or reconfigured.

Layouts, Styles and Tab Groups can also turn on flat view, if you're using them to navigate to the folder. But if it's going from off to on when you change folders via any normal method (and you haven't edited the toolbar button you're clicking on to do that) then I would suspect a script.

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [November 3, 2022, 8:22pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/15 "2022-11-03T20:22:34Z")

</div>

Sounds like you installed it in 2015:

> [@Trigger Flat View (or any other command) in configured folders](https://resource.dopus.com/t/trigger-flat-view-or-any-other-command-in-configured-folders/21204/2):
>
> Very interesting idea. I have just installed the script. Sounds like we can use only one mode a the time. Or is it possible to make it like in this example? FlatViewCommand | Set FLATVIEW=On,Grouped FlatViewFolders | /path1; path2 SetViewmode…

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [November 3, 2022, 8:23pm UTC](https://resource.dopus.com/t/filtering-in-virtual-folders/42687/16 "2022-11-03T20:23:13Z")

</div>

Jon, you found it. Indeed, there was a long forgotten script with that function. That's why it was so stubborn, overriding the Set flatview=off command. Thank you and Leo!

 ![grafik](https://resource.dopus.com/uploads/default/original/3X/b/6/b637189a68d642225ec3b0834fc23007906ffa9d.png)
