car '>' is prepend when select predefined filter in ctrl-

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
TiTerm
Junior Member
Junior Member
Posts: 11
Joined: 2003-10-06, 06:42 UTC

car '>' is prepend when select predefined filter in ctrl-

Post by *TiTerm »

When using filters file to show with ctrl-f12
If you select a predefined selection type, a greater character '>' is prepend to selected mask, making it incorrect.

This bug is also present on 7.02a
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50768
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This isn't a bug. The > sign tells TC that the following string isn't a wildcard string like *.txt *.doc but instead a saved string. You can also use a < sign, which tells TC that the following string is a regular expression! You can type this by hand, you don't need to choose it from the list below.
Author of Total Commander
https://www.ghisler.com
TiTerm
Junior Member
Junior Member
Posts: 11
Joined: 2003-10-06, 06:42 UTC

Post by *TiTerm »

Thx for answer.

Ok for explication.

My problem is ma string is a wildcard string.

This is my string (remove quote) '* | *.svn\'

I want to mask all but .svn directory (working cache for subversion)
How should i do to store that and tell TC this is a wildcard string ?
User avatar
petermad
Power Member
Power Member
Posts: 16083
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

How should i do to store that and tell TC this is a wildcard string
Just press Ctrl+F12 - enter * | *.svn\ and press OK. When the filter is used once it is stored in the dropdown list in the Ctrl+F12 dialog.

You can find that list in wincmd.ini under [Selection] - it holds the last 20 file selection masks used.

BTW - shouldn't this thread be moved - there is no bug.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
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.
TiTerm
Junior Member
Junior Member
Posts: 11
Joined: 2003-10-06, 06:42 UTC

Post by *TiTerm »

petermad wrote: Just press Ctrl+F12 - enter * | *.svn\ and press OK. When the filter is used once it is stored in the dropdown list in the Ctrl+F12 dialog.

You can find that list in wincmd.ini under [Selection] - it holds the last 20 file selection masks used.
I know about drop down list but the question is about the predefined list.
My problem is if i store that string in predefined list, when i select it from the Ctrl-F12 dialog box, a '>' (greater) is added in front of my string, and the filter doesn't work anymore. According to ghisler, the '>' means there is no wildcar but there is one in the stored string, so how could i store that string in predefined list to avoid that TC add a '>'.
User avatar
petermad
Power Member
Power Member
Posts: 16083
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

What Ghisler means is that > indicates a saved search - saved searches have names of your own choise.

You can also save a simple wildcard search. Just fill out the "Search for" field with your wildcard string, AND delete the content of the "Search in" field. Thereafter click the Load/Save tab and save it under a name you like.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
TiTerm
Junior Member
Junior Member
Posts: 11
Joined: 2003-10-06, 06:42 UTC

Post by *TiTerm »

That's exactly what i did. And it works for find files (alt-F7), you can load a previous saved mask.

But if you do that to filter displayed files with ctrl-f12, when you recall a saved mask, the filter will not works. If you have named you filter foobar, you will see "path >foobar" right above columns name but the filter doesn't work. Whatever you put in filter, even a simple 'a*' , a previous defined filter
doesnt work with ctrl-f12.

if TC allow the user to select a predefined mask, there should be a way to use it. But until now, i never reach to make it work.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7002
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

TiTerm wrote:That's exactly what i did. And it works for find files (alt-F7), you can load a previous saved mask.

But if you do that to filter displayed files with ctrl-f12, when you recall a saved mask, the filter will not works. If you have named you filter foobar, you will see "path >foobar" right above columns name but the filter doesn't work. Whatever you put in filter, even a simple 'a*' , a previous defined filter
doesnt work with ctrl-f12.

if TC allow the user to select a predefined mask, there should be a way to use it. But until now, i never reach to make it work.
I use TC 7.02a and that works fine for me.
I've defined a filter named Pictures.
Its shown as >Pictures and displyas only jpg and gif files.
Using CTRL-F12 it works as desired !
User avatar
petermad
Power Member
Power Member
Posts: 16083
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

It works fine here too.

Check that you have this in your [searches] section of wincmd.ini:

foobar_SearchFor=a*
foobar_SearchIn=
foobar_SearchText=
foobar_SearchFlags=0|000002000020|||||||||0000|
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
TiTerm
Junior Member
Junior Member
Posts: 11
Joined: 2003-10-06, 06:42 UTC

Post by *TiTerm »

this is my searches section

* | *.svn\_SearchFor=* | *.svn\
* | *.svn\_SearchIn=
* | *.svn\_SearchText=
* | *.svn\_SearchFlags=0|000002000020|||||||||0000|


I have tested that on 3 pc with same pb, and i also have the last version of TC.

But i finaly see one thing this morning, i have that pb only on directory.

Either to see only directory 'a*\' or to avoid it with '* | |a*\', if you dont put the final \ to filter file, it works, but if you put it to filter directory, it doesn't.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50768
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This doesn't work because * | *.svn\ means something different in a saved search, and in the filte dialog!

In the filter dialog, it works only on files and dirs in the current directory. Here, the part after the | works only on folders, the * before it works on BOTH files and folders.

In a search, the * works on files and folders as before. However, the part behind the | works on what subfolders are visited! So * | *.svn\ will find also folders named *.svn, but will not search inside of these folders.
Author of Total Commander
https://www.ghisler.com
TiTerm
Junior Member
Junior Member
Posts: 11
Joined: 2003-10-06, 06:42 UTC

Post by *TiTerm »

Ok, i understand the difference.

May be filters dialog should have his own save box to avoid that confusion. I mean, why to use the same saved patterns if them meaning are not same and not compatible (at least, for folders)

Thx anyway to help me to understand what was wrong.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

ghisler(Author) wrote:You can also use a < sign, which tells TC that the following string is a regular expression!
interesting info, but this is true for select group command "cm_SpreadSelection" but filter command "cm_SrcUserDef" doesn't recognize regex after < sign, is this is a bug or intentional
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50768
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed this isn't supported in cm_SrcUserDef. You need to define a custom search via the define button.
Author of Total Commander
https://www.ghisler.com
Post Reply