color the files with the same name in a folder

English support forum

Moderators: white, Hacker, petermad, Stefan2

Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

color the files with the same name in a folder

Post by *Alexisback »

this is possible?
example:
in a folder there are 3 files with the almost equal name (home and the same)

house 1990
house and rent 1991
house and sea 1992
countryside and mountain 1992

I would like the same names to be colored in the folder
in this case house :roll:

thank you
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

You can only do it by making a rule for each word (here "house"), and the whole file name plus size, date etc will be colered like this:
http://madsenworld.dk/tcmd/housecolor.png - and even if there is only one file with "house" in the name in a folder, it will be colored.

But for another word common in the filenames, you have to make a new rule.
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
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: color the files with the same name in a folder

Post by *nsp »

Alexisback wrote:this is possible?
example:
in a folder there are 3 files with the almost equal name (home and the same)

house 1990
house and rent 1991
house and sea 1992
countryside and mountain 1992

I would like the same names to be colored in the folder
in this case house :roll:

thank you
It is not possible to Highlight dynamically a word inside the filelist.

I use a workaround for this, i've made a custom command en_select like:

Code: Select all

command: SELECTFILES
parameters: ? **
You can link your command to a button bar, a hoitkey or even an alias. Once called, a popup ask you for selection parameter you can enter house between the two stars --> *house*
all the file containing the word house will be selected -> highlighted.

Another solution is to use the quicksearch with filtering ([ctrl]+S).
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback »

all 2 solutions do not solve the problem :(

maybe with some plugins this is possible :roll: :idea:
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Hmm how would these files be colored?

House
House and Garden
Garden party
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Lefteous wrote:Hmm how would these files be colored?

House
House and Garden
Garden party
As usual in TC - first match wins?

EDIT: I understand what you mean - there's no color scheme suits Alexisback' needs.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

house and rent 1991
house and sea 1992
countryside and mountain 1992
And with a dynamic coloring all these 3 should be marked because of the common word "and".
house 1990
house and rent 1991
house and sea 1992
countryside and mountain 1992
And here all 4 files should be maked because of the common string "199" etc., etc.

I don't think it is possible to make an algoritm that would suit all needs - and what one person would think is the important common string others might not. What you ask for is Artificial Intelligence.
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
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback »

I understand
it is not possible in Total Commander

I wanted something like "Everything"

Image: https://i.imgur.com/Nu6HO3x.png
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Alexisback,
Well, you could try Ctrl-S, it is similar in a way.

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.
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback »

Hacker wrote:Alexisback,
Well, you could try Ctrl-S, it is similar in a way.

Roman
Ctrl-S searches for the first initial word (example: house)
but not inside (example: sea) :roll:
house 1990
house and rent 1991
house and sea 1992
countryside and mountain 1992
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Alexisback,
Ctrl-S searches for the first initial word (example: house)
Try *house.

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.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Ctrl-S searches for the first initial word
That can be configured: "Configuration" -> "Options..." -> "Quick Search" -> "Exact name match:" -> REMOVE checkmark at "Beginning (name must start with first typed character)"
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
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

QuickSearch eXtended

Post by *tuska »

2Alexisback
If you are interested to use CTRL-S now, you could also use QuickSearch eXtended 2.2.6 from here:
viewtopic.php?t=22592 -> please see examples.

The names will not be colored, but it is enough to just typing (always without quotes)
- "house" to filter out the 3 files with name "house".
- "house|mountain" or "house|country" to get all of your 4 files.
- "sea | mountain" to filter for files "countryside and mountain 1992.txt" and "house and sea 1992.txt".

CTRL + S does not have to be pressed before, but can be pressed [to make settings for example].
CTRL + Shift + S recalls the previous search filter.

QuickSearch eXtended 2.2.6 overrules the settings in TC (as written above).
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Re: QuickSearch eXtended

Post by *Alexisback »

tuska wrote:2Alexisback
If you are interested to use CTRL-S now, you could also use QuickSearch eXtended 2.2.6 from here:
viewtopic.php?t=22592 -> please see examples.

The names will not be colored, but it is enough to just typing (always without quotes)
- "house" to filter out the 3 files with name "house".
- "house|mountain" or "house|country" to get all of your 4 files.
- "sea | mountain" to filter for files "countryside and mountain 1992.txt" and "house and sea 1992.txt".

CTRL + S does not have to be pressed before, but can be pressed [to make settings for example].
CTRL + Shift + S recalls the previous search filter.

QuickSearch eXtended 2.2.6 overrules the settings in TC (as written above).
this and very useful (to filter many files), does not color the files but does its job very well
thanks "tuska"
:D
and thanks to everyone for help :wink:
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Alexisback wrote:all 2 solutions do not solve the problem :(

maybe with some plugins this is possible :roll: :idea:
Using selectfiles *house* should select all the file in the current tab containing house. To get it highlighted, you can use some color preferences :
mark -> any fuo clolor (you can give a try with yellow if you have dark font)
tick the "use inverted selection" option.

It will help you a lot to see the file you select....
Post Reply