how do you make a catalogue item to show only .txt files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
little titty
Posts: 81
Joined: 15 Nov 2009 19:34

how do you make a catalogue item to show only .txt files?

Post by little titty »

I understand it is possible to make a catalogue item that you can click on to sort the files in a pane for instance to show only txt files (or at least highlight them). But how?
Why doesn't everybody have a great user name like mine?

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: how do you make a catalogue item to show only .txt files

Post by Stefan »

little titty wrote: ... make a catalogue item that you can click on to ... show only txt files
Use as Location:[ |.txt ]

I think this is the same as Visual Filter (Ctrl+J)

To show all files again use an single |

This can also be used in the address bar.

- - -

You could also call the Visual Filter dialog by its command ID from the catalog to have an UI.

- - -
I am not sure if we can detect if the view is currently filtered or not, if we can, we could make an script to toggle this setting.

EDIT: Oh yeah, we can:

Use as Location:[ ::$VF = get("VisualFilter"); if ($VF=="") {filter "*.txt";} else {filter;} ]

little titty
Posts: 81
Joined: 15 Nov 2009 19:34

Re: how do you make a catalogue item to show only .txt files

Post by little titty »

WOW thanks for the Uber great reply - you covered all the angles having these options in the catalogue is very convenient - I couldnt find how to do it in the manual - must have been looking in the wrong place.
Why doesn't everybody have a great user name like mine?

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: how do you make a catalogue item to show only .txt files

Post by Stefan »

little titty wrote:... couldnt find how to do it in the manual - must have been looking in the wrong place.
It seams not all can be found from the "Content" page... i had to use "Index" and "Search" tab
to find what i am looking for as so often.

Also the History.txt is an place to find such things.

admin
Site Admin
Posts: 65244
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: how do you make a catalogue item to show only .txt files

Post by admin »

FYI: I recommend you tick "Toggle on same filter" (in the context menu of the VF toolbar button) and the "|*.txt" item in the catalog works as a toggle.

Post Reply