Just a very simple code to bring List content somewhere where Live Filter is available.
Multiple selections are possible via checkboxes.
Smartness: if you select only one item you most likely want to open it. Otherwise, the List is just filtered, and further actions are up to you.
Works everywhere.
Code: Select all
global $items = inputselect( , report("{FullName}<crlf>"), "<crlf>", 67, , "80%", "80%", "(Almost) Live Filter - " . tab("get", "term"));
if ($items UnLike "*<crlf>*") {
sub "_Open";
} else {
sub "_VF"
};
"_Open"
global $items;
open "$items";
"_VF"
global $items;
$visual_filter = "";
foreach ($item, "$items", "<crlf>");
$visual_filter = "$visual_filter" . quote(getpathcomponent("$item", "file")) . "|";
};
filter '"(Almost) Live Filter" ' . trim("$visual_filter", "|");
#250; //select all
XYplorer Beta Club