Folder color cheated by name-extension
Moderators: white, Hacker, petermad, Stefan2
Folder color cheated by name-extension
Hi,
I have defined a yellow color for folders, works fine but if i hace a folder named "folder.txt" TC colorize this following the .txt color definition in white, is this normal? the thing is a folder, not a .txt file, but in this unique case the name of folder ends in .txt
https://i.ibb.co/DKph32B/CAPT-0001.png
https://i.ibb.co/P1D62DM/CAPT-0000.png
I have defined a yellow color for folders, works fine but if i hace a folder named "folder.txt" TC colorize this following the .txt color definition in white, is this normal? the thing is a folder, not a .txt file, but in this unique case the name of folder ends in .txt
https://i.ibb.co/DKph32B/CAPT-0001.png
https://i.ibb.co/P1D62DM/CAPT-0000.png
TC license #346559
Re: Folder color cheated by name-extension
bogordo,
Try moving the .txt definition lower. Or change the .txt definition to exclude folders.
Roman
Try moving the .txt definition lower. Or change the .txt definition to exclude folders.
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.
Re: Folder color cheated by name-extension
Yoiu have to maka a search that explicitly finds folders only:
An then assign the colorfilter to >Folders - like this:
See also: viewtopic.php?f=14&t=52472
Code: Select all
[Searches]
Folders_SearchFor=
Folders_SearchIn=
Folders_SearchText=
Folders_SearchFlags=0|000002000020||||||||22221|0000|
Code: Select all
[Colors]
ColorFilter1=>Folders
ColorFilter1Color=40704
ColorFilter1ColorDark=45056,40704
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Folder color cheated by name-extension
Hi Peter,
I already have folder only search with this, not know the difference with your code:
I already have folder only search with this, not know the difference with your code:
Code: Select all
Folder_SearchFlags=0|002002000020||||||||22221|0000|||
TC license #346559
Re: Folder color cheated by name-extension
It works fine here: https://madsenworld.dk/tcmd/coloredfoldernames.png
It works for ordinary drives and for Archives, FTP-sites, Network shares, Virtual folders, Search results etc.
It works for ordinary drives and for Archives, FTP-sites, Network shares, Virtual folders, Search results etc.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Folder color cheated by name-extension
Thank you Peter,
The problem comes with another Search/color definition for .TXT files, that is priorized over the Folder one, do you have one for .TXT?
Moving down the .TXT filter works, but i thonk this is not the correct solution, since really the folder is a folder, even ending wth .txt...
Image: https://i.ibb.co/R38XCLF/CAPT-0005.png
The problem comes with another Search/color definition for .TXT files, that is priorized over the Folder one, do you have one for .TXT?
Moving down the .TXT filter works, but i thonk this is not the correct solution, since really the folder is a folder, even ending wth .txt...
Image: https://i.ibb.co/R38XCLF/CAPT-0005.png
TC license #346559
Re: Folder color cheated by name-extension
If you don't want to move the >Folder item above the *.txt *.log then you can redefine so that it explicity rule out folders: https://madsenworld.dk/tcmd/txtnotfolder.png
It works: https://madsenworld.dk/tcmd/txtnotfolder2.png - but is more cumbersom to maintain.
It is really much easier to move the >Folder item up in the list.
Code: Select all
[Searches]
*.txt *.log_SearchFor=*.txt *.log
*.txt *.log_SearchIn=
*.txt *.log_SearchText=
*.txt *.log_SearchFlags=0|002002000020||||||||22220|0000|||
Code: Select all
[Colors]
ColorFilter3=>*.txt *.log
ColorFilter3Color=16711935
ColorFilter4=>Folder
ColorFilter4Color=33023
It is really much easier to move the >Folder item up in the list.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Folder color cheated by name-extension
Thank you Peter, yes, it's better to move up the folder definition.
It really wasn't a real problem, it was more like reporting the weird (isn't it?) behavior of taking a File definition being a Folder
Best regards,
It really wasn't a real problem, it was more like reporting the weird (isn't it?) behavior of taking a File definition being a Folder
Best regards,
TC license #346559
Re: Folder color cheated by name-extension
bogordo,
Well, a folder is a file that contains names of other files.
Roman
Well, a folder is a file that contains names of other files.
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.
Re: Folder color cheated by name-extension
2bogordo
From Wikipedia:
From Wikipedia:
https://en.wikipedia.org/wiki/Computer_fileFiles (or links to files) can be located in directories. However, more generally, a directory can contain either a list of files or a list of links to files. Within this definition, it is of paramount importance that the term "file" includes directories.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Folder color cheated by name-extension
Ok thank you both for clarifying, i thought "the nature" was different
TC license #346559