Playing around trying to restrict display of file types

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Playing around trying to restrict display of file types

Post by *louwin »

Help, please :(

I created a button for /Temp and tried to restrict the button to only display *.jpg files.

The button has

Command: - cd C:\Temp

and I put

Parameters: - "." | *.jpg

It didn't work so I deleted the button but now everything I do in the right panel has "." | *.jpg appended to it.

I have closed down TC and reopened it to no avail. So I need two fold help please.

1) How to I remove the appending - "." | *.jpg to everything?

2) How to I create a button to open folder but only display jpg files in it? I don't want to see other files types or any subfolders.

TIA

louwin
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, louwin.

OK, you were more successful than you thought.
Though the button may not have done exactly what you wanted, it has told T.C. to display

Code: Select all

"." | *.jpg
only.
This is much the same as if you had activated a Custom Filter by pressing the key combination <Ctrl><F12>.

You can de-activate any such custom filter by going to the menu item Show and then clicking on All files or simply by pressing the key combination <Ctrl><F10>.

About creating the button which changes to the Temp folder and only displays *.jpg:
Put this command in the command field of the button

Code: Select all

cd C:\Temp\*.jpg
Assign it a nice icon and you are done.

And remember:
Again this button will tell T.C. to use a Custom filter. So you should press <Ctrl><F10> when you wish to see all your files again and not just Jpegs.

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Partially worked :)

Post by *louwin »

Thanks Karl,

That worked in part.

I suspect the second part can't work?

The are subfolders that obviously aren't jpg files that do show though. :(

For instance, the display shows:-

folder1
folder2
folder3
1.jpg
2.jpg
3.jpg

Any way to uninclude the folders?

Again TIA :)

louwin
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, louwin.

Custom filters by design apply to files only, not to folders.
T.C. insists on displaying the foldernames irrespective of any active custom filter, because the folder names are needed for navigation.
This is no longer quite true, because the separate folder trees would allow navigating through the folders even if the foldernames were filtered and not visible inside the file panels.
Yet, currently it is as it is: custom filters by design apply to files only, not to folders.
However, I remember there was a thread not too long ago where workarounds were discussed which would allow to hide away folder names, too. Though I do not remember the details, I am pretty sure to remember that those workarounds involved several separate steps. This would very likely mean that the goal cannot be achieved with a single commandline assigned to a button in the buttonbar.

<added>
I think it is this thread which I had in mind: How to do it in TC.
Yet, it does not read as if there were any reasonable way of hiding foldernames temporarily.
</added>

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

come to same conclusion

Post by *louwin »

Hi Karl,

Yeah, I had read that thread and come to the conclusion that I can acheive what I want with a custom search in (Ctrl+F12) but NOT in a button :(

Thanks anyway, :)

louwin
There are 10 types of people in the world,
Those who understand binary and those who don't.
Post Reply