Edit > Select > Store/Load Selection
Posted: 27 Sep 2010 00:51
Just playing around with SyncTool
and because i go into an selected folder to see what's in
i lost my selection of all the other different items.
So i searched around but didn't find an solution/post/command to store & load an selection.
That's why i suggest this new feature incl. "List Management" support.
- command "Store Current Selection"
>> ask for name, if name exist ask to overwrite, join or to choose an other name
>> store the list of selected items to RAM for this XY-session and to an file on 'save' or 'end' of XY
- command "Load Stored Session"
>> prompt an list to chose from, allow to chose several entries, allow to use this list as additional selection
>> select any found item from this list [too]
- "List Management" support
>> view, edit, delete
Related to SyncTool i would suggest to auto store the found differences
as new selection-storage with current date-time as name.
---
Till you have time to implement such feature i have done an try to do this by an script on my own.
But currently with less features and without much error handling:
Find me: store selection save selected remember selection selection list
and because i go into an selected folder to see what's in
i lost my selection of all the other different items.
So i searched around but didn't find an solution/post/command to store & load an selection.
That's why i suggest this new feature incl. "List Management" support.
- command "Store Current Selection"
>> ask for name, if name exist ask to overwrite, join or to choose an other name
>> store the list of selected items to RAM for this XY-session and to an file on 'save' or 'end' of XY
- command "Load Stored Session"
>> prompt an list to chose from, allow to chose several entries, allow to use this list as additional selection
>> select any found item from this list [too]
- "List Management" support
>> view, edit, delete
Related to SyncTool i would suggest to auto store the found differences
as new selection-storage with current date-time as name.
---
Till you have time to implement such feature i have done an try to do this by an script on my own.
But currently with less features and without much error handling:
Code: Select all
"Store Selection"
//////Store current selected items to an file:
$StoreName = Input("Unique Name for this selection:");
////ToDo: if $StoreName already exist... ask
$SelCount = get("CountSelected");
$SelItems = $StoreName . "?" . $SelCount . "?"
. get("SelectedItemsNames", "|");
writefile("%temp%\xySelItems.txt", "<crlf>$SelItems", a);
"Load Selection : Load"
//////Load items to select from an file:
self $ScriptFile, file;
$Lines = readfile("%temp%\xySelItems.txt");
////get all lines for inputselect()
$Loop=1;
$Names="";
while(true)
{
$Line = gettoken($Lines, $Loop, "<crlf>");
if ($Line==""){break;}
$Names = $Names . gettoken($Line, 1, "?") . " ("
. gettoken($Line, 2, "?") . " items)" . "|" ;
$Loop++;
}
////ask user what to load:
$Load = inputselect( "Choose one to restore an selection:", $Names,,2);
if ( strpos($Load, "|") > 0) { msg "Please Choose Only One! ";
setting "AllowRecursion"; Load $ScriptFile, Load; break;}
////clean the string:
$Load = regexreplace($Load, "(.+)\s\(\d+\sitems\)", "$1");
////get the right line and select
$Loop=1;
while(true)
{
$Line = gettoken($Lines, $Loop, "<crlf>");
if ($Line==""){break;}
if (gettoken($Line, 1, "?")==$Load){
selfilter gettoken($Line, 3, "?"); break;}
$Loop++;
}
"Edit this &script : edit"
self $ScriptFile, file;
OpenWith "<xypath>\Tools\NotePad2\Notepad2.exe", ,$ScriptFile;
Find me: store selection save selected remember selection selection list
