If you are interested here's a version I had done earlier, it has icons and now includes your recent requests. On the off chance someone wants to use it, it would probably be easier to put it in an external file in <xyscripts> and then add it to the ini like this:
Code: Select all
CEA_TreeRightClickOnWhite_Script=load 'script filename';
Code: Select all
$favs = "";
foreach($line, favs("f"), <crlf>) { $favs .= gpc($line, "file") . ";$line;$line<crlf>";}
if !<get shift> {
$favsD = "";
foreach($line, favs("d"), <crlf>) { $favsD .= gpc($line, "file") . ";$line;$line<crlf>";}
$favs = $favsD . "<crlf>-<crlf>" . $favs;}
$a = popupmenu($favs);
if (<get shift> && (exists($a) == 2 || $a == gettoken(formatlist($favsD, "f", <crlf>, "*;$a;$a"), 2, ";"))) { tab("new", $a); } else { goto $a;}
focus;
P.S, it will only work without modifications in recent versions of XY v18.80.0000+
You may prefer highends version which is probably better for those regex capable, but I had already done this so I am posting it anyway, I haven't thoroughly tested it, but it seems to work ok, and should be an acceptable base for someone to build on, regex would be preferred, but this is how I do it without regex.