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
Compare By Contet: Can View Difference to use a wlx Plugin?
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
@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
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