This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed Printable version
View previous topic :: View next topic  
Author Message
wisekat
Junior Member
Junior Member


Joined: 13 Mar 2012
Posts: 32

PostPosted: Tue Mar 13, 2012 9:56 am    Post subject: Items aren't added to 'Recent Items' in Win7 Reply with quote

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.
Back to top
View user's profile Send private message
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10847
Location: Bratislava, Slovakia

PostPosted: Tue Mar 13, 2012 10:45 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
wisekat
Junior Member
Junior Member


Joined: 13 Mar 2012
Posts: 32

PostPosted: Tue Mar 13, 2012 10:58 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
karlchen
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 4525
Location: Germany

PostPosted: Tue Mar 13, 2012 4:59 pm    Post subject: Reply with quote

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
_________________
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Back to top
View user's profile Send private message Send e-mail
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 781

PostPosted: Tue Mar 13, 2012 5:55 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8003
Location: Russian Federation

PostPosted: Tue Mar 13, 2012 11:57 pm    Post subject: Reply with quote

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.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
wisekat
Junior Member
Junior Member


Joined: 13 Mar 2012
Posts: 32

PostPosted: Wed Mar 14, 2012 2:00 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35434
Location: Switzerland

PostPosted: Wed Mar 14, 2012 8:10 am    Post subject: Reply with quote

Indeed it's currently not planned to call SHAddToRecentDocs.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wisekat
Junior Member
Junior Member


Joined: 13 Mar 2012
Posts: 32

PostPosted: Wed Mar 14, 2012 9:25 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 781

PostPosted: Wed Mar 14, 2012 9:48 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
wisekat
Junior Member
Junior Member


Joined: 13 Mar 2012
Posts: 32

PostPosted: Wed Mar 14, 2012 9:51 am    Post subject: Reply with quote

Tastes differ...

That's why this should be an option. I do not ask for this behavior in all 100% cases. Just an OPTION.
Back to top
View user's profile Send private message
Sir_SiLvA
Power Member
Power Member


Joined: 06 May 2003
Posts: 2787

PostPosted: Wed Mar 14, 2012 10:18 am    Post subject: Reply with quote

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....
Back to top
View user's profile Send private message
9kvD38n6
Junior Member
Junior Member


Joined: 03 Sep 2010
Posts: 48

PostPosted: Sat Jul 06, 2013 9:25 am    Post subject: Quick "fix": AHK script Reply with quote

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:
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:
"[PathAndFullNameOfAHKScript]" "%1"


Hope someone finds this useful
Back to top
View user's profile Send private message
Stepc0re
Junior Member
Junior Member


Joined: 29 Jan 2018
Posts: 2

PostPosted: Mon Jan 29, 2018 7:57 am    Post subject: Reply with quote

Hello,
Quote:
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?
Back to top
View user's profile Send private message
9kvD38n6
Junior Member
Junior Member


Joined: 03 Sep 2010
Posts: 48

PostPosted: Mon Jan 29, 2018 2:08 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group