Code: Select all
v12.30.0201 - 2013-04-19 20:30
+++ Custom File Icons (CFI): Now you can define which icons are
shown for files and folders within XYplorer (the whole UI).
Of course, the customization does not change the system at all
(other applications will still show the standard icons). All
information is stored within XYplorer.ini and thus is fully
portable. This means you now can take your file icons with you and
have the same icons on any host system. Hence this feature is also
called Portable File Icons (PFI).
Needless to say that PFI nicely complements the Portable File
Associations (PFA) feature.
Usage
~~~~~
- Open the interface to customize the file icons via menu Tools |
Customize File Icons...
Alternatively you can use Tools | List Management | Portable
File Icons...
- To (de)activate the feature (un)tick Configuration | Refresh,
Icons, History | Icons | Enable custom file icons.
Notes
~~~~~
- Custom icons can be assigned to generic file types (e.g.
"*.png"), to specific file names (e.g. "Readme.txt"), and also
to specific files ("C:\pagefile.sys"). Actually to any wildcard
pattern your fantasy is able to create.
- Custom icons can also be assigned to folders, drives, servers,
and shares. For this to work the patterns must end with a
backslash.
- Custom icons can also be assigned to special folders. In this
case the matching is case-sensitive and the patterns should NOT
end with a backslash and have no wildcards. Actually it is
recommended to use environments variables for the patterns since
these names are system-specific. Supported are the following six
special folders: %computer%, %desktop%, %personal%, %user%,
%net%, %recycler%.
- General syntax for a CFI definition:
"Caption" Pattern(s)>Icon Source
The caption is optional and has no function anywhere in the GUI.
You might use it as a place for personal comments.
- You can create as many CFI definitions as you like.
- You can assign one or more pattern to an icon source, separated
by "|" or ";".
- Patterns support XY native and environment variables.
- Matching is case insensitive (A==a).
- The patterns are tested from left to right, top to bottom. The
first match wins.
- The patterns are matched against the whole path of the item that
wants an icon. Wildcards *, ?, and # are supported as well as
character groups (e.g. [2-8] or [a-f]).
- You can as well state whole filenames or even full paths as
pattern. If you don't provide any wildcards then by default an
asterisk (*) is prepended to the pattern internally (unless the
pattern is a full path):
Pattern auto-adjusted to will match
--------------------------------------------------
<OBSOLETE!> (2013-04-22 09:33)
my.png *my.png ...\My.png
...\Creamy.png
\my.png *\my.png ...\My.png
</OBSOLETE!>
C:\my.png [same] C:\My.png
*.png [same] ...\Hard.png
*\a*\ [same] [all folders starting with "a"]
*\#*.txt [same] [all TXT files starting with a digit]
- Use "*." as pattern for files without any extension.
- Portable syntax is supported: Use the "?:\" notation to refer to
the drive of this XYplorer instance. Relative paths are resolved
relative to this XYplorer instance.
- Anything that has a system icon (the icon shown in the file
list) can be stated as custom icon source, typically you would
take either executables or *.ico files. The icon source can be
stated as full path, portable path, or ProgID ("Notepad"). Even
XY native and environment variables are supported.
- If an icon is not found, the definition is skipped (ignored).
- Changing icon definitions or enabling/disabling the feature all
works smoothly, ultra-fast, and on the fly. No restart required.
Examples
~~~~~~~~
You can paste these (non-sense, just for testing) examples into
Tools | Customize File Icons... (toggle to Editor mode first),
but most of the icon paths are hard-coded to my system, so you
need to make adjustments:
+%desktop%>Desktop\icons\VistaICO_Toolbar_Icons\ICO\Help.ico
+%computer%>Desktop\icons\VistaICO_Toolbar_Icons\ICO\Alarm.ico
+<xyexe>>Desktop\icons\MazeNL77\1265704870_Perspective Button - Stop.ico
+D:\>Desktop\icons\Windows 7 RTM Icons\Windows 7 RTM Icons\Icon_2.ico
+code\>Desktop\icons\MazeNL77\1265704883_Perspective Button - Reboot.ico
+*.url>C:\Dokumente und Einstellungen\Donald\Anwendungsdaten\Dropbox\bin\Dropbox.exe
+E:\Test\b\noext\XYcopy.exe>Desktop\icons\openPhone-by-Walrick\Phone.ico
+XYcopy.exe>Desktop\Desk\Video_2013-04-17_020244.wmv
+"Test" *.jpg;*.png;*.exe>Desktop\icons\Windows 7 RTM Icons\Windows 7 RTM Icons\Icon_23.ico
+"No Extension" *.>Notepad
FYI: For me personally, giving all folders called "code" (pattern:
"code\") a special icon is a killer feature.
Final Remark
~~~~~~~~~~~~
WOW!
! SC Self('icon') did not work with popup menus. Fixed.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned.
It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...)
before running a new BETA version. This will also help in fixing any fresh bugs.