right-click context menu for folders

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

right-click context menu for folders

Post by *sgp »

Already with internal file associations I can easily create a right-click context menu for any given file extension. So, why not for a folder? I can see endless possibilities to put this feature to use, and all the necessary plumbing seems to be already in place. But right now I can't define an internal file association for a folder, at least I couldn't when I tried (see below). I suspect that by design TC skips looking for internal association matches when the current object is a directory instead of a file. Please remove this limitation.
I don't need a GUI to add an internal association for a folder - a GUI could be added in a future version. I can add associations by editing wincmd.ini - as described in http://ghisler.ch/board/viewtopic.php?t=27132
Of course, TC should ignore the "open" verb when the associated object is a directory, but it could honor all user's custom verbs.

To define an internal association for a folder using the method explained in the linked thread, I tried both

Code: Select all

; ----- dir (folders)
dir_SearchFor=*
dir_SearchFlags=0|000002000020||||||||22221|0000|

;FilterX=>dir
;FilterX_open-with-myApp=""%COMMANDER_PATH%\..\apps\myApp.exe" "%1""
and

Code: Select all

; ----- dir (folders)
dir_SearchFor=*
dir_SearchFlags=0|000002000020|||||||||0000|
dir_plugin=tc.directory = 1

;FilterX=>dir
;FilterX_open-with-myApp=""%COMMANDER_PATH%\..\apps\myApp.exe" "%1""
but neither one seemed to work in TC 7.57a.
Thanks for considering this proposal, hopefully in time for TC 8.00 :) ?
Last edited by sgp on 2012-05-12, 09:05 UTC, edited 1 time in total.
User avatar
white
Power Member
Power Member
Posts: 6021
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Not confirmed. Both examples work fine. Maybe you have multiple filters for folders? Remember that Total Commander will use the filter which comes first. So drag the filter you are testing to the top.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

You're right, it works! Thanks for checking it out.
I had mistyped one line in my wincmd.ini and in the first post (now fixed should anyone want to use it as a guide).
User avatar
white
Power Member
Power Member
Posts: 6021
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

[mod]Moved to English forum.

White (moderator)
[/mod]
Post Reply