car '>' is prepend when select predefined filter in ctrl-
Moderators: Hacker, petermad, Stefan2, white
car '>' is prepend when select predefined filter in ctrl-
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
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
- ghisler(Author)
- Site Admin
- Posts: 50768
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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.How should i do to store that and tell TC this is a wildcard string
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
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
I know about drop down list but the question is about the predefined list.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.
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 '>'.
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.
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
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
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.
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.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've defined a filter named Pictures.
Its shown as >Pictures and displyas only jpg and gif files.
Using CTRL-F12 it works as desired !
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|
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
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
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.
* | *.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.
- ghisler(Author)
- Site Admin
- Posts: 50768
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
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 intentionalghisler(Author) wrote:You can also use a < sign, which tells TC that the following string is a regular expression!
- ghisler(Author)
- Site Admin
- Posts: 50768
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com