Clean Recent Menu

Discuss and share scripts and script files...
nerdweed
Posts: 593
Joined: 25 Feb 2012 07:47

Re: Clean Recent Menu

Post by nerdweed »

Yes, the limits aren't checked there. I thought it wouldn't make much sense there.

It wasn't there in the version from LittleBig and I didn't bother to add for reasons to follow. They are populated from recent list with only the existing path. In extreme cases - if your history has paths that navigate to a deeply nested folder (64 folders deep probably), it will have only one path and in another extreme, it would be same as sorted list.

We already have sorted list to cover one extreme and limit doesn't make sense in the other. In usual scenarios, it was kind of not needed. That said, the limit doesn't make sense in Sorted list either, because with a low limit, probably the most recent locations may not be shown.

However; if you still need it, it can be added very easily. Download this one.
Attachments
HitList.xys
(5.93 KiB) Downloaded 108 times

Stef123

Re: Clean Recent Menu

Post by Stef123 »

Thanks again nerdweed,
don't know why I get such long hitlists, but anyway, limits are respected by Hit/Hotlist in your last version, thanks for being so helpful. However, now my other drives\paths don't get listed :( , the previous version did list them in Hot/Hitlist.

Guess I should really come to terms with modifying and adapting your script it to my needs. Easier said than done, though. Every time I mess with it I manage to wreck it. :oops:

nerdweed
Posts: 593
Joined: 25 Feb 2012 07:47

Re: Clean Recent Menu

Post by nerdweed »

Thats what I meant, because hotlist is based on sorting the list and then removing the non-leaf nodes; I have to work on a sorted list. If the limit is met on the first drive, it doesn't make sense to go to next drive and hence they would be missings. Its tug of war.

Stef123

Re: Clean Recent Menu

Post by Stef123 »

I see what you mean. It's sorted across drives, not sorted one drive at a time as I had assumed, because it looks like that with separators and all. So the limit does not apply per drive, but overall. Well, since I copy mostly between drives, I rather not have them drop out at the botttom, so I guess I'll just have to live with it the way it is.

Thanks again for sharing your scripts and thoughts.
Stef

klownboy
Posts: 3057
Joined: 28 Feb 2012 19:27

Re: Clean Recent Menu

Post by klownboy »

The chatter here viewtopic.php?f=3&t=21118 on recently opened files got me thinking about some older scripts on Recent Folders here in this thread viewtopic.php?f=7&t=11458. Though there may be some code that could be updated to XY's latest (nearly 6 years have transpired), both LittleBiG and nerdweed submitted some very nice scripts that still work fine. Based on those scripts, I figured why not modify one of those for use with recent files. I only did what was needed to be done without trying to redo what works already or reinvent the wheel so-to-speak. Hopefully nerdweed and LittleBiG are alright with that. Please take a look at the screen capture.

As in the original scripts along with modifications you can:
- assign how many recent files you'd like to see in the menu.
- determine and set whether you want the listing sorted by drives or unsorted
- set whether you would like the files to be actually opened or just visited in the folder in which they reside.
- you can also go to a folder in which the file resides and in addition open / run the file. It's my favorite option because you can open or view an image or play a video or song and then also be in the folder in which that image/video/audio file resides such that you can then easily view/ play others.
- your Favorite Files listing is also included at the end of the recent files listing.
- included an option to add or remove the Favorite Files listing from the menu. Some would rather thave that real estate for additional recent files.

Important - As in the original CleanRecent script, you will need a execution line similar to this whether it be in User Defined Commands or a CTB:
load "<xyscripts>\RecentFiles&Favs", "_loadrecent"; load "<xyscripts>\RecentFiles&Favs.xys";

Running it for the first time, it may feel a bit sluggish, but it should be fine on subsequent runs.

Thanks for trying and please let me know if you encounter any issues. Thanks again to LittleBig and nerdweed.
RecentFiles&Favs.JPG
RecentFiles&Favs.JPG (66.64 KiB) Viewed 120 times
RecentFiles&Favs.xys
(5.77 KiB) Downloaded 9 times

Xianders
Posts: 3
Joined: 29 Jul 2020 17:55

Re: Clean Recent Menu

Post by Xianders »

Thanks for the update

klownboy
Posts: 3057
Joined: 28 Feb 2012 19:27

Re: Clean Recent Menu

Post by klownboy »

Thanks for the comment Xianders. I finished another update which will provide additional options. The ability to place the recent files on top was a top priority and hopefully a little increase in speed. I'll upload when done testing.

Post Reply