Page 1 of 2

how to show recently opened files in a drop list?

Posted: 15 Mar 2013 20:08
by yusef88
how to show recently opened files in a drop list like recent location list? thanks

Re: how to show recently opened files in a drop list?

Posted: 15 Mar 2013 21:46
by highend
Tools - List Management - Recently Opened Files...?

Re: how to show recently opened files in a drop list?

Posted: 15 Mar 2013 22:03
by yusef88
thanks for replay.i need it to be shown as a drop list which mean by double click i can open file directly

I hope my idea is clear

Re: how to show recently opened files in a drop list?

Posted: 15 Mar 2013 22:34
by j_c_hallgren
yusef88 wrote:.i need it to be shown as a drop list which mean by double click i can open file directly
Why isn't the built-in Windows recent files list sufficient? That's what I use.

Re: how to show recently opened files in a drop list?

Posted: 16 Mar 2013 02:35
by yusef88
j_c_hallgren wrote:
yusef88 wrote:.i need it to be shown as a drop list which mean by double click i can open file directly
Why isn't the built-in Windows recent files list sufficient? That's what I use.
yes, it leads what is needed ..just i want to make XYplorer my main work platform and not to rely on anything else :)

Re: how to show recently opened files in a drop list?

Posted: 16 Mar 2013 04:45
by serendipity
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;
  

Re: how to show recently opened files in a drop list?

Posted: 16 Mar 2013 08:27
by admin
Menu File / Open... (Ctrl+O)

Re: how to show recently opened files in a drop list?

Posted: 16 Mar 2013 09:52
by Filehero
admin wrote:Menu File / Open... (Ctrl+O)
Oh my dear, another one I'd totally missed. :oops:


Cheers,
Filehero

Re: how to show recently opened files in a drop list?

Posted: 16 Mar 2013 10:24
by FluxTorpedoe
Well, if those solutions aren't enough, here's my turn to try approximate mini-golf... 8)

Code: Select all

  open inputselect("Recent", listfolder(<get SpecialFolder 8>));
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.
For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));

Re: how to show recently opened files in a drop list?

Posted: 16 Mar 2013 13:28
by yusef88
gentlemen: serendipity & admin & FluxTorpedoe
i'm incapable of thanksgiving, thanks you deserve.your additions are useful and helpful :appl:

Re: how to show recently opened files in a drop list?

Posted: 17 Mar 2013 06:33
by serendipity
FluxTorpedoe wrote:Well, if those solutions aren't enough, here's my turn to try approximate mini-golf... 8)

Code: Select all

  open inputselect("Recent", listfolder(<get SpecialFolder 8>));
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.
For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Haha slick! 8)

Re: how to show recently opened files in a drop list?

Posted: 17 Mar 2013 13:04
by RalphM
FluxTorpedoe wrote:For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Very nice thanks!

Re: how to show recently opened files in a drop list?

Posted: 31 Oct 2013 03:10
by yusef88
serendipity 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;
  
a small note
if recently opened files is empty
[mruOpenedItems]
Count=0
the script make xyplore not responding

Re: how to show recently opened files in a drop list?

Posted: 02 Feb 2022 21:31
by mikeshick
FluxTorpedoe wrote: ↑16 Mar 2013 10:24 Well, if those solutions aren't enough, here's my turn to try approximate mini-golf... 8)

Code: Select all

  open inputselect("Recent", listfolder(<get SpecialFolder 8>));
Nothing fancy (understatement), just draws info from Windows "Recent List" folder.
For files only:

Code: Select all

  open inputselect("Recent Files", regexreplace(listfolder(<get SpecialFolder 8>),"\|[^\.]+?\.[^\.]+?(?=\|)",""));
Is there a way to have this dialog open larger by default? Further, can a tool button be made that runs this script?

Re: how to show recently opened files in a drop list?

Posted: 02 Feb 2022 21:49
by highend
The help file knows the answer for both questions...