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, sheep, Hacker, Stefan2

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

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

Post by *wisekat » 2012-03-13, 15:56 UTC

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: 11020
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker » 2012-03-13, 16:45 UTC

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: 36
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat » 2012-03-13, 16:58 UTC

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: 4545
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen » 2012-03-13, 22:59 UTC

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
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.21a 64-bit
Ubuntu 18.04.1 32-bit Mate Desktop, Total Commander 9.21a 32-bit
Windows? - 1 window in every room

umbra
Power Member
Power Member
Posts: 783
Joined: 2012-01-14, 20:41 UTC

Post by *umbra » 2012-03-13, 23:55 UTC

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 8.1 Pro x64, Windows 10 Pro x64

User avatar
MVV
Power Member
Power Member
Posts: 8121
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2012-03-14, 05:57 UTC

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: 36
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat » 2012-03-14, 08:00 UTC

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: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2012-03-14, 14:10 UTC

Indeed it's currently not planned to call SHAddToRecentDocs.
Author of Total Commander
http://www.ghisler.com

wisekat
Junior Member
Junior Member
Posts: 36
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat » 2012-03-14, 15:25 UTC

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: 783
Joined: 2012-01-14, 20:41 UTC

Post by *umbra » 2012-03-14, 15:48 UTC

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 8.1 Pro x64, Windows 10 Pro x64

wisekat
Junior Member
Junior Member
Posts: 36
Joined: 2012-03-13, 15:52 UTC

Post by *wisekat » 2012-03-14, 15:51 UTC

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: 2790
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA » 2012-03-14, 16:18 UTC

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....

9kvD38n6
Junior Member
Junior Member
Posts: 48
Joined: 2010-09-03, 08:23 UTC

Quick "fix": AHK script

Post by *9kvD38n6 » 2013-07-06, 15:25 UTC

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 » 2018-01-29, 13:57 UTC

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: 48
Joined: 2010-09-03, 08:23 UTC

Post by *9kvD38n6 » 2018-01-29, 20:08 UTC

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