how to show recently opened files in a drop list?
Posted: 15 Mar 2013 20:08
how to show recently opened files in a drop list like recent location list? thanks
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Why isn't the built-in Windows recent files list sufficient? That's what I use.yusef88 wrote:.i need it to be shown as a drop list which mean by double click i can open file directly
yes, it leads what is needed ..just i want to make XYplorer my main work platform and not to rely on anything elsej_c_hallgren wrote:Why isn't the built-in Windows recent files list sufficient? That's what I use.yusef88 wrote:.i need it to be shown as a drop list which mean by double click i can open file directly
Code: Select all
#193;//Save Configuration
$ItemCount=getkey("Count", "mruOpenedItems");
$Count=1;
$AllItems="";
WHILE($Count!=$ItemCount){
$Item=getkey($Count, "mruOpenedItems");
$AllItems="$AllItems<crlf>$Item";
$Count++;
}
$open= popupmenu ($AllItems,,,1,,,"<crlf>",,0);
IF($open==0){
status "nothing selected", ,"alert";
end 1==1;
}
status "open $open";
open $open;
Oh my dear, another one I'd totally missed.admin wrote:Menu File / Open... (Ctrl+O)
Code: Select all
open inputselect("Recent", listfolder(<get SpecialFolder 8>));Code: Select all
open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));Haha slick!FluxTorpedoe wrote:Well, if those solutions aren't enough, here's my turn to try approximate mini-golf...
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.Code: Select all
open inputselect("Recent", listfolder(<get SpecialFolder 8>));
For files only:Code: Select all
open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Very nice thanks!FluxTorpedoe wrote:For files only:Code: Select all
open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
a small noteserendipity wrote:Simple script like this can do it:Code: Select all
#193;//Save Configuration $ItemCount=getkey("Count", "mruOpenedItems"); $Count=1; $AllItems=""; WHILE($Count!=$ItemCount){ $Item=getkey($Count, "mruOpenedItems"); $AllItems="$AllItems<crlf>$Item"; $Count++; } $open= popupmenu ($AllItems,,,1,,,"<crlf>",,0); IF($open==0){ status "nothing selected", ,"alert"; end 1==1; } status "open $open"; open $open;
Is there a way to have this dialog open larger by default? Further, can a tool button be made that runs this script?FluxTorpedoe wrote: ↑16 Mar 2013 10:24 Well, if those solutions aren't enough, here's my turn to try approximate mini-golf...
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.Code: Select all
open inputselect("Recent", listfolder(<get SpecialFolder 8>));
For files only:Code: Select all
open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));