Re: selection filter x move to subfolder integration
Posted: 25 Oct 2012 18:17
What problem are you talking about? 
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Actually, I do. Not sure if its solved already. But I've created a simple script that does exactly what (I think) @neutrox is asking for.admin wrote:1. hmm, seems to be a very special usage. Anybody else would need this?neutrox wrote:sure.
1. i invoke the selection filter and type 'striped' so i get files like 'food-beverage-yellow-black-striped-grunge-construction-icon-full-set.zip'
and 'food-beverage-green-black-striped-grunge-construction-icon-full-set.zip', selected. now when i press 'move to subfolder' cks i'd like to have
'Striped' (taken from seletion filter mru; recase: title would be great, here!) as my first suggestion, then default others listed too ('new folder', current date style 1, current date style 2,
name of the last selected item).
(...)
(...)
Code: Select all
::/*XYplorer Filter Grouping in SubFolder Script*/
focus L;
$msg="";
$dname= regexreplace(regexreplace( get("Item"), "^.*\\", ""),"\..*$","");
$dname= input("Filter Group", "Type the filter keyword/foldername", $dname, "s", "");
if($dname=="") {
msg "Canceled.";
} else {
selfilter $dname, f,,0;
$i=get("CountSelected");
if($i==0){
msg "No files selected";
} else {
moveto $dname,,,2;
selectitems $dname;
// msg "$i items moved to $dname.";
}
}
Code: Select all
v11.70.0009 - 2012-10-16 09:38
+ Menu File | Duplicate | Copy/Move Here to New Subfolder...: Now
the dialog suggests the last used Selection Filter as new
subfolder name, if that filter is a valid filename, and if it was
used less than 2 minutes ago.