Code: Select all
v13.80.0123 - 2014-03-18 16:08
+++ Soft Columns: Okay, I've completely (well, almost ;) ) rewritten XYplorer
in order to add one command: New Column. You find it in menu View |
Columns, and in the context menu of each column header.
It will add a new type of column, a Soft Column, to the list.
They are called "Soft Columns" because:
- They are so flexible and unlimited: You have full control over their
contents and looks. And you can add as many as you like. There is no
limit.
- You can change the contents of a column on-the-fly. The column will
instantly update without reloading the whole list.
- They are not available in every list like the normal "hard" columns, but
only after you actively added them, and only where you added them. Then
they stay in the list/tab until you actively remove them, or define a
different set of columns.
Freshly added, a Soft Column is just named "New" and has no contents.
Right-click the column header to pop a menu with configuration options.
- Select Property...: Select any of the Shell's properties for this
column.
- Select Special Property: Select any of XY's native properties for this
column. They are usually much faster than the Shell's properties.
- Select Custom Column...: Select any of the 32 Custom Column definitions
for this column. This adds the ultimate column power to Soft Columns
since, as you know, with Custom Columns anything is possible.
- New Column: Insert a new soft column before the clicked column.
- Rename Column...: Here you can edit the name of the column. Leave it
empty if you are happy with the default name, which is automatically
given according to the selected property.
- Remove Column: Totally removes the column from the current list.
- Hide Column: Hides the column. You can show it again via View | Columns.
It will survive across sessions even if hidden.
- Show Columns...: Pops a list of all column where you can show/hide them
and modify their position.
The major differences to the hard Custom Columns:
- Soft Columns are stored with the tab, with the Home, with the FVS. They
are local and self-sufficient, no external dependencies.
- Soft Columns are unlimited in number.
- Soft Columns can easily and totally be controlled via scripting command
SetColumns.
+ SC SetColumns enhanced: Well, actually not the command syntax but the
power of the "columns" argument. The comma-separated list of canonic
column names now supports the extended possibilities that XY also uses
internally since this version. You can now directly create and show new
custom columns, even with custom captions, by means of the "columns"
argument.
These on-the-fly Custom Columns I call "Soft Columns" to distinguish them
from the "hard" Custom Columns "Custom 1" to "Custom 5".
There are 4 types of Soft Columns:
[caption]:n-10 = numeric shell property #10
[caption]:v-dimensions = verbal shell property "dimensions"
[caption]:s-audio.bitrate = special property "audio.bitrate"
[caption]:d-10 = definition of Custom Column 10
^ Optional caption; if missing then an automatic caption is coined
depending on the contents of the column.
^ Prefix n, v, s, or d, separated with a "-" just for better
readability. The prefix determines the type of the column.
^ Content definition, depending on the type.
^ What this column would display.
Notes:
- Type v suffers from the problem that MS nowhere documented which verbs
actually exist.
- The last type (d) links to one of the 32 available Custom Column
definitions.
- Important: The Soft Columns are not as persistent as the other columns.
Whenever you set a new set of columns to a list, any soft columns are
automatically discarded. Otherwise, the lists would just grow more and
more columns (there is currently no special scripting command to remove
a column). So, to remove one or more soft column you simply pass a list
of columns without those columns.
Examples:
Obviously, SC SetColumns is now incredibly powerful. Here are some examples:
// audio stuff
setcolumns("Name,:s-audio.bitdepth,:s-audio.bitrate,:s-audio.channels,:s-audio.samplerate,:s-audio.length,:s-mp3.artist");
// image stuff
setcolumns("Name,:s-image.dimensions,:s-image.datetaken,:s-aspectratio");
// custom caption, with width
setcolumns("Name,The Man:v-owner.200", 2);
* Menus "Sort By" and "Columns": Limited the displayed column items to 20 to
avoid over-high menus. The 20th item is set to "..." and will open a
dialog showing all columns.
+ Configure Custom Columns dialog: Added format "Mixed". The data are
displayed flexibly according to their format (e.g. dates according to the
selected date format). You can use it for columns of type "Mixed".
* Help | List All Commands...: Now you can show the command IDs by using a
tweak:
HelpListOfCommandsWithIDs=1
! Help | List All Commands...: "Click OK to call a selected command" did
not work anymore since v13.80.0103. Fixed.
! History: Name search added an unnecessary path to the history under
certain conditions. Fixed.
* SC return now ends a script.
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.