Compare By Contet: Can View Difference to use a wlx Plugin?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dezed
Junior Member
Junior Member
Posts: 6
Joined: 2010-08-04, 10:49 UTC

Compare By Contet: Can View Difference to use a wlx Plugin?

Post by *dezed »

Hi

I have written a wlx plugin to total commader to be able to view our internal encrypted configuration files. It works fine in the viewer F3 but when i do a compare by content and use the "View Differences" option it dosn't seem to use my plugin to decode the files. I only see the binary diff. View left and right works fine (shows the decrypted content).

So my question Is there any way to see decrypted differences ?

I saw that the new api supports compare by content through content plugin api but from what it's not obvious to me that it can send data back to the "View Differences" function.

Looking forward for any suggestions,

Thanks

/Zed
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, the compare tool cannot use any Lister plugins to display file contents. The problem is that there is no way to synchronize the two panels with Lister plugins. Also editing isn't possible this way.

You may consider to create a packer plugin too, which would allow to open your encrypted file with Enter or Ctrl+page down, then TC would extract the content to compare it as plain text in the compare tool.

If your packer plugin marks the file as encrypted, TC will overwrite the temporary file with all zeroes before deleting it.
Author of Total Commander
https://www.ghisler.com
dezed
Junior Member
Junior Member
Posts: 6
Joined: 2010-08-04, 10:49 UTC

Post by *dezed »

So am I correct in my assumption that implementing a packer plugin would make it possible to use the "View Differences" option in synchronize directory?
dezed
Junior Member
Junior Member
Posts: 6
Joined: 2010-08-04, 10:49 UTC

Post by *dezed »

So i have implemented the plugin, and now the comparison work if have entered the archives on both panes. However Compare Left and Right in the Sync Tool still shows a binary diff. Is there any possibility to get a extract and compare menu option on the synchronize dir funtionality ?
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Parallel scrolling should't be a big deal.
An API extension which allows Lister plugins to contents or even synchronizing contents would be a killer feature.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes it would, I have thought about it too. The problem is that none of the current plugins would support it, so I suggested a solution via packer plugin which already works. This way even parallel searching, editing and data copying works.
Author of Total Commander
https://www.ghisler.com
dezed
Junior Member
Junior Member
Posts: 6
Joined: 2010-08-04, 10:49 UTC

Post by *dezed »

@ghisler

The solution sort of works as you suggested, but it's cumbersome e.g I have 10 files that differs and want to see what the differences are I cannot do this from the "Compare Left & Right" option in sync dir pane as this doesn't take the packer into account. Rather I need to find each source and destination file that differs manually and then open them inside the panes. Then the comparison will work.

This is of course no biggie if you only have 1 or 2 files however we deal with a lot of changed files. Hence it makes it pretty time consuming.

As I stated earlier just having the option to do a macro or similar that would decrypt the files before the comparison from the "Sync Dir" dialog would be a huge help as the main time consumer is to navigate and find the files from the comparison after Sync Dir have pointed them out.

I've been using TC as my primary file tool since 1997 and I absolutely think its the best out there (I even use it on my Linux boxes under Wine) I would love to be able to do this through TC as well.

Thanks for a great product.

/Zed
Post Reply