How to filter directories?

English support forum

Moderators: Hacker, petermad, Stefan2, white

HenrikHusted
Junior Member
Junior Member
Posts: 39
Joined: 2003-03-24, 10:47 UTC

How to filter directories?

Post by *HenrikHusted »

Hi,

How to I create a custom filter that works on directories only?
If I manually select a couple of directories (using the Ins key) I can filter correctly by using the menu Show | Only Selected Files.
I want to create a predefined filter that does the same but I cannot make it work.
Could someone show me how to create a predefined filter that only shows directories labeled "*foo*" ?

TIA
.Henrik
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 19:28 UTC, edited 1 time in total.
HenrikHusted
Junior Member
Junior Member
Posts: 39
Joined: 2003-03-24, 10:47 UTC

Post by *HenrikHusted »

That works for normal selection only. I want to filter the current directory so only directories that matches *foo* are shown :)

.H
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 24-03-2003 18:51:16 +0000 HenrikHusted wrote:

H> I want to filter the current directory so only directories
H> that matches *foo* are shown


Find Files | Advanced | A&ttributes: | &Directory[/face]
HenrikHusted
Junior Member
Junior Member
Posts: 39
Joined: 2003-03-24, 10:47 UTC

Post by *HenrikHusted »

Not quite what I am looking for.
I can manually select a couple of directories and filter by means of the Show | Only Selected Files command. Since its the same directories I want to filter every time it would be great to create a Custom Filter and save it.
But it seems like it cannot be done. Ohh well. Find Files is not an good solution, it takes forever to search through the 9000 files and 260 directories.

.Henrik
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 19:29 UTC, edited 1 time in total.
HenrikHusted
Junior Member
Junior Member
Posts: 39
Joined: 2003-03-24, 10:47 UTC

Post by *HenrikHusted »

Problem is that its a two step solution :)
If you want to filter for, say, *.exe files you would hit Ctrl+F12 and type in *.exe. If I want to filter for directories I would hit Ctrl+F12 and type in what?
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 19:29 UTC, edited 1 time in total.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 25-03-2003 11:09:52 +0000 HenrikHusted wrote:

Sorry, but I can't get your point.
As far as I can understand, you need to search directory names for some specific text, say, "foo" and make visible only search results:

H> Could someone show me how to create a predefined filter that
H> only shows directories labeled "*foo*" ?


May be I miss something very important in your explanation, but this sum has absolutely trivial solution.

1. Find Files | Search &for: *foo*
2. Find Files | Advanced | A&ttributes: | &Directory
3. Save it.

H> If I want to filter for directories I would hit Ctrl+F12 and
H> type in what?


And select the filter you saved from already existing ones.

So if I missed something, please tell me, what exactly.[/face]
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I think you missed that that filter shows all directories, not only *foo*.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
HenrikHusted
Junior Member
Junior Member
Posts: 39
Joined: 2003-03-24, 10:47 UTC

Post by *HenrikHusted »

I think you missed that that filter shows all directories, not only *foo*.
Exactly. Perhaps my explanation wasn't the best :-)
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 28-03-2003 09:48:08 +0000 Hacker wrote:

H> I think you missed that that filter shows all directories,
H> not only *foo*.


With "Find Files" and "Expand selection" such filters work like they should to. Ergo the logic is right ;). So this is the bug.[/face]
User avatar
ford prefect
Junior Member
Junior Member
Posts: 39
Joined: 2003-02-06, 18:03 UTC
Location: Earth
Contact:

Post by *ford prefect »

Even with my barely avarage TC skills I've been faced to the same problem of creating an filter for specific directories...
And found this strange behavior pretty confusing.

Hope that some unique solution for the "filters" will occur soon :cry:
(e.g. That filters for files/dirs work the same way as filters for selections, color filters & search)
Don't Panic! We have Total Commander...
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 19:39 UTC, edited 1 time in total.
User avatar
ford prefect
Junior Member
Junior Member
Posts: 39
Joined: 2003-02-06, 18:03 UTC
Location: Earth
Contact:

All we need is RE...

Post by *ford prefect »

norfie wrote:...I like to see dirs even though I want to filter files only.
Well, me too.

I think a simple directory attribute override could be nice so there would be 4 options for the attribute:

1. Do not include in filter (Disabled)
2. Exclude directories (filter out dirs e.g. they won't be displayed)
3. Directories only (no files)
4. Ignore directory attribute (TC specific, filter applies to files only) <- DEFAULT!

The difference between 1 and 4 is simple:
in case 1 the filter would apply to any kind of attribute e.g. dirs too
and 4 is clear then ;)

This way the filters can be in all cases the same or did I miss some possibility?
Yes the functionality would differ from the previous versions :( But this is a "clean" solution e.g. no inconsistencies between filtering methods...
Don't Panic! We have Total Commander...
Post Reply