FAQs: Color highlight a file (or folder) by any of its properties

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4155
Joined: 2007-09-13, 22:20 UTC
Location: Europa

FAQs: Color highlight a file (or folder) by any of its properties

Post by *Stefan2 »

Color highlight a file (or folder) by any of its properties


- Menu: Configuration > Options > Color

- [x] [Define colors by file type...]

Don't be tricked by the label 'TYPE'.
Although the button says "Define colors by file type",
it allows you to use all features of TC's search, including plugins.

- [Add...]

- [Define] (((opens the re-used "search"-window)))

- In "Define selection" either

---- Press [Help]-Button for more... well Help

-or-
A ---- search for the wanted name
Enter e.g. *.docx in 'Search for:' or any other word, or full file name,
(maybe also check sub directories depth)
(maybe also check [Advanced] [x]Attributes [x]Directory
use the Help-Button
Search for: In this field, you can enter the search mask for the files you want to find. A question mark ? stands for exacly one character, and an asterisk * stands for any number of characters. Multiple search masks can be entered, separated by spaces (see examples below). All masks after the pipe character | will be treated as exclude masks.
Note: Names with spaces do not need to be put in double quotes, e.g. Letter to Mr. Smith.doc. Total Commander now looks for both the entire name and the name parts individually. However, when the pipe character | is used for an exclude mask, names with spaces must be put in double quotes.
When the search string contains a dot, Total Commander will look for the exact name match.
Use Shift+Del to remove no longer wanted entries from the search history.
To include/exclude certain directories in the search, wildcards can be used in include/exclude directory names, and the names must have a trailing backslash \ .
Put '>' character in this field before saving the search to keep the "Search for" field unchanged when loading the saved search.
Examples:
*.ini finds for example win.ini
Smith finds "Letter to Mr. Smith.doc"
*.bak *.sik *.old finds all backup files with these extensions
*n.ini now finds names which must contain an 'n' in front of the dot.
*wof*.doc finds all names containing "wof" in the name and an extension ".doc".
w*.*|*.bak *.old finds files, which start with w and do not end with .bak or .old.
*.ini | windows\ finds all ini files except those in directories called "Windows" and their subdirs.
*.htm? | _vti*\ finds all html files, except in subdirs starting with _vti (used by Frontpage)
windows\ system32\ *.ini finds ini files only in windows\ and system32 dirs
Put "ev:" in front of the search string to pass it to Everything unchanged. You will then have to use the Everything search syntax, see www.voidtools.com.
Put "ed:" in front of the search string: Like "ev:", but search only in the directories specified in the "Search in" field. Also handles "Search subdirectories" option. This is handled by prefixing path:c:\path and optionally parents:<nr to the entered search string.

Search in: Here you can enter one or more starting directories, separated by ";". You can now start the search inside an archive.
You can enter the name of a text file (ANSI, UTF-8 or UTF-16, the latter two with BOM) containing a list of files and directories to be searched, in the form @c:\path\filelist.txt. The file must contain one file/directory name per line, either an absolute path, or relative to the location of the list file. The text file now also supports wildcards and regular expressions.
Sample list: Description
c:\testdir\ Searches "c:\testdir" for files defined in "search for"
c:\testdir\*.txt *.doc Searches "c:\testdir" for txt and doc files
c:\testdir\<regular expression Searches "c:\testdir" using regular expression
c:\testdir\filename.txt Searches just for "filename.txt" in "c:\testdir"
Put '>' character in this field before saving the search to keep the "Search in" field unchanged when loading the saved search.
-or-
B ---- by file attribute
["Advanced"] tab
Search for Age or Size or Attributes


-or-
C ---- by any file characteristic / property
Change to the ["Plugins"] tab
"[x]Search in plugins:"
Combine with: AND (all match)

|| Plugin: || Property: || OP: - - -|| Value: - - - - - - -||
|| tc ---- || comment - || = - - -|| what you search for ||
|| tc ---- || path -- - || contains || what you search for ||
|| tc ---- || versionnr || > - - - -|| what you search for ||
|| filesys || Today - - || = - - - -|| Yes - - - - - - - - ||

(((The WDX content plugin "filesys" (filesys sample plugin v2.5 from 31.Jan.2019 >> see >> https://www.ghisler.com/plugins.htm#content)))

---- at the End
- [Save] as e.g. "search_MyDescription"

---- Back in "Specify file type" click [OK]
choose Color, [OK]

---- Back in "Define colors by..." click [OK]
(maybe drag and drop the definition to the wanted order: first come, first serve)

---- Back in "Configuration" click [OK]


- - -

To disable a coloring, in "Define colors by..." click [Edit] and rename the "File type", so it is not found anymore.
Or [Delete] it.

- - -

To change a color, click [Edit] in "Define colors by..." , just confirm "Specify file type" by [OK]ing, choose a new color, [OK] all dialogs.

- - -

Plugins for Total Commander:
http://www.ghisler.ch/wiki/index.php/Plugin

FAQs: Installing/Removing a plugin is just this:
viewtopic.php?p=294671#p294671

- - -


German

FAQs: Dateien / Ordner farbig markieren kennzeichnen einfärben
viewtopic.php?p=287485#p287485

FAQs: TC Plugin Add-On AddOn Externe Tools verwenden
viewtopic.php?p=342114#p342114



 
Post Reply