Change Log for the latest
XYplorer BETA version:
Code: Select all
v23.00.0008 - 2022-04-04 14:23
+ Scripting got a new function.
Name: View
Action: Sets or gets the current list view.
Syntax: view([index], [switches])
index (optional):
0-9: Index of the view to switch to.
-1: Set the next view.
Missing: No switch happens.
switches (optional):
t: Toggle view with Details view.
o: Loop (if index = -1).
r: Reverse direction (if index = -1).
return: Index of the current view (before any switch).
Remarks:
- These are the indices of the views (note that they do NOT correspond to the
positions in the Views menu):
0 = Details
1 = Details with Thumbnails #1
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3
7 = Large Icons
8 = Small Tiles
9 = Large Tiles
- Index -1 (Set the next view) honors the CycleListViewsProps tweak. If the tweak
is set, it overwrites any switches passed with SC view().
Examples:
view(0); //Details view
view(2); //List view
view(2, "t"); //toggle between List view and Details view (run same line again to toggle)
view(0, "t"); //toggle between last view and Details view (run same line again to toggle)
view(-1); //next view
view(-1, "r"); //previous view
view(-1, "o"); //loop through all views
view(-1, "ro"); //loop through all views, reverse direction
* Tweak CycleListViewsByWheelProps: Changed the name to CycleListViewsProps.
* CycleListViewsProps: It was a dumb idea to use the menu indices to refer to
the views, because, as we've just seen, menu positions can change. So now, the
never-changing internal indices are used in this tweak, as they are already used for
years by SC get("view"):
0 = Details
1 = Details with Thumbnails #1
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3
7 = Large Icons
8 = Small Tiles
9 = Large Tiles
Some updated examples:
6,5,4 //scroll thru these views as listed, no loop
6,5,4|o //scroll thru these views as listed, loop
0,2,8,6|ro //scroll thru these views, reverse direction, loop
0,2|o //toggle Details and List
! SC sortby: Didn't work with captions of Extra/Custom/Special columns. Fixed.
To
update to this BETA version from XYplorer, hold down the
CTRL key while you click
Help | Online Support | Check for Updates. To
download it, choose a package: (1)
Installer Package, (2)
No-Install Package.
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.