Using Spot to view folders only

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Using Spot to view folders only

Post by aurumdigitus »

In the dark recesses of my mind there is a vague recollection about using the Spot function to show folders only. A search of both the Wiki and Help pdf turns up "Spot 'n' Jump" but nothing about the syntax to display folders only.

Can some one supply the details or has that feature been removed?

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Using Spot to view folders only

Post by aurumdigitus »

Finally remembered it. (Told you the mind was going.)

It is a function of Visual Filter not Spot.
Filter Folders Only

From XY 7.90.0084 onwards you can have your VF to be applied only to folders, while all files remain unfiltered. To do so, simply prefix your pattern with *| (which could be read as meaning "is a file, or")

For example, to only have visible all files and folders beginning with an "A", set a VF to: *|a*

This will work in RegExp mode (see below) as well, putting this prefix first and the RegExp prefix then. For example to show all files and folders beginning with an "A" you could use this: *|>^a

It works also when inverting the filter, even in RegExp more, for example to list all files as well as all folders but those beginning with an "A", you could use:

* in standard mode: *|!a*
* in RegExp mode: *|!>^a

Post Reply