Items aren't added to 'Recent Items' in Win7

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
wisekat
Junior Member
Junior Member
Posts: 54
Joined: 2012-03-13, 15:52 UTC

Items aren't added to 'Recent Items' in Win7

Post by *wisekat »

When I double-click say a txt or pdf file in a TC file panel, they aren't added to the special Recent Items folder in Widnows. All works ok if I do that in the Windows Explorer.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

wisekat,
Well, I assume the Recent folder is an Explorer feature that TC does not touch just like it does not change Explorer's sorting when you change sorting in TC.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
wisekat
Junior Member
Junior Member
Posts: 54
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat »

I guess it should touch that special folder.

By the way, when I open an MS Word .docx file from TC, it is added to Recent Items! Maybe, it is done under the hood in MS Word itself.
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, wisekat.

Total Commander does not add any items to the "Recent Items" list in any Windows version. This is by design as the programme author explains:
ghisler(Author) wrote:Total Commander nimmt z.Zt. keine Einträge in der "Recent"-Liste vor, weil dies meiner Meinung nach eine Liste des Explorers ist, und nur bei diesem etwas bewirken sollte.
ghisler(Author) - translated by me wrote:Total Commander does not currently add any entries to the "Recent" list, because in my opinion this is an Explorer list and it should have any effect only inside Explorer.
Cheers,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

wisekat wrote:Maybe, it is done under the hood in MS Word itself.
Hi, if I'm not mistaken, that's the way, how it's supposed to be. According to SHAddToRecentDocs, the application that opens a file should add that file to Recent Items. However because many applications are not doing so, Windows Explorer does it on their behalf. (If I've misunderstood something, please correct me.)
I don't think TC should be fixing other apps so I would leave it as it is.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think it is possible to create a little launcher that will open files from TC and add them to Explorer's recent list. So internal associations would be useful here to associate some file types (e.g. .txt and .pdf) with such launcher.
wisekat
Junior Member
Junior Member
Posts: 54
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat »

MVV wrote:I think it is possible to create a little launcher that will open files from TC and add them to Explorer's recent list. So internal associations would be useful here to associate some file types (e.g. .txt and .pdf) with such launcher.
After reading all your answers (thanks for 'em!!), my opinion is the following.

TC is in fact a GOOD-GOOD replacement for the Explorer, so it should allow to have all its main features. One of 'em is adding to Recent Items all the items we double-clicked. I'm also a programmer and can say that it is really enough easy to do with one call to the SHAddToRecentDocs WinAPI function. Why not to have it as an option somewhere in TC's Options dialog? It's very easy...

By the way, the Explorer "patches" other apps this way, and this only gives us additional benefits :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed it's currently not planned to call SHAddToRecentDocs.
Author of Total Commander
https://www.ghisler.com
wisekat
Junior Member
Junior Member
Posts: 54
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat »

ghisler(Author) wrote:Indeed it's currently not planned to call SHAddToRecentDocs.
Why? It's so easy...

And I'm sure many users will appreciate it.
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

wisekat wrote:And I'm sure many users will appreciate it.
I would definitely not. The application that opens some file should decide on its own, whether it will report that file to Windows or not.

A good example is Media Player Classic - HC. It has an option to set, whether you want it to keep a history of played files or not. If I run a video file from TC, the setting works perfectly. However if I open the file from Explorer, Windows ignores that setting and adds that file to Recent Items anyway. And that is simply wrong.
For me it's not a missing feature in TC but a bug in Explorer.
Windows 7 Pro x64, Windows 10 Pro x64
wisekat
Junior Member
Junior Member
Posts: 54
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat »

Tastes differ...

That's why this should be an option. I do not ask for this behavior in all 100% cases. Just an OPTION.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3278
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

umbra wrote:
wisekat wrote:And I'm sure many users will appreciate it.
I would definitely not. The application that opens some file should decide on its own, whether it will report that file to Windows or not.
I second that! Imagine you run TC from USB and every file you run would be added to recent - no thank you....
Hoecker sie sind raus!
9kvD38n6
Junior Member
Junior Member
Posts: 89
Joined: 2010-09-03, 08:23 UTC

Quick "fix": AHK script

Post by *9kvD38n6 »

MVV wrote:I think it is possible to create a little launcher that will open files from TC and add them to Explorer's recent list. So internal associations would be useful here to associate some file types (e.g. .txt and .pdf) with such launcher.
Here is a tiny Autohotkey script that accomplishes this:

Code: Select all

Target = %1%
EnvGet, APPDATA, APPDATA
LinkFile := APPDATA . "\Microsoft\Windows\Recent" . SubStr(Target, InStr(Target, "", 0, 0)) . ".lnk"
FileCreateShortcut, %1%, %LinkFile%
Run, %1%
To make any file type (e.g. "*.pdf") that you want TC to create shortcuts for in the Windows 'Recent' folder run this script, use menu: "Files|Internal Associations" and add the file type. In the input box next to "Open", put:

Code: Select all

"[PathAndFullNameOfAHKScript]" "%1"
Hope someone finds this useful
Stepc0re
Junior Member
Junior Member
Posts: 2
Joined: 2018-01-29, 12:21 UTC

Post by *Stepc0re »

Hello,
Hope someone finds this useful
Thanks, I was looking for something like this.

I have the issue with Adobe Reader, OpenOffice and Visual Studio.

The Script works fine. It creates a shortcut in the "/recent"-directory every time I open files with TC. But the shortcut never appears in any "recent"-list in start menu.
I think there is also something else to do to show shortcuts in the list.

I also recognized that OpenOffice is creating shortcuts without the .ahk-script. But also, there is no shortcut in the Start Menu list. I think that OpenOffice tries to put a shortcut in the list but there is also this one step missing.

Has anyone an idea what this step is?
9kvD38n6
Junior Member
Junior Member
Posts: 89
Joined: 2010-09-03, 08:23 UTC

Post by *9kvD38n6 »

Hey. Maybe use this workaround rather than the native Windows recent items list:

"Create Recent Items Shortcut in Windows 10 Customization Tutorials - https://www.tenforums.com/tutorials/17456-create-recent-items-shortcut-windows-10-a.html" https://www.tenforums.com/tutorials/17456-create-recent-items-shortcut-windows-10-a.html

Also, there are other 'recent' folders in Windows, for example somewhere under Appdata/...?.../Office. Maybe that's what the system is using for your recent list?

The feature has been removed from Windows 10 so I can't try this myself.

Good luck!
Post Reply