@sweet40:
What you describe is in large parts possible in Everything (voidtools).
For inspiration, when writing your own version, here some details.
Whenever you Enter or double-click a file or folder, it's 'Run Count' is incremented.
When sorted by runcount, the ones with the most 'likes' are on top.
You can configure "Keep History for X days", meaning that after X days not not opening a certain file or foilder, it will be 'forgotten'. At least in the GUI; it is still stored in a file, "Run History.csv". that will looks similar to:
Code: Select all
Filename,Run Count,Last Run Date
"C:\Tools\AutoHotkey\Windows Spy (follows mouse).lnk",39,132600367950183749
"C:\2install\Everything\UpdateEverything.cmd",38,132563108848235889
"C:\test\emed64_19.8.6_portable\EmEditor.exe",26,132591636353385438
"C:\Tools",26,132584863376758390
"C:\Tools\wiztree_3_16_portable\WizTree64.exe",25,132569121263390417
"C:\test\_FileMgr\xyplorer_21.50\XYplorer.exe",15,132600359843021042
"C:\develop\Tweaks",11,132349732235184619
"C:\ProgramData",9,132584863862454980
"C:\Tools\ShellExView-x64\shexview.exe",8,132545993656263770
"C:\Windows\notepad.exe",7,132591636444081485
This will not take care of starting files with different programs. For that you will have to associate that filetype with a broker that:
- increments the runcount
- presents a menu with different programs to select from
- start the file with the chosen program.
Should be rather straightforward to script, but I don't know XYPlorer well enough for that (yet!), neither do I have the time at the moment.
FWIW: Such a broker could also be build in Everything itself ( I did write that once). If you need more information about the Everything part, you can ask me ... Everything
As a Quick-Fix -instead of writing your own broker - you could associate, let's say .jpg, with OPENWITH.EXE. This is part of Windows (10) and will show a list of programs you previously used to open a .jpg file. Just add the progrmas you want by rightclicking a file > Open With > your program ...
(the list in maintained in the registry : HKCU\software\microsoft\windows\currentversion\explorer\fileext\.jpg\openwith/openwithProgID if you ever need to remove entries)
Hope this gives you some inspiration...

- 2021-03-12 20_56_35-Everything 1.4.1.1005 (x64).png (26.87 KiB) Viewed 2357 times