Code: Select all
v16.50.0203 - 2016-04-06 16:56
+ Scripting got a new command.
Name: SortByList
Action: Apply a custom sort order to the current list.
Syntax: sortbylist list, [separator=CRLF]
list: list of items (with or without path, case-insensitive)
separator: [optional] Separates the items in the passed list.
Defaults to CRLF (line feed).
Remarks:
- You can pass the complete list but you don't have to. Just pass the
items you want to have on top, in the desired order.
- The items are moved to the top one by one as if mouse-dragged via manual
sorting, so everything between the old and the new postion is moved one
step down.
Examples:
- Move one file to the top:
sortbylist "test.jpg";
- Move two files to the top:
sortbylist "test.jpg|thumbs.db", "|";
- Move all filenames in the clipboard (be it as text (Ctrl+P) or as items
(Ctrl+C)) to the top:
sortbylist <clp>;
- Move the currently selected items to the top:
sortbylist <get selecteditemsnames>;
! SC FormatList: Quotes in the list argument were not handled as expected.
Fixed. Any quotes within the list argument are now seen as normal
characters. They have no special "quoting function".
! SC ReplaceList: Replacing did not work when the searchlist was just 1
letter and the replacelist was empty. Fixed. Example:
text replacelist("abc", "a", ""); //"bc" (was "abc" before the fix)
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.
XYplorer Beta Club