Code: Select all
v25.60.0110 - 2024-03-10 16:48
+ Native Variables: Added the interesting new <pad ...> variable, which can be used to
pad a string with a number of characters at a specified position until the string
reaches a specified length.
Syntax:
Variant 1: <pad final_length [character]>
Variant 2: <padbase final_length_of_base [character]>
If character is missing it defaults to " " (space).
Examples for <pad ...>:
echo "<pad 20 ->text"; //----------------text
echo "text<pad 20 ->"; //text----------------
echo "text<pad 20 ->text"; //text------------text
echo "<pad 2 ->text"; //text
echo "text<pad 20>text"; //text text
Examples for <padbase ...>:
Since with filenames you normally would prefer to ignore the length of the
extension, there is a variant <padbase ...> which looks at the length of
the base (filename without extension) only:
echo "<pad 8 0>98.mkv"; //0098.mkv
echo "<pad 8 0>64.mpeg"; //064.mpeg --> probably not wanted
echo "<padbase 4 0>98.mkv //0098.mkv
echo "<padbase 4 0>64.mpeg"; //0064.mpeg --> nice
Notes:
- You can have only one <pad ...> per string. Otherwise the results will be
unexpected.
- There is a nice use of <pad ...> in Batch Rename if you want to pad filenames,
for example left-pad with zeros: <padbase 8 0>*
+ Configuration | Colors and Styles | Highlights & Dark Mode | Dark mode: Added option
"Adjust to OS light/dark mode at startup". Tick it to automatically adjust to
Windows light/dark mode at startup (Win 10 and later).
(1) Installer Package, (2) No-Install Package (for manual unpacking).
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.