how do you make a catalogue item to show only .txt files?
-
little titty
- Posts: 81
- Joined: 15 Nov 2009 19:34
how do you make a catalogue item to show only .txt files?
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?
Re: how do you make a catalogue item to show only .txt files
Use as Location:[ |.txt ]little titty wrote: ... make a catalogue item that you can click on to ... show only txt files
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
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?
Re: how do you make a catalogue item to show only .txt files
It seams not all can be found from the "Content" page... i had to use "Index" and "Search" tablittle titty wrote:... couldnt find how to do it in the manual - must have been looking in the wrong place.
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
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.
FAQ | XY News RSS | XY X
XYplorer Beta Club